feat: add sceneManager; add playerSpawnPos to sceneEntrance and sceneManager; update player node to use value from sceneManager; make sceneManager autoloaded;

This commit is contained in:
2026-08-18 15:22:00 +02:00
parent ac86097b07
commit a97800846f
7 changed files with 43 additions and 2 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ class_name Player
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
var damage: float = 2
print(damage)
position = SceneManager.player_next_scene_spawn_pos
# Called every frame. 'delta' is the elapsed time since the previous frame.