feat: 添加敌人并且追踪player,同时避免敌人重叠

This commit is contained in:
luke358
2026-05-17 21:02:46 +08:00
parent b678b90883
commit 67ea3f2d42
37 changed files with 543 additions and 4 deletions
@@ -0,0 +1,19 @@
[gd_resource type="Resource" script_class="UnitStats" format=3 uid="uid://bnknrm368mpwb"]
[ext_resource type="Texture2D" uid="uid://4mllmwdfhmce" path="res://assets/sprites/Enemies/Enemy_4.png" id="1_llpja"]
[ext_resource type="Script" uid="uid://dgjdpmaiufhs6" path="res://resources/units/unit_stats.gd" id="2_1vxf5"]
[resource]
script = ExtResource("2_1vxf5")
name = "Shooter"
type = 1
icon = ExtResource("1_llpja")
health = 4
health_increase_per_wave = 2.0
damage = 3.0
damage_increase_per_wave = 1.5
speed = 260
luck = 0.0
block_chance = 3.0
gold_drop = 3
metadata/_custom_type_script = "uid://dgjdpmaiufhs6"