summaryrefslogtreecommitdiff
path: root/scenes/microgames
diff options
context:
space:
mode:
Diffstat (limited to 'scenes/microgames')
-rw-r--r--scenes/microgames/ad/ad_window.tscn2
-rw-r--r--scenes/microgames/fish_stonk.tscn7
-rw-r--r--scenes/microgames/fishin/fishin.gd10
3 files changed, 13 insertions, 6 deletions
diff --git a/scenes/microgames/ad/ad_window.tscn b/scenes/microgames/ad/ad_window.tscn
index dd89a93..1d4d78d 100644
--- a/scenes/microgames/ad/ad_window.tscn
+++ b/scenes/microgames/ad/ad_window.tscn
@@ -26,7 +26,7 @@
[ext_resource type="Texture2D" uid="uid://diqk5cl2rehkg" path="res://scenes/microgames/ad/ad_images/wizard_sexy.png" id="24_ipkoa"]
[ext_resource type="Texture2D" uid="uid://x1m2v51rug76" path="res://scenes/microgames/ad/ad_images/wtf.png" id="25_o5yc3"]
-[node name="Window" instance=ExtResource("1_gtv65")]
+[node name="Window2" instance=ExtResource("1_gtv65")]
title = "Check out this special offer [Click Here]"
size = Vector2i(824, 604)
content_scale_size = Vector2i(0, 0)
diff --git a/scenes/microgames/fish_stonk.tscn b/scenes/microgames/fish_stonk.tscn
new file mode 100644
index 0000000..68a1f40
--- /dev/null
+++ b/scenes/microgames/fish_stonk.tscn
@@ -0,0 +1,7 @@
+[gd_scene load_steps=2 format=3 uid="uid://ddn5p54b5cop1"]
+
+[ext_resource type="PackedScene" uid="uid://c4s4pigu4pr48" path="res://scenes/microgames/fishin/node_2d.tscn" id="1_phxek"]
+
+[node name="FishStonk" type="Node2D"]
+
+[node name="Fishin" parent="." instance=ExtResource("1_phxek")]
diff --git a/scenes/microgames/fishin/fishin.gd b/scenes/microgames/fishin/fishin.gd
index 9f62755..d52e449 100644
--- a/scenes/microgames/fishin/fishin.gd
+++ b/scenes/microgames/fishin/fishin.gd
@@ -1,4 +1,5 @@
extends Node2D
+class_name Fishin
enum FishType {
GAR,
@@ -12,7 +13,7 @@ enum FishType {
LEAPING_SMACKEREL,
}
-signal win
+signal win(fish_type: FishType)
signal lose
signal fish_chosen(fish_sprite: Sprite2D, fish_name: String)
@@ -33,6 +34,7 @@ var in_game_timer: Timer
var succfail_timer: Timer
var success_timer: Timer
+var fish_choice
var gar
var salmon
var bass
@@ -107,9 +109,7 @@ func _on_texture_button_button_up() -> void:
happy.visible = true
# show fish
- var fish_choice: FishType = randi_range(0,len(fishes))
-
- fish_choice = FishType.MOBY_DICK
+ fish_choice = randi_range(0,len(fishes))
match fish_choice:
FishType.GAR:
@@ -225,4 +225,4 @@ func _on_success_fail_timeout() -> void:
func _on_success_timeout() -> void:
- win.emit()
+ win.emit(fish_choice)