summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoey Kitt <zoey.kitt@outlook.com>2024-11-16 12:46:26 -0600
committerZoey Kitt <zoey.kitt@outlook.com>2024-11-16 12:46:26 -0600
commit606c1714c654cb247a70c23b335a0aeca91c4c52 (patch)
tree137cc6d66ddbd6aa2cb6ee500136b952524571a9
parent4618fc195210e0565a8dc0662228fce377854c22 (diff)
You can now press G to meow
-rw-r--r--project.godot8
-rw-r--r--scenes/main.gd4
-rw-r--r--scenes/main.tscn6
3 files changed, 16 insertions, 2 deletions
diff --git a/project.godot b/project.godot
index 9f1d84d..8c91a0f 100644
--- a/project.godot
+++ b/project.godot
@@ -22,6 +22,14 @@ window/size/viewport_height=720
window/subwindows/embed_subwindows=false
window/stretch/mode="canvas_items"
+[input]
+
+G={
+"deadzone": 0.5,
+"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":0,"key_label":71,"unicode":0,"location":0,"echo":false,"script":null)
+]
+}
+
[rendering]
renderer/rendering_method="gl_compatibility"
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"]