diff options
author | Marcelo Costa <> | 2024-01-27 19:01:00 -0300 |
---|---|---|
committer | Marcelo Costa <> | 2024-01-27 19:01:00 -0300 |
commit | 967bc15d39aafbba849a5e5709a58f6a75904b19 (patch) | |
tree | ad76bc7e19fb7570ec76167137f09ae0f71b5718 /game/main.gd | |
parent | 94f7939c7b9f9f09c637a3122f26bece91747dd6 (diff) | |
parent | 01d02b389d3ba302c84986295ec06839cf4d4918 (diff) | |
download | gamejam-ggj-2024-967bc15d39aafbba849a5e5709a58f6a75904b19.tar.gz gamejam-ggj-2024-967bc15d39aafbba849a5e5709a58f6a75904b19.tar.bz2 gamejam-ggj-2024-967bc15d39aafbba849a5e5709a58f6a75904b19.zip |
Merge branch 'main' of https://github.com/henriquelalves/ggj2024
Diffstat (limited to 'game/main.gd')
-rw-r--r-- | game/main.gd | 5 |
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 |