Debug zombie spawner
This commit is contained in:
parent
116ebff0c2
commit
0fff33d196
69 changed files with 564 additions and 100 deletions
|
|
@ -16,8 +16,8 @@ shader_parameter/amount = 0.0
|
|||
material = SubResource("ShaderMaterial_wdi07")
|
||||
|
||||
[node name="Hat" parent="CanvasGroup" index="1"]
|
||||
position = Vector2(-7, -83)
|
||||
position = Vector2(-12, -83)
|
||||
texture = ExtResource("3_0nlp0")
|
||||
|
||||
[node name="Armor" parent="." index="8"]
|
||||
[node name="Armor" parent="." index="7"]
|
||||
_maxHP = 180
|
||||
|
|
|
|||
|
|
@ -18,10 +18,10 @@ _armor = NodePath("Armor")
|
|||
material = SubResource("ShaderMaterial_sat5k")
|
||||
|
||||
[node name="Hat" type="Sprite2D" parent="CanvasGroup" index="1"]
|
||||
position = Vector2(-6, -88)
|
||||
position = Vector2(-12, -88)
|
||||
texture = ExtResource("4_qdhik")
|
||||
|
||||
[node name="Armor" type="Node" parent="." index="8"]
|
||||
[node name="Armor" type="Node" parent="." index="7"]
|
||||
script = ExtResource("3_5s7in")
|
||||
_maxHP = 60
|
||||
|
||||
|
|
|
|||
|
|
@ -174,12 +174,12 @@ material = SubResource("ShaderMaterial_w8pya")
|
|||
[node name="Can" type="Node2D" parent="CanvasGroup" index="1"]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="CanvasGroup/Can" index="0"]
|
||||
position = Vector2(3, -40)
|
||||
position = Vector2(-4, -40)
|
||||
texture = SubResource("AtlasTexture_w8pya")
|
||||
|
||||
[node name="Sprite2D2" type="Sprite2D" parent="CanvasGroup/Can" index="1"]
|
||||
z_index = -1
|
||||
position = Vector2(1, -63)
|
||||
position = Vector2(-6, -63)
|
||||
texture = SubResource("AtlasTexture_5selg")
|
||||
|
||||
[node name="AnimationPlayer" parent="." index="3"]
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
[gd_scene load_steps=27 format=3 uid="uid://co11v3w8hbwgf"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dildme6epx8l4" path="res://scripts/components/zombies/RuntimeZombieData.cs" id="1_qq3f1"]
|
||||
[ext_resource type="Texture2D" uid="uid://bwwbkybryi6k0" path="res://assets/sprites/zombie.tres" id="2_4pdxh"]
|
||||
[ext_resource type="Texture2D" uid="uid://bwdqbrnn7ygtr" path="res://assets/sprites/atlases/zombies/Зондби.png" id="2_4pdxh"]
|
||||
[ext_resource type="Shader" uid="uid://d0eo5uuj222c4" path="res://assets/shaders/CG_color_blender.gdshader" id="2_srwwe"]
|
||||
[ext_resource type="Script" uid="uid://dqyony6jxt2p0" path="res://scripts/components/zombies/EatBox.cs" id="3_2aulo"]
|
||||
[ext_resource type="Script" uid="uid://c5vfccegyy01t" path="res://scripts/components/FlashComponent.cs" id="3_rao3m"]
|
||||
|
|
@ -103,7 +103,7 @@ material = SubResource("ShaderMaterial_63ls2")
|
|||
script = ExtResource("3_rao3m")
|
||||
|
||||
[node name="Sprite" type="Sprite2D" parent="CanvasGroup"]
|
||||
position = Vector2(0, -44)
|
||||
position = Vector2(-4, -55)
|
||||
texture = ExtResource("2_4pdxh")
|
||||
|
||||
[node name="Hitbox" type="Area2D" parent="."]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=14 format=3 uid="uid://bes4e6sksax67"]
|
||||
[gd_scene load_steps=14 format=3 uid="uid://qq0cw8xtcoj3"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://b1hjjbdwf1rtc" path="res://scenes/templates/plant_template.tscn" id="1_5i0e6"]
|
||||
[ext_resource type="Texture2D" uid="uid://dff73m8ahamaa" path="res://assets/sprites/atlases/plants/garlic.png" id="2_w2jbi"]
|
||||
|
|
|
|||
|
|
@ -3,11 +3,11 @@
|
|||
[ext_resource type="PackedScene" uid="uid://b1hjjbdwf1rtc" path="res://scenes/templates/plant_template.tscn" id="1_pyk3o"]
|
||||
[ext_resource type="Texture2D" uid="uid://cksryh4w5dbbx" path="res://assets/sprites/atlases/plants/peashooter.png" id="2_14qlx"]
|
||||
[ext_resource type="AnimationLibrary" uid="uid://bv1dl1g4dmbho" path="res://resources/animations/plants/peashooter.res" id="3_8lrhp"]
|
||||
[ext_resource type="Script" path="res://scripts/components/plants/Shooter.cs" id="3_a4ew1"]
|
||||
[ext_resource type="Script" uid="uid://ceprqkraw3v6m" path="res://scripts/components/plants/Shooter.cs" id="3_a4ew1"]
|
||||
[ext_resource type="PackedScene" uid="uid://b2hrv0aqbui7u" path="res://scenes/projectiles/pea.tscn" id="4_saxds"]
|
||||
[ext_resource type="Script" path="res://scripts/components/plants/behaviours/PeashooterBehaviour.cs" id="5_7qiua"]
|
||||
[ext_resource type="Script" path="res://scripts/components/plants/Eyesight.cs" id="7_2bki8"]
|
||||
[ext_resource type="Script" path="res://scripts/components/plants/PlantEyesightLimiter.cs" id="8_nl4jc"]
|
||||
[ext_resource type="Script" uid="uid://bdk5iqtw4xbkl" path="res://scripts/components/plants/behaviours/PeashooterBehaviour.cs" id="5_7qiua"]
|
||||
[ext_resource type="Script" uid="uid://dn53jvpjyg63l" path="res://scripts/components/plants/Eyesight.cs" id="7_2bki8"]
|
||||
[ext_resource type="Script" uid="uid://hccb0aee0x0o" path="res://scripts/components/plants/PlantEyesightLimiter.cs" id="8_nl4jc"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_a2y0j"]
|
||||
length = 0.001
|
||||
|
|
@ -26,7 +26,7 @@ tracks/0/keys = {
|
|||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ipp6b"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_a2y0j")
|
||||
&"RESET": SubResource("Animation_a2y0j")
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_34v85"]
|
||||
|
|
@ -68,8 +68,8 @@ vframes = 2
|
|||
|
||||
[node name="AnimationPlayer" parent="." index="1"]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_ipp6b"),
|
||||
"peashooter": ExtResource("3_8lrhp")
|
||||
&"": SubResource("AnimationLibrary_ipp6b"),
|
||||
&"peashooter": ExtResource("3_8lrhp")
|
||||
}
|
||||
autoplay = "peashooter/idle"
|
||||
|
||||
|
|
@ -87,12 +87,10 @@ _timer = NodePath("Timer")
|
|||
wait_time = 1.5
|
||||
one_shot = true
|
||||
|
||||
[node name="Behaviour" type="Node" parent="." index="4" node_paths=PackedStringArray("_player", "_shootTimer", "_sight")]
|
||||
[node name="Behaviour" type="Node" parent="." index="4" node_paths=PackedStringArray("_shootTimer", "_sight")]
|
||||
script = ExtResource("5_7qiua")
|
||||
_player = NodePath("../AnimationPlayer")
|
||||
_shootTimer = NodePath("../Shooter/Timer")
|
||||
_sight = NodePath("../Eysight")
|
||||
_libName = "peashooter"
|
||||
|
||||
[node name="Eysight" type="Area2D" parent="." index="5"]
|
||||
collision_layer = 4
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
[ext_resource type="PackedScene" uid="uid://b1hjjbdwf1rtc" path="res://scenes/templates/plant_template.tscn" id="1_dj7ul"]
|
||||
[ext_resource type="Texture2D" uid="uid://c77o6ba0mw7a3" path="res://assets/sprites/atlases/plants/potato_mine.png" id="2_sneas"]
|
||||
[ext_resource type="Script" path="res://scripts/components/plants/ExplosionComponent.cs" id="3_2hd5y"]
|
||||
[ext_resource type="Script" uid="uid://bhl6o2m3fn4xg" path="res://scripts/components/plants/ExplosionComponent.cs" id="3_2hd5y"]
|
||||
[ext_resource type="AnimationLibrary" uid="uid://bjlbdvr6f0r7e" path="res://resources/animations/plants/potato_mine.res" id="3_7tqmj"]
|
||||
[ext_resource type="Script" path="res://scripts/components/plants/behaviours/PotatomineBehaviour.cs" id="4_twx65"]
|
||||
[ext_resource type="Script" uid="uid://c7qfh4py0uulo" path="res://scripts/components/plants/behaviours/PotatomineBehaviour.cs" id="4_twx65"]
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_6uutc"]
|
||||
animation = &"potato_mine/explode"
|
||||
|
|
@ -70,10 +70,11 @@ _maxHP = 100
|
|||
texture = ExtResource("2_sneas")
|
||||
hframes = 7
|
||||
vframes = 4
|
||||
frame = 7
|
||||
|
||||
[node name="AnimationPlayer" parent="." index="1"]
|
||||
libraries = {
|
||||
"potato_mine": ExtResource("3_7tqmj")
|
||||
&"potato_mine": ExtResource("3_7tqmj")
|
||||
}
|
||||
autoplay = "idle_unprimed"
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
[ext_resource type="PackedScene" uid="uid://b1hjjbdwf1rtc" path="res://scenes/templates/plant_template.tscn" id="1_fluxn"]
|
||||
[ext_resource type="Texture2D" uid="uid://dstqh1wc5dvmo" path="res://assets/sprites/atlases/plants/wallnut.png" id="2_o5tda"]
|
||||
[ext_resource type="AnimationLibrary" uid="uid://0bdesb8j2mbo" path="res://resources/animations/plants/wallnut.res" id="3_xl65q"]
|
||||
[ext_resource type="Script" path="res://scripts/components/plants/behaviours/HpBasedBehaviour.cs" id="4_cjtyy"]
|
||||
[ext_resource type="Script" uid="uid://btkmd86pn828y" path="res://scripts/components/plants/behaviours/HpBasedBehaviour.cs" id="4_cjtyy"]
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_ds5ry"]
|
||||
animation = &"wallnut/idle_full"
|
||||
|
|
@ -34,10 +34,11 @@ _maxHP = 1000
|
|||
texture = ExtResource("2_o5tda")
|
||||
hframes = 12
|
||||
vframes = 3
|
||||
frame = 3
|
||||
|
||||
[node name="AnimationPlayer" parent="." index="1"]
|
||||
libraries = {
|
||||
"wallnut": ExtResource("3_xl65q")
|
||||
&"wallnut": ExtResource("3_xl65q")
|
||||
}
|
||||
|
||||
[node name="AnimationTree" parent="." index="2"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue