summaryrefslogtreecommitdiff
path: root/game/shared/scripts/microgame.gd
diff options
context:
space:
mode:
Diffstat (limited to 'game/shared/scripts/microgame.gd')
-rw-r--r--game/shared/scripts/microgame.gd24
1 files changed, 23 insertions, 1 deletions
diff --git a/game/shared/scripts/microgame.gd b/game/shared/scripts/microgame.gd
index 29b63ed..15fbc69 100644
--- a/game/shared/scripts/microgame.gd
+++ b/game/shared/scripts/microgame.gd
@@ -1,7 +1,29 @@
class_name Microgame
extends Node
+const MICROGAME_TIMER = 5.0
+
+enum MICROGAME_CONTROL {HEAD_ON_KEYBOARD, INVERTED_HAND, ONLY_PINKY}
+
@export var microgame_name = ""
-@export var instruction = ""
+@export var microgame_control: MICROGAME_CONTROL
+@export var instructions = ""
signal finished(won)
+
+
+func _ready():
+ var timer = Timer.new()
+ add_child(timer)
+ timer.one_shot = true
+ timer.start(MICROGAME_TIMER)
+
+ timer.timeout.connect(func():
+ finished.emit(false)
+ )
+
+ _microgame_ready()
+
+
+func _microgame_ready():
+ pass