diff options
Diffstat (limited to 'game/transition/transition.gd')
-rw-r--r-- | game/transition/transition.gd | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/game/transition/transition.gd b/game/transition/transition.gd index 519d69f..62f8689 100644 --- a/game/transition/transition.gd +++ b/game/transition/transition.gd @@ -10,19 +10,31 @@ signal finished_animation var _lives = 0 var _characters = [] - +var _life = 0 func _ready() -> void: animation_player.speed_scale = speed_scale _characters = %Characters.get_children() +func lose_life(): + _characters[_life].play_puff() + _life += 1 + + func reset() -> void: animation_player.play("RESET") for c in _characters: c._reset_animation() +func show_instruction(instruction: InstructionResource): + %InstructionTexture.texture = instruction.texture_instruction + %InstructionLabel.text = instruction.title + animation_player.play("instruction") + await animation_player.animation_finished + + func microgame_fade_out(): animation_player.play("microgame_fade_out") await animation_player.animation_finished |