From 46556d864b9685c3b09a0038f5de83966fe7ff94 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Thu, 10 Aug 2023 11:48:05 +0200 Subject: Initial commit --- Scenes/Start.gd | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Scenes/Start.gd (limited to 'Scenes/Start.gd') diff --git a/Scenes/Start.gd b/Scenes/Start.gd new file mode 100644 index 0000000..0109937 --- /dev/null +++ b/Scenes/Start.gd @@ -0,0 +1,9 @@ +extends Node + + +func _ready(): + var scene = preload("res://Scenes/Maps/World.tscn").instantiate() + var player = preload("res://Scenes/Entities/Player.tscn").instantiate() + Utilities.change_scene_with_player_to_position( + scene, player, NodePath("InitialPlayerPosition") + ) -- cgit v1.2.3