win and lose cheat hotkey

This commit is contained in:
2026-04-23 18:16:26 +03:00
parent 187fe7a9ce
commit 794261e0d0
+9
View File
@@ -89,6 +89,15 @@ func _input(event: InputEvent) -> void:
else: else:
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
if OS.is_debug_build():
var key := event as InputEventKey
if key != null and key.pressed and not key.echo:
if key.keycode == KEY_F5:
boss_active = true
_trigger_win()
elif key.keycode == KEY_F6:
_on_player_died()
# ─── Level ──────────────────────────────────────────────────────────────────── # ─── Level ────────────────────────────────────────────────────────────────────
func _spawn_level() -> void: func _spawn_level() -> void: