Lessons: Player health, damage, stats, resources
This commit is contained in:
parent
147199a012
commit
7842e15c6c
13 changed files with 153 additions and 18 deletions
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=7 format=2]
|
||||
[gd_scene load_steps=8 format=2]
|
||||
|
||||
[ext_resource path="res://Scenes/Enemies/WalkingEnemy.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Assets/Enemies/WalkingEnemy.png" type="Texture" id=2]
|
||||
|
@ -26,9 +26,11 @@ tracks/0/keys = {
|
|||
[sub_resource type="RectangleShape2D" id=3]
|
||||
extents = Vector2( 7, 6 )
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=4]
|
||||
extents = Vector2( 8, 6 )
|
||||
|
||||
[node name="WalkingEnemy" instance=ExtResource( 3 )]
|
||||
script = ExtResource( 1 )
|
||||
MAX_SPEED = 15
|
||||
|
||||
[node name="Sprite" parent="." index="0"]
|
||||
position = Vector2( 0, -9 )
|
||||
|
@ -76,4 +78,13 @@ collision_mask = 0
|
|||
position = Vector2( 0, -7 )
|
||||
shape = SubResource( 3 )
|
||||
|
||||
[node name="Collider" parent="Hitbox" index="0"]
|
||||
position = Vector2( 0, -8 )
|
||||
shape = SubResource( 4 )
|
||||
|
||||
[node name="EnemyStats" parent="." index="9"]
|
||||
max_health = 3
|
||||
|
||||
[editable path="Hurtbox"]
|
||||
|
||||
[editable path="Hitbox"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue