Improvements
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://bgdkduh2uevft"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://bgdkduh2uevft"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/v2/enemy.gd" id="1_jfeur"]
|
||||
[ext_resource type="Texture2D" uid="uid://iewpb4eaydo1" path="res://assets/art/Enemies/basic_enemy1.png" id="2_g0kyc"]
|
||||
@ -8,8 +8,13 @@
|
||||
radius = 3.0
|
||||
height = 16.0
|
||||
|
||||
[node name="BasicEnemy" type="CharacterBody2D"]
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_4efxi"]
|
||||
radius = 64.0
|
||||
|
||||
[node name="BasicEnemy" type="CharacterBody2D" node_paths=PackedStringArray("sprite", "detection_area")]
|
||||
script = ExtResource("1_jfeur")
|
||||
sprite = NodePath("Sprite2D")
|
||||
detection_area = NodePath("Area2D")
|
||||
max_hp = 3
|
||||
death_sound = ExtResource("2_pspk3")
|
||||
|
||||
@ -19,3 +24,8 @@ texture = ExtResource("2_g0kyc")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CapsuleShape2D_htsfi")
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
||||
shape = SubResource("CircleShape2D_4efxi")
|
||||
|
Reference in New Issue
Block a user