Audio system and rich text
This commit is contained in:
parent
a6f817efbc
commit
68cafff083
161 changed files with 1605 additions and 255 deletions
|
|
@ -1,12 +1,17 @@
|
|||
[gd_scene load_steps=34 format=3 uid="uid://bgqmwsb6ynm81"]
|
||||
[gd_scene load_steps=40 format=3 uid="uid://bgqmwsb6ynm81"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://co11v3w8hbwgf" path="res://scenes/entities/Zombies/zombie.tscn" id="1_fnu7s"]
|
||||
[ext_resource type="Shader" uid="uid://d0eo5uuj222c4" path="res://assets/shaders/CG_color_blender.gdshader" id="2_6qr4h"]
|
||||
[ext_resource type="Texture2D" uid="uid://cse1504ao4g8e" path="res://assets/sprites/atlases/zombies/hobo.png" id="3_6qr4h"]
|
||||
[ext_resource type="Script" uid="uid://dt5uj25u0g6y3" path="res://scripts/components/particles/FallParticle.cs" id="3_tu6af"]
|
||||
[ext_resource type="AnimationLibrary" uid="uid://cuh2kyb21hmkm" path="res://resources/animations/zombies/basic_zombie.res" id="4_02fim"]
|
||||
[ext_resource type="Script" uid="uid://c5v2og85t7s6j" path="res://scripts/components/zombies/behaviours/HoboBehaviour.cs" id="4_5selg"]
|
||||
[ext_resource type="Script" uid="uid://c3cfnrmnnuqms" path="res://addons/floatmodifiers/FloatModifiers.cs" id="4_c1y3b"]
|
||||
[ext_resource type="Script" uid="uid://fd4im1fmwc5n" path="res://scripts/components/Armor.cs" id="4_w8pya"]
|
||||
[ext_resource type="AudioStream" uid="uid://bu1egfsyplpx4" path="res://assets/audio/sfx/metalhit_generic.tres" id="8_4248q"]
|
||||
[ext_resource type="AudioStream" uid="uid://w0qfwds4o3ti" path="res://assets/audio/sfx/hit_generic.tres" id="9_tu6af"]
|
||||
[ext_resource type="Script" uid="uid://c36bj8u7jghc7" path="res://scripts/audio/ChannelPlayer.cs" id="11_7jlle"]
|
||||
[ext_resource type="AudioStream" uid="uid://ch55p7qbaawtp" path="res://assets/audio/sfx/argh.tres" id="12_w1b1s"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_w8pya"]
|
||||
resource_local_to_scene = true
|
||||
|
|
@ -22,6 +27,10 @@ region = Rect2(0, 15, 40, 49)
|
|||
atlas = ExtResource("3_6qr4h")
|
||||
region = Rect2(3, 0, 35, 11)
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_4248q"]
|
||||
radius = 17.0
|
||||
height = 48.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_qg8rq"]
|
||||
resource_local_to_scene = true
|
||||
script = ExtResource("4_c1y3b")
|
||||
|
|
@ -101,6 +110,20 @@ tracks/2/keys = {
|
|||
"update": 1,
|
||||
"values": [0.0, 1.0]
|
||||
}
|
||||
tracks/3/type = "method"
|
||||
tracks/3/imported = false
|
||||
tracks/3/enabled = true
|
||||
tracks/3/path = NodePath("RipPlayer")
|
||||
tracks/3/interp = 1
|
||||
tracks/3/loop_wrap = true
|
||||
tracks/3/keys = {
|
||||
"times": PackedFloat32Array(1.96667),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"values": [{
|
||||
"args": [],
|
||||
"method": &"Play"
|
||||
}]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_5selg"]
|
||||
resource_name = "walk"
|
||||
|
|
@ -206,7 +229,16 @@ _armor = NodePath("CanArmor")
|
|||
[node name="CanvasGroup" parent="." index="0"]
|
||||
material = SubResource("ShaderMaterial_w8pya")
|
||||
|
||||
[node name="Can" type="Node2D" parent="CanvasGroup" index="1"]
|
||||
[node name="Can" type="RigidBody2D" parent="CanvasGroup" index="1" node_paths=PackedStringArray("data")]
|
||||
collision_layer = 128
|
||||
collision_mask = 64
|
||||
freeze = true
|
||||
script = ExtResource("3_tu6af")
|
||||
data = NodePath("../..")
|
||||
maxAngle = 45.0
|
||||
minTorque = -45.0
|
||||
maxTorque = 45.0
|
||||
Impulse = 100.0
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="CanvasGroup/Can" index="0"]
|
||||
position = Vector2(-4, -40)
|
||||
|
|
@ -217,6 +249,10 @@ z_index = -1
|
|||
position = Vector2(-6, -63)
|
||||
texture = SubResource("AtlasTexture_5selg")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CanvasGroup/Can" index="2"]
|
||||
position = Vector2(-3, -40)
|
||||
shape = SubResource("CapsuleShape2D_4248q")
|
||||
|
||||
[node name="Eatbox" parent="." index="2"]
|
||||
_damage = SubResource("Resource_qg8rq")
|
||||
|
||||
|
|
@ -246,5 +282,16 @@ script = ExtResource("4_5selg")
|
|||
_eatBox = NodePath("../Eatbox")
|
||||
_animationTree = NodePath("../AnimationTree")
|
||||
|
||||
[connection signal="ArmorLost" from="CanArmor" to="CanvasGroup/Can" method="queue_free"]
|
||||
[node name="HitPlayer" parent="." index="9"]
|
||||
playlist = Array[AudioStream]([ExtResource("8_4248q"), ExtResource("9_tu6af")])
|
||||
channels = Array[String](["metal_hit", "hit"])
|
||||
|
||||
[node name="RipPlayer" type="Node" parent="." index="11"]
|
||||
script = ExtResource("11_7jlle")
|
||||
audioStream = ExtResource("12_w1b1s")
|
||||
channel = "anger"
|
||||
metadata/_custom_type_script = "uid://c36bj8u7jghc7"
|
||||
|
||||
[connection signal="ArmorLost" from="CanArmor" to="HitPlayer" method="Next"]
|
||||
[connection signal="ArmorLost" from="CanArmor" to="CanvasGroup/Can" method="FallOff"]
|
||||
[connection signal="ArmorLost" from="CanArmor" to="Behaviour" method="Trashed"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue