You can now press G to meow

This commit is contained in:
Zoey Kitt 2024-11-16 12:46:26 -06:00
parent 4618fc1952
commit 606c1714c6
3 changed files with 16 additions and 2 deletions

View file

@ -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"

View file

@ -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:

View file

@ -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"]