Placeholder damage values

This commit is contained in:
Фёдор Веселов 2024-09-17 21:53:01 +05:00
commit 62af0da4ea
3 changed files with 10 additions and 2 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=8 format=3 uid="uid://crxsvv7drckpw"] [gd_scene load_steps=9 format=3 uid="uid://crxsvv7drckpw"]
[ext_resource type="Script" path="res://scripts/components/level/RuntimeLevelData.cs" id="1_i3bf5"] [ext_resource type="Script" path="res://scripts/components/level/RuntimeLevelData.cs" id="1_i3bf5"]
[ext_resource type="Texture2D" uid="uid://b0tb2hjum40aw" path="res://assets/sprites/summertime_saga.png" id="2_vmxhy"] [ext_resource type="Texture2D" uid="uid://b0tb2hjum40aw" path="res://assets/sprites/summertime_saga.png" id="2_vmxhy"]
@ -7,6 +7,7 @@
[ext_resource type="PackedScene" uid="uid://cfnmspei3k4p7" path="res://scenes/gui/runtime_gui.tscn" id="6_0baou"] [ext_resource type="PackedScene" uid="uid://cfnmspei3k4p7" path="res://scenes/gui/runtime_gui.tscn" id="6_0baou"]
[ext_resource type="PackedScene" uid="uid://bpekho7leatr5" path="res://scenes/sun.tscn" id="6_ay12k"] [ext_resource type="PackedScene" uid="uid://bpekho7leatr5" path="res://scenes/sun.tscn" id="6_ay12k"]
[ext_resource type="Script" path="res://scripts/components/level/SunSpawner.cs" id="6_lkguy"] [ext_resource type="Script" path="res://scripts/components/level/SunSpawner.cs" id="6_lkguy"]
[ext_resource type="PackedScene" uid="uid://co11v3w8hbwgf" path="res://scenes/entities/Zombies/zombie.tscn" id="8_uxcm5"]
[node name="debug_lvl" type="Node2D"] [node name="debug_lvl" type="Node2D"]
@ -21,6 +22,7 @@ metadata/_edit_lock_ = true
[node name="RuntimeLevelData" type="Node" parent="."] [node name="RuntimeLevelData" type="Node" parent="."]
script = ExtResource("1_i3bf5") script = ExtResource("1_i3bf5")
SunCount = 100
[node name="Pools" parent="." instance=ExtResource("3_jv7x4")] [node name="Pools" parent="." instance=ExtResource("3_jv7x4")]
@ -44,4 +46,8 @@ SunScene = ExtResource("6_ay12k")
wait_time = 5.0 wait_time = 5.0
autostart = true autostart = true
[node name="Zombie" parent="." instance=ExtResource("8_uxcm5")]
position = Vector2(730, 190)
_line = 2
[connection signal="timeout" from="SunSpawner/Timer" to="SunSpawner" method="Spawn"] [connection signal="timeout" from="SunSpawner/Timer" to="SunSpawner" method="Spawn"]

View file

@ -149,7 +149,7 @@ graph_offset = Vector2(-17, -2)
[node name="Zombie" type="Node2D"] [node name="Zombie" type="Node2D"]
script = ExtResource("1_qq3f1") script = ExtResource("1_qq3f1")
_maxHP = 100 _maxHP = 70
[node name="Sprite" type="Sprite2D" parent="."] [node name="Sprite" type="Sprite2D" parent="."]
position = Vector2(0, -44) position = Vector2(0, -44)
@ -167,6 +167,7 @@ shape = SubResource("RectangleShape2D_hxyad")
collision_layer = 0 collision_layer = 0
collision_mask = 2 collision_mask = 2
script = ExtResource("3_2aulo") script = ExtResource("3_2aulo")
_damage = 50
_animationTree = NodePath("../AnimationTree") _animationTree = NodePath("../AnimationTree")
[node name="CollisionShape2D" type="CollisionShape2D" parent="Eatbox"] [node name="CollisionShape2D" type="CollisionShape2D" parent="Eatbox"]

View file

@ -11,6 +11,7 @@ collision_layer = 2
collision_mask = 4 collision_mask = 4
script = ExtResource("1_3kc4s") script = ExtResource("1_3kc4s")
_speed = 3.0 _speed = 3.0
_damage = 10
[node name="Sprite" type="Sprite2D" parent="."] [node name="Sprite" type="Sprite2D" parent="."]
texture = ExtResource("2_26q5x") texture = ExtResource("2_26q5x")