feat: add enemy node; add player/enemy collision; add player hp to the scene manager; add hit by enemy logic;
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
[gd_scene format=3 uid="uid://c1ehbmaja4lpg"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cwejyda54idtw" path="res://Ninja Adventure - Asset Pack/Actor/Monsters/Slime/Slime.png" id="1_18say"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_3rdvi"]
|
||||
radius = 6.0827627
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_55qlh"]
|
||||
atlas = ExtResource("1_18say")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_chgu2"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_55qlh")
|
||||
}],
|
||||
"loop": 1,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[node name="SlimeEnemy" type="CharacterBody2D" unique_id=384578683]
|
||||
collision_layer = 16
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=627034710]
|
||||
position = Vector2(0, 2)
|
||||
shape = SubResource("CircleShape2D_3rdvi")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=1489783052]
|
||||
sprite_frames = SubResource("SpriteFrames_chgu2")
|
||||
Reference in New Issue
Block a user