combatant.tscn 551 B

123456789101112131415
  1. [gd_scene load_steps=4 format=3 uid="uid://blh4bx2nbvbn5"]
  2. [ext_resource type="Script" path="res://combat/combatants/combatant.gd" id="1"]
  3. [ext_resource type="Script" path="res://combat/combatants/health.gd" id="2"]
  4. [ext_resource type="PackedScene" uid="uid://pxvb8ikxb0k" path="res://combat/combatants/sprites/sprite.tscn" id="3"]
  5. [node name="Combatant" type="Node2D"]
  6. script = ExtResource("1")
  7. damage = 2
  8. [node name="Health" type="Node" parent="."]
  9. script = ExtResource("2")
  10. life = 10
  11. [node name="Sprite2D" parent="." instance=ExtResource("3")]