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,7 +1,9 @@
|
|||
[gd_scene load_steps=3 format=2]
|
||||
[gd_scene load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://Scenes/Enemies/Enemy.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scenes/Objects/Hurtbox.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://Scenes/Enemies/EnemyStats.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://Scenes/Objects/Hitbox.tscn" type="PackedScene" id=4]
|
||||
|
||||
[node name="Enemy" type="KinematicBody2D"]
|
||||
collision_layer = 0
|
||||
|
@ -16,4 +18,10 @@ script = ExtResource( 1 )
|
|||
|
||||
[node name="Hurtbox" parent="." instance=ExtResource( 2 )]
|
||||
collision_mask = 8
|
||||
|
||||
[node name="Hitbox" parent="." instance=ExtResource( 4 )]
|
||||
collision_mask = 4
|
||||
|
||||
[node name="EnemyStats" parent="." instance=ExtResource( 3 )]
|
||||
[connection signal="hit" from="Hurtbox" to="." method="_on_Hurtbox_hit"]
|
||||
[connection signal="enemy_died" from="EnemyStats" to="." method="_on_EnemyStats_enemy_died"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue