diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-08-03 21:57:04 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-08-03 21:57:04 -0400 |
commit | a3cc416a21297747b412dabe75fc4532cd5c8d68 (patch) | |
tree | 1eeb76f7e3d7463c133b2ce36aeab59787ee3943 /Archipelago/player.gd | |
parent | cb6db408f38338edb451f323d7e5aa2856854d15 (diff) | |
download | lingo-archipelago-a3cc416a21297747b412dabe75fc4532cd5c8d68.tar.gz lingo-archipelago-a3cc416a21297747b412dabe75fc4532cd5c8d68.tar.bz2 lingo-archipelago-a3cc416a21297747b412dabe75fc4532cd5c8d68.zip |
Puzzle skips
Diffstat (limited to 'Archipelago/player.gd')
-rw-r--r-- | Archipelago/player.gd | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Archipelago/player.gd b/Archipelago/player.gd new file mode 100644 index 0000000..87d9d0c --- /dev/null +++ b/Archipelago/player.gd | |||
@@ -0,0 +1,24 @@ | |||
1 | extends "res://scripts/player.gd" | ||
2 | |||
3 | |||
4 | func _solving(): | ||
5 | ._solving() | ||
6 | |||
7 | var effects_node = get_tree().get_root().get_node("Spatial/AP_Effects") | ||
8 | effects_node.enter_solve_mode() | ||
9 | |||
10 | |||
11 | func _solvingEnd(): | ||
12 | ._solvingEnd() | ||
13 | |||
14 | var effects_node = get_tree().get_root().get_node("Spatial/AP_Effects") | ||
15 | effects_node.exit_solve_mode() | ||
16 | |||
17 | |||
18 | func _unhandled_input(event): | ||
19 | ._unhandled_input(event) | ||
20 | |||
21 | if event is InputEventKey: | ||
22 | if event.pressed and event.scancode == KEY_P: | ||
23 | var effects_node = get_tree().get_root().get_node("Spatial/AP_Effects") | ||
24 | effects_node.skip_puzzle() | ||