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
+2 -1
View File
@@ -4,6 +4,7 @@ extends CanvasLayer
const DOOR_PROMPT := "Espace — Ouvrir la porte"
const CHEST_PROMPT := "Espace — Ouvrir le coffre"
const STAIRS_PROMPT := "Espace — Descendre l’escalier"
const STAIRS_UP_PROMPT := "Espace — Monter l’escalier"
const EXIT_REACHED_PROMPT := "Sortie atteinte — prochain étage bientôt disponible"
@onready var player_health_label: Label = $PlayerHealthLabel
@@ -40,7 +41,7 @@ func get_context_prompt() -> String:
&"closed_door":
return DOOR_PROMPT
&"stairs":
return STAIRS_PROMPT
return STAIRS_UP_PROMPT if _state.floor_state.floor_number > 0 and _state.player.cell == _state.floor_state.entrance else STAIRS_PROMPT
&"exit_reached":
return EXIT_REACHED_PROMPT
_: