summaryrefslogtreecommitdiff
path: root/scenes/main.gd
diff options
context:
space:
mode:
authorZoey Kitt <zoey.kitt@outlook.com>2024-11-17 15:48:09 -0600
committerZoey Kitt <zoey.kitt@outlook.com>2024-11-17 15:48:09 -0600
commit4fc8ff1304191ed75efc4aca6d5102792a09e96c (patch)
treee8a58434d00cd0d4473b4d0cb17dd912c622202a /scenes/main.gd
parent3f61a10428c3a8f0f3f0a208ac0369430add6971 (diff)
I forgor
Diffstat (limited to 'scenes/main.gd')
-rw-r--r--scenes/main.gd6
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: