about summary refs log tree commit diff stats
path: root/Archipelago/player.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Archipelago/player.gd')
-rw-r--r--Archipelago/player.gd24
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 @@
1extends "res://scripts/player.gd"
2
3
4func _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
11func _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
18func _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()