summaryrefslogtreecommitdiff
path: root/scenes
diff options
context:
space:
mode:
Diffstat (limited to 'scenes')
-rw-r--r--scenes/main.gd4
-rw-r--r--scenes/main.tscn6
2 files changed, 8 insertions, 2 deletions
diff --git a/scenes/main.gd b/scenes/main.gd
index e9537d8..e5dedb8 100644
--- a/scenes/main.gd
+++ b/scenes/main.gd
@@ -8,7 +8,9 @@ func _ready() -> void:
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
- pass
+ # The most important functionality
+ if Input.is_action_just_pressed("G"):
+ $Meow.play()
func _on_microgame_spawn_timer_timeout() -> void:
diff --git a/scenes/main.tscn b/scenes/main.tscn
index 32b0540..3dd15c9 100644
--- a/scenes/main.tscn
+++ b/scenes/main.tscn
@@ -1,7 +1,8 @@
-[gd_scene load_steps=3 format=3 uid="uid://d06d1vihf2oqp"]
+[gd_scene load_steps=4 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"]
+[ext_resource type="AudioStream" uid="uid://wtoxhk0tf8ev" path="res://funny_sounds/Cat Meow - Minecraft Sound Effect (HD).mp3" id="3_gatxj"]
[node name="Node2D" type="Node2D"]
script = ExtResource("1_y7a0r")
@@ -21,4 +22,7 @@ text = "Net worth: $"
wait_time = 10.0
autostart = true
+[node name="Meow" type="AudioStreamPlayer" parent="."]
+stream = ExtResource("3_gatxj")
+
[connection signal="timeout" from="Microgame spawn timer" to="." method="_on_microgame_spawn_timer_timeout"]