diff options
Diffstat (limited to 'scenes/main.gd')
-rw-r--r-- | scenes/main.gd | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scenes/main.gd b/scenes/main.gd index 7269b4a..2cdf075 100644 --- a/scenes/main.gd +++ b/scenes/main.gd @@ -18,7 +18,7 @@ func _process(delta: float) -> void: func _on_microgame_spawn_timer_timeout() -> void: # Spawn a microgame window var window_instance = null - if (randf() < -10.25): + if (randf() < 0.25): var window_scene = preload("res://scenes/microgames/microgame_window.tscn") window_instance = window_scene.instantiate() @@ -67,6 +67,10 @@ func _on_microgame_lose(window: MicrogameWindow): print("noooooo") $LosingSoundEffect.play() $"Score window (real)/Score window".net_worth.timesEquals(0.8) + if window.get_children()[0] is Fishin: + pass + else: + $Clippette/AnimationPlayer.play("ad_click") func _on_fishin_win(fish_caught: Fishin.FishType) -> void: |