summaryrefslogtreecommitdiff
path: root/scenes/microgames
diff options
context:
space:
mode:
Diffstat (limited to 'scenes/microgames')
-rw-r--r--scenes/microgames/fishin/fishin.gd19
-rw-r--r--scenes/microgames/fishin/node_2d.tscn53
2 files changed, 54 insertions, 18 deletions
diff --git a/scenes/microgames/fishin/fishin.gd b/scenes/microgames/fishin/fishin.gd
index 44b60db..3a7a704 100644
--- a/scenes/microgames/fishin/fishin.gd
+++ b/scenes/microgames/fishin/fishin.gd
@@ -1,4 +1,6 @@
-extends MicrogameWindow
+extends Node2D
+
+signal win
const IN_GAME_WAIT_TIME = 10
@@ -13,7 +15,9 @@ var shake2: ShakePivot
var shake3: ShakePivot
var start_game_timer: Timer
var in_game_timer: Timer
-var succfail_timer: Timer
+# This used to mean "success/failure" but now means "you succ, failure"
+var succfail_timer: Timer
+var success_timer: Timer
var in_minigame = false
var num_clicks = 0
@@ -32,6 +36,7 @@ func _ready() -> void:
start_game_timer = $StartGame
in_game_timer = $InGame
succfail_timer = $SuccessFail
+ success_timer = $Success
# Called every frame. 'delta' is the elapsed time since the previous frame.
@@ -63,7 +68,8 @@ func _on_texture_button_button_up() -> void:
in_game_timer.stop()
in_game_timer.wait_time = IN_GAME_WAIT_TIME
- succfail_timer.start()
+ success_timer.start()
+ $"Yippee!".play()
func _on_start_game_timeout() -> void:
@@ -84,7 +90,7 @@ func _on_start_game_timeout() -> void:
mouse.visible = true
num_clicks = randi_range(5,21)
- num_clicks = 21
+ #num_clicks = 21
# YOU LOSE
@@ -103,6 +109,7 @@ func _on_in_game_timeout() -> void:
in_game_timer.stop()
succfail_timer.start()
+ $"Fart".play()
func _on_success_fail_timeout() -> void:
@@ -111,3 +118,7 @@ func _on_success_fail_timeout() -> void:
you.visible = true
succfail_timer.stop()
start_game_timer.start()
+
+
+func _on_success_timeout() -> void:
+ win.emit()
diff --git a/scenes/microgames/fishin/node_2d.tscn b/scenes/microgames/fishin/node_2d.tscn
index 969ec34..5dc8da7 100644
--- a/scenes/microgames/fishin/node_2d.tscn
+++ b/scenes/microgames/fishin/node_2d.tscn
@@ -1,4 +1,4 @@
-[gd_scene load_steps=14 format=3 uid="uid://c4s4pigu4pr48"]
+[gd_scene load_steps=17 format=3 uid="uid://c4s4pigu4pr48"]
[ext_resource type="Texture2D" uid="uid://voruypgyi77e" path="res://scenes/stockticker/UI-Background-Colour.png" id="1_cxqat"]
[ext_resource type="Script" path="res://scenes/microgames/fishin/fishin.gd" id="1_srw8b"]
@@ -10,6 +10,9 @@
[ext_resource type="Script" path="res://libs/shake_pivot.gd" id="7_vnrfy"]
[ext_resource type="Texture2D" uid="uid://d4kyih3ivlqqc" path="res://scenes/microgames/fishin/KibbbySad.png" id="9_blola"]
[ext_resource type="Texture2D" uid="uid://dcvie7ynwdfui" path="res://scenes/microgames/fishin/KibbbyHappy.png" id="10_1il5r"]
+[ext_resource type="Texture2D" uid="uid://dpp7abs35p6i5" path="res://scenes/stockticker/fishe/gar.png" id="11_gjj1w"]
+[ext_resource type="AudioStream" uid="uid://c6021mckr08w5" path="res://funny_sounds/Yippee - Meme Sound Effect.mp3" id="12_4oxp1"]
+[ext_resource type="AudioStream" uid="uid://beunakwyi8i82" path="res://funny_sounds/ROBLOX Oof Sound Effect.mp3" id="13_kxv5l"]
[sub_resource type="Animation" id="Animation_bep6n"]
length = 0.001
@@ -48,10 +51,8 @@ _data = {
"mash": SubResource("Animation_fxbt5")
}
-[node name="Node2D2" type="Window"]
-position = Vector2i(0, 36)
-size = Vector2i(930, 560)
-unresizable = true
+[node name="Fishin" type="Node2D"]
+position = Vector2(0, 36)
script = ExtResource("1_srw8b")
[node name="background" type="Sprite2D" parent="."]
@@ -61,7 +62,7 @@ scale = Vector2(1300.5, 725.5)
texture = ExtResource("1_cxqat")
[node name="you!" type="Sprite2D" parent="."]
-position = Vector2(535, 300)
+position = Vector2(665, 458)
texture = ExtResource("2_atppo")
[node name="TextureButton" type="TextureButton" parent="."]
@@ -80,7 +81,7 @@ script = ExtResource("7_vnrfy")
[node name="pulling" type="Sprite2D" parent="ShakePivot"]
visible = false
-position = Vector2(535, 300)
+position = Vector2(665, 458)
texture = ExtResource("3_don82")
[node name="ShakePivot2" type="Node2D" parent="."]
@@ -88,10 +89,10 @@ script = ExtResource("7_vnrfy")
[node name="MASH" type="Label" parent="ShakePivot2"]
visible = false
-offset_left = 150.0
-offset_top = 358.0
-offset_right = 570.0
-offset_bottom = 598.0
+offset_left = 286.0
+offset_top = 463.0
+offset_right = 706.0
+offset_bottom = 703.0
theme = ExtResource("5_7qce4")
theme_override_colors/font_color = Color(1, 0, 0, 1)
theme_override_font_sizes/font_size = 60
@@ -102,7 +103,7 @@ script = ExtResource("7_vnrfy")
[node name="Mouse" type="Sprite2D" parent="ShakePivot3"]
visible = false
-position = Vector2(412, 532)
+position = Vector2(548, 637)
scale = Vector2(0.216276, 0.249769)
[node name="StartGame" type="Timer" parent="."]
@@ -113,18 +114,42 @@ wait_time = 3.0
[node name="SAD" type="Sprite2D" parent="."]
visible = false
-position = Vector2(535, 300)
+position = Vector2(665, 458)
texture = ExtResource("9_blola")
[node name="Happy" type="Sprite2D" parent="."]
visible = false
-position = Vector2(535, 300)
+position = Vector2(665, 458)
texture = ExtResource("10_1il5r")
+[node name="Catch" type="Sprite2D" parent="Happy"]
+position = Vector2(-385, 50)
+scale = Vector2(0.475, 0.492)
+texture = ExtResource("11_gjj1w")
+
+[node name="Victory message" type="Label" parent="Happy"]
+offset_left = -479.0
+offset_top = -398.0
+offset_right = 481.0
+offset_bottom = -334.0
+theme = ExtResource("5_7qce4")
+theme_override_font_sizes/font_size = 64
+text = "You caught GAR!"
+
[node name="SuccessFail" type="Timer" parent="."]
wait_time = 3.0
+[node name="Success" type="Timer" parent="."]
+wait_time = 3.0
+
+[node name="Yippee!" type="AudioStreamPlayer" parent="."]
+stream = ExtResource("12_4oxp1")
+
+[node name="Fart" type="AudioStreamPlayer" parent="."]
+stream = ExtResource("13_kxv5l")
+
[connection signal="button_up" from="TextureButton" to="." method="_on_texture_button_button_up"]
[connection signal="timeout" from="StartGame" to="." method="_on_start_game_timeout"]
[connection signal="timeout" from="InGame" to="." method="_on_in_game_timeout"]
[connection signal="timeout" from="SuccessFail" to="." method="_on_success_fail_timeout"]
+[connection signal="timeout" from="Success" to="." method="_on_success_timeout"]