Frog fireworks are launched AFTER the frog reach the end position, and after the "validation FX" are used on the lilypads.
This commit is contained in:
@@ -123,23 +123,40 @@ func _on_current_word_progression_changed() -> void:
|
||||
|
||||
|
||||
func _on_current_progression_changed() -> void:
|
||||
var is_final_word: bool = current_progression >= max_progression
|
||||
frog.jump_to(end.global_position)
|
||||
await frog.jumped
|
||||
frog.win()
|
||||
# Play the animation on each pad
|
||||
for track: LilypadTrack in lilypad_tracks_container.get_children():
|
||||
track.right()
|
||||
# Replay the stimulus
|
||||
await audio_player.play_word(_get_previous_stimulus().Word as String)
|
||||
# Makes the frog jumps out of screen
|
||||
if is_final_word:
|
||||
super()
|
||||
return
|
||||
await frog.flip_happy()
|
||||
frog.jump_to(frog_despawn_point.global_position)
|
||||
await frog.jumped
|
||||
await _free_tracks()
|
||||
await _reset_frog()
|
||||
# Setups the next word
|
||||
super()
|
||||
|
||||
|
||||
func set_current_progression(p_current_progression: int) -> void:
|
||||
var previous_progression: int = current_progression
|
||||
current_progression = p_current_progression
|
||||
Log.debug("BaseMinigame: Progression changed from %d to %d/%d for %s" % [previous_progression, current_progression, max_progression, Type.keys()[minigame_name]])
|
||||
|
||||
consecutive_errors = 0
|
||||
is_highlighting = false
|
||||
|
||||
if minigame_ui:
|
||||
minigame_ui.set_progression(p_current_progression)
|
||||
if p_current_progression == max_progression and previous_progression != max_progression:
|
||||
await _on_current_progression_changed()
|
||||
await _win()
|
||||
else:
|
||||
await _on_current_progression_changed()
|
||||
|
||||
#endregion
|
||||
|
||||
class DifficultySettings:
|
||||
|
||||
Reference in New Issue
Block a user