about summary refs log tree commit diff stats
path: root/Archipelago
diff options
context:
space:
mode:
Diffstat (limited to 'Archipelago')
-rw-r--r--Archipelago/player.gd15
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 @@
1extends "res://scripts/player.gd" 1extends "res://scripts/player.gd"
2 2
3var april_fools = false
4
5
6func _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
4func _solving(): 12func _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
35func rotate_y(amount):
36 if april_fools:
37 .rotate_y(-amount)
38 else:
39 .rotate_y(amount)