diff options
Diffstat (limited to 'game/shared/scripts/microgame.gd')
-rw-r--r-- | game/shared/scripts/microgame.gd | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/game/shared/scripts/microgame.gd b/game/shared/scripts/microgame.gd index 29b63ed..3acd624 100644 --- a/game/shared/scripts/microgame.gd +++ b/game/shared/scripts/microgame.gd @@ -1,7 +1,30 @@ 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 |