From 3b255b0e58a043a670fa3e7d4362208effad4b01 Mon Sep 17 00:00:00 2001 From: yuki Date: Sun, 23 Nov 2025 08:27:46 -0300 Subject: [PATCH] add useful debug prints --- scenes/room/states/room_entering.gd | 1 + scenes/room/states/room_playing.gd | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/scenes/room/states/room_entering.gd b/scenes/room/states/room_entering.gd index 00d86fb..0ce68db 100644 --- a/scenes/room/states/room_entering.gd +++ b/scenes/room/states/room_entering.gd @@ -2,6 +2,7 @@ extends RoomState func _enter(_previous_state_path: String, _data: Dictionary = {}) -> void: + print("entering room") room.player = room.player_scene.instantiate() room.add_child(room.player) room.player.global_position = room.initial_spawn diff --git a/scenes/room/states/room_playing.gd b/scenes/room/states/room_playing.gd index 8a2ed3b..ae205b9 100644 --- a/scenes/room/states/room_playing.gd +++ b/scenes/room/states/room_playing.gd @@ -1,6 +1,10 @@ extends RoomState +func _enter(_previous_state_path: String, _data: Dictionary = {}) -> void: + print("entering room gameplay") + + func _state_physics_update(delta: float) -> void: room.camera.follow_player(delta) if match_state([PLAYING]): return