feat: add multi-floor dungeon transitions

This commit is contained in:
goose
2026-10-02 23:58:07 -04:00
parent 4a3d2fc3ff
commit fe13555778
20 changed files with 348 additions and 29 deletions
+6 -1
View File
@@ -25,10 +25,15 @@ func _init(new_map: GridMapState, new_player: ActorState, new_enemies: Dictionar
func bind_run_state(run_state: RunState) -> void:
run_state.set_floor_state(floor_state)
floor_state = run_state.current_floor_state()
set_floor_state(run_state.current_floor_state())
func set_floor_state(new_floor_state: FloorState) -> void:
floor_state = new_floor_state
map = floor_state.map
enemies = floor_state.enemies
explored_cells = floor_state.explored_cells
exit_reached = false
update_exploration()
func get_context_target() -> StringName:
if exit_reached: