expanding save system an add more sounds

This commit is contained in:
megamichi 2025-04-08 23:13:14 +02:00
parent 947bdba21e
commit 7cb1f1fb00
Notes: Michael S. 2025-04-08 23:31:36 +02:00
Upgrade to Godot 4.4
62 changed files with 336 additions and 143 deletions

View file

@ -1,10 +1,11 @@
[gd_scene load_steps=14 format=3 uid="uid://8v5mbbnddorh"]
[gd_scene load_steps=15 format=3 uid="uid://8v5mbbnddorh"]
[ext_resource type="Texture2D" uid="uid://dc6grg2oaq3a6" path="res://scenes/Duck/ente.png" id="1"]
[ext_resource type="Script" path="res://scenes/Duck/Duck.gd" id="1_pvotk"]
[ext_resource type="Script" uid="uid://dbpbkgrhkhwxu" path="res://scenes/Duck/Duck.gd" id="1_pvotk"]
[ext_resource type="Texture2D" uid="uid://dsifqpp5l00cr" path="res://scenes/Duck/ente_colormask.png" id="3_a4v8w"]
[ext_resource type="Texture2D" uid="uid://c1mq2xs0uuoxu" path="res://scenes/Duck/customs/1.png" id="4_acy8u"]
[ext_resource type="Script" path="res://scenes/Duck/skin.gd" id="4_gc1nf"]
[ext_resource type="Script" uid="uid://b5yxkmigak8jm" path="res://scenes/Duck/skin.gd" id="4_gc1nf"]
[ext_resource type="AudioStream" uid="uid://b4c27tbewj1f1" path="res://assets/audio/jump.wav" id="6_etett"]
[sub_resource type="Animation" id="5"]
length = 0.001
@ -90,11 +91,11 @@ tracks/0/keys = {
[sub_resource type="AnimationLibrary" id="AnimationLibrary_rcmnp"]
_data = {
"RESET": SubResource("5"),
"die": SubResource("6"),
"fly": SubResource("7"),
"idle": SubResource("2"),
"walk": SubResource("3")
&"RESET": SubResource("5"),
&"die": SubResource("6"),
&"fly": SubResource("7"),
&"idle": SubResource("2"),
&"walk": SubResource("3")
}
[sub_resource type="CircleShape2D" id="CircleShape2D_1551i"]
@ -110,7 +111,7 @@ script = ExtResource("1_pvotk")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
root_node = NodePath("../hitbox")
libraries = {
"": SubResource("AnimationLibrary_rcmnp")
&"": SubResource("AnimationLibrary_rcmnp")
}
[node name="EnteConstantSprite" type="Sprite2D" parent="."]
@ -123,7 +124,7 @@ vframes = 2
frame = 4
[node name="EnteColormask" type="Sprite2D" parent="EnteConstantSprite"]
modulate = Color(1, 1, 0, 1)
modulate = Color(0, 1, 0.0999999, 1)
texture = ExtResource("3_a4v8w")
centered = false
hframes = 3
@ -152,5 +153,9 @@ position = Vector2(-13, -4)
shape = SubResource("CapsuleShape2D_46c8m")
debug_color = Color(0.906661, 0.254677, 0.42413, 0.42)
[node name="Jump" type="AudioStreamPlayer" parent="."]
stream = ExtResource("6_etett")
bus = &"Sounds"
[connection signal="frame_changed" from="EnteConstantSprite" to="." method="_on_ente_sprite_frame_changed"]
[connection signal="area_entered" from="hitbox" to="." method="_collide_with_hindernis"]