adding sound to menu

This commit is contained in:
Fabio 2024-08-20 18:01:25 +02:00
parent 5a278ca062
commit d255435c93
8 changed files with 190 additions and 7 deletions

View file

@ -1,12 +1,66 @@
[gd_scene load_steps=7 format=3 uid="uid://snxpqx0ony7s"]
[gd_scene load_steps=11 format=3 uid="uid://snxpqx0ony7s"]
[ext_resource type="Script" path="res://scripts/player_movement.gd" id="1_a6lhy"]
[ext_resource type="Texture2D" uid="uid://qcx482jc7pqr" path="res://textures/player.png" id="2_sscjv"]
[ext_resource type="Texture2D" uid="uid://s7wqkcxerals" path="res://textures/Eye Lase.png" id="3_yg3ur"]
[ext_resource type="AudioStream" uid="uid://donbyet486b4" path="res://sound/Jump5.wav" id="4_jit8y"]
[ext_resource type="Texture2D" uid="uid://bnj38vubchr2w" path="res://textures/Virus-Player-Sheet.png" id="2_183nu"]
[ext_resource type="Texture2D" uid="uid://bd7y5w6cfi5ly" path="res://textures/Eye Lase.png" id="3_yg3ur"]
[ext_resource type="AudioStream" uid="uid://cc2cqe8owjaaa" path="res://sound/Jump5.wav" id="4_jit8y"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_31jvr"]
[sub_resource type="Animation" id="Animation_ahrep"]
resource_name = "idle"
length = 0.4
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame_coords")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.0666667, 0.133333, 0.2, 0.266667, 0.333333),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
"update": 1,
"values": [Vector2i(0, 0), Vector2i(1, 0), Vector2i(2, 0), Vector2i(3, 0), Vector2i(4, 0), Vector2i(5, 0)]
}
[sub_resource type="Animation" id="Animation_g8ois"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame_coords")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [Vector2i(0, 0)]
}
[sub_resource type="Animation" id="Animation_1wyqk"]
resource_name = "moving"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame_coords")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [Vector2i(0, 0)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_hrlyn"]
_data = {
"RESET": SubResource("Animation_g8ois"),
"idle": SubResource("Animation_ahrep"),
"moving": SubResource("Animation_1wyqk")
}
[sub_resource type="CircleShape2D" id="CircleShape2D_vxfel"]
radius = 12.0
@ -23,7 +77,13 @@ jump_strength = 600
shape = SubResource("RectangleShape2D_31jvr")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("2_sscjv")
texture = ExtResource("2_183nu")
hframes = 6
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_hrlyn")
}
[node name="Hurtbox" type="Area2D" parent="."]
collision_layer = 0

View file

@ -1,7 +1,7 @@
[gd_scene load_steps=8 format=3 uid="uid://c6g2f7tm7iasr"]
[ext_resource type="Script" path="res://scripts/PressurePlate.gd" id="1_7ar3x"]
[ext_resource type="Texture2D" uid="uid://bpfvkxqajd1en" path="res://textures/PressurePlate.png" id="1_st48m"]
[ext_resource type="Texture2D" uid="uid://cwf57p0osmc0w" path="res://textures/PressurePlate.png" id="1_st48m"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_c6ukx"]
size = Vector2(24, 2)