From 794261e0d0fe5dc675f62d858bd1c34cbe6b7322 Mon Sep 17 00:00:00 2001 From: Nikolai Fedorov Date: Thu, 23 Apr 2026 18:16:26 +0300 Subject: [PATCH] win and lose cheat hotkey --- scripts/Main.gd | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/Main.gd b/scripts/Main.gd index 2c26fd9..082b193 100644 --- a/scripts/Main.gd +++ b/scripts/Main.gd @@ -89,6 +89,15 @@ func _input(event: InputEvent) -> void: else: 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 ──────────────────────────────────────────────────────────────────── func _spawn_level() -> void: