diff options
Diffstat (limited to 'Archipelago/player.gd')
-rw-r--r-- | Archipelago/player.gd | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Archipelago/player.gd b/Archipelago/player.gd index 87d9d0c..244d9a8 100644 --- a/Archipelago/player.gd +++ b/Archipelago/player.gd | |||
@@ -1,5 +1,13 @@ | |||
1 | extends "res://scripts/player.gd" | 1 | extends "res://scripts/player.gd" |
2 | 2 | ||
3 | var april_fools = false | ||
4 | |||
5 | |||
6 | func _ready(): | ||
7 | var date = Time.get_date_dict_from_system() | ||
8 | if date["month"] == 4 && date["day"] == 1: | ||
9 | april_fools = true | ||
10 | |||
3 | 11 | ||
4 | func _solving(): | 12 | func _solving(): |
5 | ._solving() | 13 | ._solving() |
@@ -22,3 +30,10 @@ func _unhandled_input(event): | |||
22 | if event.pressed and event.scancode == KEY_P: | 30 | if event.pressed and event.scancode == KEY_P: |
23 | var effects_node = get_tree().get_root().get_node("Spatial/AP_Effects") | 31 | var effects_node = get_tree().get_root().get_node("Spatial/AP_Effects") |
24 | effects_node.skip_puzzle() | 32 | effects_node.skip_puzzle() |
33 | |||
34 | |||
35 | func rotate_y(amount): | ||
36 | if april_fools: | ||
37 | .rotate_y(-amount) | ||
38 | else: | ||
39 | .rotate_y(amount) | ||