sprite.tscn 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. [gd_scene load_steps=6 format=3 uid="uid://pxvb8ikxb0k"]
  2. [ext_resource type="Texture2D" uid="uid://bxrjk2lilj53q" path="res://combat/combatants/sprites/shadow.png" id="1"]
  3. [ext_resource type="Texture2D" uid="uid://c82ex4vybwch5" path="res://combat/combatants/sprites/player_battle.png" id="2"]
  4. [sub_resource type="Animation" id="2"]
  5. resource_name = "idle"
  6. length = 1.5
  7. tracks/0/type = "value"
  8. tracks/0/imported = false
  9. tracks/0/enabled = true
  10. tracks/0/path = NodePath("Pivot/Body:position")
  11. tracks/0/interp = 1
  12. tracks/0/loop_wrap = true
  13. tracks/0/keys = {
  14. "times": PackedFloat32Array(0, 0.2, 0.8, 1.5),
  15. "transitions": PackedFloat32Array(1, 0.5, 2, 1),
  16. "update": 0,
  17. "values": [Vector2(0, -41), Vector2(0, -35), Vector2(0, -51), Vector2(0, -41)]
  18. }
  19. tracks/1/type = "value"
  20. tracks/1/imported = false
  21. tracks/1/enabled = true
  22. tracks/1/path = NodePath("Pivot/Body:scale")
  23. tracks/1/interp = 1
  24. tracks/1/loop_wrap = true
  25. tracks/1/keys = {
  26. "times": PackedFloat32Array(0, 0.2, 0.8, 1.5),
  27. "transitions": PackedFloat32Array(1, 0.5, 2, 1),
  28. "update": 0,
  29. "values": [Vector2(1, 1), Vector2(1.078, 0.906), Vector2(0.938, 1.156), Vector2(1, 1)]
  30. }
  31. [sub_resource type="Animation" id="1"]
  32. resource_name = "take_damage"
  33. length = 0.2
  34. step = 0.01
  35. tracks/0/type = "value"
  36. tracks/0/imported = false
  37. tracks/0/enabled = true
  38. tracks/0/path = NodePath("Pivot/Body:modulate")
  39. tracks/0/interp = 1
  40. tracks/0/loop_wrap = true
  41. tracks/0/keys = {
  42. "times": PackedFloat32Array(0, 0.05, 0.1, 0.15, 0.2),
  43. "transitions": PackedFloat32Array(1, 1, 1, 1, 1),
  44. "update": 0,
  45. "values": [Color(1, 1, 1, 1), Color(3, 0.253906, 0.253906, 1), Color(1, 1, 1, 1), Color(3, 0.253906, 0.253906, 1), Color(1, 1, 1, 1)]
  46. }
  47. [sub_resource type="AnimationLibrary" id="AnimationLibrary_cqku5"]
  48. _data = {
  49. "idle": SubResource("2"),
  50. "take_damage": SubResource("1")
  51. }
  52. [node name="Sprite2D" type="Node2D"]
  53. [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
  54. autoplay = "idle"
  55. libraries = {
  56. "": SubResource("AnimationLibrary_cqku5")
  57. }
  58. next/take_damage = &"idle"
  59. [node name="Pivot" type="Marker2D" parent="."]
  60. [node name="Shadow" type="Sprite2D" parent="Pivot"]
  61. modulate = Color(0.196078, 0.0235294, 0.329412, 0.301961)
  62. position = Vector2(0, -4.44299)
  63. texture = ExtResource("1")
  64. [node name="Body" type="Sprite2D" parent="Pivot"]
  65. position = Vector2(0, -41)
  66. texture = ExtResource("2")