From d74ecb966b03b46bed0e1720ef2ed029c3be99a1 Mon Sep 17 00:00:00 2001 From: Zoey Kitt Date: Sat, 16 Nov 2024 18:43:05 -0600 Subject: Oh my god now it's actually just a fishing game --- scenes/microgames/fishin/fishin.gd | 4 ++-- scenes/microgames/fishin/node_2d.tscn | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'scenes/microgames/fishin') diff --git a/scenes/microgames/fishin/fishin.gd b/scenes/microgames/fishin/fishin.gd index 44b60db..c6f62d9 100644 --- a/scenes/microgames/fishin/fishin.gd +++ b/scenes/microgames/fishin/fishin.gd @@ -1,4 +1,4 @@ -extends MicrogameWindow +extends Node2D const IN_GAME_WAIT_TIME = 10 @@ -84,7 +84,7 @@ func _on_start_game_timeout() -> void: mouse.visible = true num_clicks = randi_range(5,21) - num_clicks = 21 + #num_clicks = 21 # YOU LOSE diff --git a/scenes/microgames/fishin/node_2d.tscn b/scenes/microgames/fishin/node_2d.tscn index 969ec34..c763777 100644 --- a/scenes/microgames/fishin/node_2d.tscn +++ b/scenes/microgames/fishin/node_2d.tscn @@ -48,10 +48,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="."] -- cgit v1.2.3 From 162f6ba656c3ed050526df7e0aa31d8e284b640c Mon Sep 17 00:00:00 2001 From: Zoey Kitt Date: Sat, 16 Nov 2024 19:05:07 -0600 Subject: You caught GAR! --- scenes/microgames/fishin/node_2d.tscn | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) (limited to 'scenes/microgames/fishin') diff --git a/scenes/microgames/fishin/node_2d.tscn b/scenes/microgames/fishin/node_2d.tscn index c763777..932fb56 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=15 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,7 @@ [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"] [sub_resource type="Animation" id="Animation_bep6n"] length = 0.001 @@ -59,7 +60,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="."] @@ -78,7 +79,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="."] @@ -86,10 +87,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 @@ -100,7 +101,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="."] @@ -111,14 +112,28 @@ 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 -- cgit v1.2.3 From a472a321179268710722232ee61aa04b369c627c Mon Sep 17 00:00:00 2001 From: Zoey Kitt Date: Sat, 16 Nov 2024 19:38:06 -0600 Subject: Make the fishing minigame transition into stonks --- scenes/microgames/fishin/fishin.gd | 13 +++++++++++-- scenes/microgames/fishin/node_2d.tscn | 4 ++++ 2 files changed, 15 insertions(+), 2 deletions(-) (limited to 'scenes/microgames/fishin') diff --git a/scenes/microgames/fishin/fishin.gd b/scenes/microgames/fishin/fishin.gd index c6f62d9..6d53964 100644 --- a/scenes/microgames/fishin/fishin.gd +++ b/scenes/microgames/fishin/fishin.gd @@ -1,5 +1,7 @@ extends Node2D +signal win + const IN_GAME_WAIT_TIME = 10 var pulling: Sprite2D @@ -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,7 @@ 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() func _on_start_game_timeout() -> void: @@ -111,3 +116,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 932fb56..e98b040 100644 --- a/scenes/microgames/fishin/node_2d.tscn +++ b/scenes/microgames/fishin/node_2d.tscn @@ -137,7 +137,11 @@ text = "You caught GAR!" [node name="SuccessFail" type="Timer" parent="."] wait_time = 3.0 +[node name="Success" type="Timer" parent="."] +wait_time = 3.0 + [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"] -- cgit v1.2.3 From 760420412d591155c319f17d1a01d7edf7e5c01b Mon Sep 17 00:00:00 2001 From: Zoey Kitt Date: Sat, 16 Nov 2024 19:49:31 -0600 Subject: Add ROBLOX_OOF.MP3 --- scenes/microgames/fishin/fishin.gd | 2 ++ scenes/microgames/fishin/node_2d.tscn | 10 +++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'scenes/microgames/fishin') diff --git a/scenes/microgames/fishin/fishin.gd b/scenes/microgames/fishin/fishin.gd index 6d53964..3a7a704 100644 --- a/scenes/microgames/fishin/fishin.gd +++ b/scenes/microgames/fishin/fishin.gd @@ -69,6 +69,7 @@ func _on_texture_button_button_up() -> void: in_game_timer.stop() in_game_timer.wait_time = IN_GAME_WAIT_TIME success_timer.start() + $"Yippee!".play() func _on_start_game_timeout() -> void: @@ -108,6 +109,7 @@ func _on_in_game_timeout() -> void: in_game_timer.stop() succfail_timer.start() + $"Fart".play() func _on_success_fail_timeout() -> void: diff --git a/scenes/microgames/fishin/node_2d.tscn b/scenes/microgames/fishin/node_2d.tscn index e98b040..5dc8da7 100644 --- a/scenes/microgames/fishin/node_2d.tscn +++ b/scenes/microgames/fishin/node_2d.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=15 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"] @@ -11,6 +11,8 @@ [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 @@ -140,6 +142,12 @@ 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"] -- cgit v1.2.3