diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-08-10 11:48:05 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-08-10 11:48:05 +0200 |
commit | 46556d864b9685c3b09a0038f5de83966fe7ff94 (patch) | |
tree | c68082eacd35559e14565d1598dd694972fb8e0e /Scenes/Start.gd |
Initial commit
Diffstat (limited to 'Scenes/Start.gd')
-rw-r--r-- | Scenes/Start.gd | 9 |
1 files changed, 9 insertions, 0 deletions
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") + ) |