add useful debug prints
This commit is contained in:
parent
041b26c2bd
commit
3b255b0e58
2 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue