add death sound and refactor jump sound
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=30 format=3 uid="uid://3wumh6kpw3ai"]
|
||||
[gd_scene load_steps=27 format=3 uid="uid://3wumh6kpw3ai"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://pc081i405fo4" path="res://assets/sprites/knight.png" id="1_3vyb7"]
|
||||
[ext_resource type="Script" uid="uid://dkpsredq14h2l" path="res://scripts/player.gd" id="1_g2els"]
|
||||
@@ -172,43 +172,6 @@ animations = [{
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_fjrip"]
|
||||
radius = 5.0
|
||||
|
||||
[sub_resource type="Animation" id="Animation_dqkch"]
|
||||
resource_name = "jump"
|
||||
length = 0.2
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Jump:playing")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [true]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_qlg0r"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Jump:playing")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [false]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_tuyoq"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_qlg0r"),
|
||||
&"jump": SubResource("Animation_dqkch")
|
||||
}
|
||||
|
||||
[node name="Player" type="CharacterBody2D"]
|
||||
z_index = 5
|
||||
collision_layer = 2
|
||||
@@ -226,11 +189,6 @@ autoplay = "idle"
|
||||
position = Vector2(0, -5)
|
||||
shape = SubResource("CircleShape2D_fjrip")
|
||||
|
||||
[node name="Jump" type="AudioStreamPlayer2D" parent="."]
|
||||
[node name="JumpSound" type="AudioStreamPlayer2D" parent="."]
|
||||
stream = ExtResource("3_qhqgy")
|
||||
bus = &"SFX"
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_tuyoq")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user