diff options
-rw-r--r-- | scenes/main.gd | 5 | ||||
-rw-r--r-- | scenes/main.tscn | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/scenes/main.gd b/scenes/main.gd index 496edcc..d128e3f 100644 --- a/scenes/main.gd +++ b/scenes/main.gd @@ -44,6 +44,7 @@ func _on_microgame_win(window: MicrogameWindow): func _on_microgame_lose(window: MicrogameWindow): print("noooooo") + $LosingSoundEffect.play() $"Score window (real)/Score window".net_worth.timesEquals(0.8) @@ -54,7 +55,7 @@ func _on_fishin_win() -> void: $Clippette.visible = true $Clippette.start_dialogue() $"Score window (real)".visible = true - $AudioStreamPlayer.play() + $Music.play() func _on_score_window_donezo() -> void: @@ -65,6 +66,8 @@ func _on_score_window_donezo() -> void: $"Stock ticker".queue_free() get_window().position = Vector2i(10000, 10000) + $Music.volume_db = 10 + var new_window = Window.new() new_window.size = Vector2i(1280, 720) new_window.initial_position = Window.WINDOW_INITIAL_POSITION_CENTER_SCREEN_WITH_MOUSE_FOCUS diff --git a/scenes/main.tscn b/scenes/main.tscn index 4b71867..6c1f5ff 100644 --- a/scenes/main.tscn +++ b/scenes/main.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=51 format=3 uid="uid://d06d1vihf2oqp"] +[gd_scene load_steps=52 format=3 uid="uid://d06d1vihf2oqp"] [ext_resource type="Texture2D" uid="uid://b03ygtrwha22g" path="res://taytay/IMG_5199.jpeg" id="1_o2s48"] [ext_resource type="Script" path="res://scenes/main.gd" id="1_y7a0r"] @@ -11,6 +11,7 @@ [ext_resource type="Texture2D" uid="uid://dohsqvvi8y64h" path="res://UI/fish-spinning-ezgif.com-gif-to-sprite-converter.png" id="8_oj2tc"] [ext_resource type="PackedScene" uid="uid://c4s4pigu4pr48" path="res://scenes/microgames/fishin/node_2d.tscn" id="10_sx2ad"] [ext_resource type="AudioStream" uid="uid://di3mxkflh6a3o" path="res://funny_sounds/gamblecore.mp3" id="11_33353"] +[ext_resource type="AudioStream" uid="uid://b45557wwianh8" path="res://funny_sounds/Super Mario 64 (Waaah) - Sound effect.mp3" id="12_xycxa"] [sub_resource type="AtlasTexture" id="AtlasTexture_uyge7"] atlas = ExtResource("8_oj2tc") @@ -340,9 +341,12 @@ $00000000000000000000" position = Vector2(0, 0) scale = Vector2(1, 1) -[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] +[node name="Music" type="AudioStreamPlayer" parent="."] stream = ExtResource("11_33353") +[node name="LosingSoundEffect" type="AudioStreamPlayer" parent="."] +stream = ExtResource("12_xycxa") + [connection signal="timeout" from="Microgame spawn timer" to="." method="_on_microgame_spawn_timer_timeout"] [connection signal="donezo" from="Score window (real)/Score window" to="." method="_on_score_window_donezo"] [connection signal="buy" from="Stock ticker" to="Score window (real)/Score window" method="_on_stock_ticker_buy"] |