summaryrefslogtreecommitdiff
path: root/game/main.gd
diff options
context:
space:
mode:
Diffstat (limited to 'game/main.gd')
-rw-r--r--game/main.gd5
1 files changed, 5 insertions, 0 deletions
diff --git a/game/main.gd b/game/main.gd
index ac05b48..e723c29 100644
--- a/game/main.gd
+++ b/game/main.gd
@@ -11,6 +11,7 @@ var MICROGAMES = [
@onready var microgame_viewport = %MicrogameViewport
@onready var microgame_subviewport = %MicrogameSubViewport
@onready var microgame_timer: Timer = %MicrogameTimer
+@onready var instruction_popup: InstructionPopup = %InstructionPopup
var _current_microgame: Microgame
var _starting = true
@@ -53,6 +54,10 @@ func _ready() -> void:
await transition.play_microgame_count(_microgame_count)
+ if not Session.shown_types.has(_current_microgame.microgame_control):
+ await instruction_popup.play_instruction(_current_microgame.microgame_control)
+ Session.shown_types[_current_microgame.microgame_control] = true
+
await transition.microgame_fade_in()
_current_microgame.process_mode = Node.PROCESS_MODE_INHERIT