health_bar.tscn 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. [gd_scene load_steps=14 format=3 uid="uid://odwutyui6q5g"]
  2. [ext_resource type="Script" path="res://assets/scenes/health_bar.gd" id="1_pe8px"]
  3. [ext_resource type="Texture2D" uid="uid://edktycyiq13w" path="res://assets/textures/health_bar/hbtrue_11.png" id="2_yle5t"]
  4. [ext_resource type="Texture2D" uid="uid://ckr4omb8rvtvp" path="res://assets/textures/health_bar/hbtrue_1.png" id="3_m3xml"]
  5. [ext_resource type="Texture2D" uid="uid://bpr10h2i0cv0p" path="res://assets/textures/health_bar/hbtrue_2.png" id="4_h2ca5"]
  6. [ext_resource type="Texture2D" uid="uid://cpnxe30l1h5cw" path="res://assets/textures/health_bar/hbtrue_3.png" id="5_8w1ew"]
  7. [ext_resource type="Texture2D" uid="uid://cd62w1sw7hshn" path="res://assets/textures/health_bar/hbtrue_4.png" id="6_gk8cn"]
  8. [ext_resource type="Texture2D" uid="uid://dtp3nhr2t4nt0" path="res://assets/textures/health_bar/hbtrue_5.png" id="7_r24lk"]
  9. [ext_resource type="Texture2D" uid="uid://ckhoug16gx6pv" path="res://assets/textures/health_bar/hbtrue_6.png" id="8_74yao"]
  10. [ext_resource type="Texture2D" uid="uid://cudelthljkpis" path="res://assets/textures/health_bar/hbtrue_7.png" id="9_rdawm"]
  11. [ext_resource type="Texture2D" uid="uid://bnl8kensmvvi1" path="res://assets/textures/health_bar/hbtrue_8.png" id="10_uu6n3"]
  12. [ext_resource type="Texture2D" uid="uid://sgp2igmpjfhn" path="res://assets/textures/health_bar/hbtrue_9.png" id="11_721y0"]
  13. [ext_resource type="Texture2D" uid="uid://3r50neduuppy" path="res://assets/textures/health_bar/hbtrue_10.png" id="12_ebhj2"]
  14. [sub_resource type="SpriteFrames" id="SpriteFrames_mciub"]
  15. animations = [{
  16. "frames": [{
  17. "duration": 1.0,
  18. "texture": ExtResource("3_m3xml")
  19. }, {
  20. "duration": 1.0,
  21. "texture": ExtResource("4_h2ca5")
  22. }, {
  23. "duration": 1.0,
  24. "texture": ExtResource("5_8w1ew")
  25. }, {
  26. "duration": 1.0,
  27. "texture": ExtResource("6_gk8cn")
  28. }, {
  29. "duration": 1.0,
  30. "texture": ExtResource("7_r24lk")
  31. }, {
  32. "duration": 1.0,
  33. "texture": ExtResource("8_74yao")
  34. }, {
  35. "duration": 1.0,
  36. "texture": ExtResource("9_rdawm")
  37. }, {
  38. "duration": 1.0,
  39. "texture": ExtResource("10_uu6n3")
  40. }, {
  41. "duration": 1.0,
  42. "texture": ExtResource("11_721y0")
  43. }, {
  44. "duration": 1.0,
  45. "texture": ExtResource("12_ebhj2")
  46. }],
  47. "loop": false,
  48. "name": &"default",
  49. "speed": 0.0
  50. }]
  51. [node name="HealthBar" type="Node2D" groups=["health_bar"]]
  52. scale = Vector2(0.5, 0.5)
  53. script = ExtResource("1_pe8px")
  54. [node name="Background" type="Sprite2D" parent="."]
  55. texture = ExtResource("2_yle5t")
  56. [node name="Foreground" type="AnimatedSprite2D" parent="."]
  57. sprite_frames = SubResource("SpriteFrames_mciub")
  58. autoplay = "default"
  59. speed_scale = 2.08165e-12
  60. [connection signal="health_changed" from="." to="." method="_on_health_changed" flags=3]