girlwillneversingagain/scenes/room/states/room_playing.gd
2025-11-23 08:50:04 -03:00

15 lines
352 B
GDScript

extends RoomState
func _enter(_previous_state_path: String, _data: Dictionary = {}) -> void:
print("entering room gameplay")
get_tree().paused = false
func _handle_input(event: InputEvent) -> void:
if event.is_action_pressed("pause"):
finished.emit(PAUSED)
func _state_physics_update(delta: float) -> void:
room.camera.follow_player(delta)