playersprite.tscn 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. [gd_scene load_steps=32 format=2]
  2. [ext_resource path="res://art/1/character 1__Idle.png" type="Texture" id=1]
  3. [ext_resource path="res://art/1/character 1__WALK.png" type="Texture" id=2]
  4. [ext_resource path="res://art/1/character 1__roll.png" type="Texture" id=3]
  5. [ext_resource path="res://weapons/sword1.tscn" type="PackedScene" id=4]
  6. [sub_resource type="AtlasTexture" id=1]
  7. atlas = ExtResource( 1 )
  8. region = Rect2( 0, 0, 120, 80 )
  9. [sub_resource type="AtlasTexture" id=2]
  10. atlas = ExtResource( 1 )
  11. region = Rect2( 120, 0, 120, 80 )
  12. [sub_resource type="AtlasTexture" id=3]
  13. atlas = ExtResource( 1 )
  14. region = Rect2( 240, 0, 120, 80 )
  15. [sub_resource type="AtlasTexture" id=4]
  16. atlas = ExtResource( 1 )
  17. region = Rect2( 360, 0, 120, 80 )
  18. [sub_resource type="AtlasTexture" id=5]
  19. atlas = ExtResource( 3 )
  20. region = Rect2( 0, 0, 120, 80 )
  21. [sub_resource type="AtlasTexture" id=6]
  22. atlas = ExtResource( 3 )
  23. region = Rect2( 120, 0, 120, 80 )
  24. [sub_resource type="AtlasTexture" id=7]
  25. atlas = ExtResource( 3 )
  26. region = Rect2( 240, 0, 120, 80 )
  27. [sub_resource type="AtlasTexture" id=8]
  28. atlas = ExtResource( 3 )
  29. region = Rect2( 360, 0, 120, 80 )
  30. [sub_resource type="AtlasTexture" id=9]
  31. atlas = ExtResource( 3 )
  32. region = Rect2( 480, 0, 120, 80 )
  33. [sub_resource type="AtlasTexture" id=10]
  34. atlas = ExtResource( 3 )
  35. region = Rect2( 600, 0, 120, 80 )
  36. [sub_resource type="AtlasTexture" id=11]
  37. atlas = ExtResource( 3 )
  38. region = Rect2( 720, 0, 120, 80 )
  39. [sub_resource type="AtlasTexture" id=12]
  40. atlas = ExtResource( 3 )
  41. region = Rect2( 840, 0, 120, 80 )
  42. [sub_resource type="AtlasTexture" id=13]
  43. atlas = ExtResource( 3 )
  44. region = Rect2( 960, 0, 120, 80 )
  45. [sub_resource type="AtlasTexture" id=14]
  46. atlas = ExtResource( 3 )
  47. region = Rect2( 1080, 0, 120, 80 )
  48. [sub_resource type="AtlasTexture" id=15]
  49. atlas = ExtResource( 3 )
  50. region = Rect2( 1200, 0, 120, 80 )
  51. [sub_resource type="AtlasTexture" id=16]
  52. atlas = ExtResource( 3 )
  53. region = Rect2( 1320, 0, 120, 80 )
  54. [sub_resource type="AtlasTexture" id=17]
  55. atlas = ExtResource( 2 )
  56. region = Rect2( 0, 0, 120, 80 )
  57. [sub_resource type="AtlasTexture" id=18]
  58. atlas = ExtResource( 2 )
  59. region = Rect2( 120, 0, 120, 80 )
  60. [sub_resource type="AtlasTexture" id=19]
  61. atlas = ExtResource( 2 )
  62. region = Rect2( 240, 0, 120, 80 )
  63. [sub_resource type="AtlasTexture" id=20]
  64. atlas = ExtResource( 2 )
  65. region = Rect2( 360, 0, 120, 80 )
  66. [sub_resource type="AtlasTexture" id=21]
  67. atlas = ExtResource( 2 )
  68. region = Rect2( 480, 0, 120, 80 )
  69. [sub_resource type="AtlasTexture" id=22]
  70. atlas = ExtResource( 2 )
  71. region = Rect2( 600, 0, 120, 80 )
  72. [sub_resource type="AtlasTexture" id=23]
  73. atlas = ExtResource( 2 )
  74. region = Rect2( 720, 0, 120, 80 )
  75. [sub_resource type="AtlasTexture" id=24]
  76. atlas = ExtResource( 2 )
  77. region = Rect2( 840, 0, 120, 80 )
  78. [sub_resource type="AtlasTexture" id=25]
  79. atlas = ExtResource( 2 )
  80. region = Rect2( 960, 0, 120, 80 )
  81. [sub_resource type="AtlasTexture" id=26]
  82. atlas = ExtResource( 2 )
  83. region = Rect2( 1080, 0, 120, 80 )
  84. [sub_resource type="SpriteFrames" id=27]
  85. animations = [ {
  86. "frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 2 ), SubResource( 3 ) ],
  87. "loop": true,
  88. "name": "idle",
  89. "speed": 4.0
  90. }, {
  91. "frames": [ SubResource( 5 ), SubResource( 6 ), SubResource( 7 ), SubResource( 8 ), SubResource( 9 ), SubResource( 10 ), SubResource( 11 ), SubResource( 12 ), SubResource( 13 ), SubResource( 14 ), SubResource( 15 ), SubResource( 16 ) ],
  92. "loop": true,
  93. "name": "roll",
  94. "speed": 15.0
  95. }, {
  96. "frames": [ SubResource( 17 ), SubResource( 18 ), SubResource( 19 ), SubResource( 20 ), SubResource( 21 ), SubResource( 22 ), SubResource( 23 ), SubResource( 24 ), SubResource( 25 ), SubResource( 26 ) ],
  97. "loop": true,
  98. "name": "walk",
  99. "speed": 15.0
  100. } ]
  101. [node name="playersprite" type="AnimatedSprite"]
  102. frames = SubResource( 27 )
  103. animation = "idle"
  104. frame = 2
  105. playing = true
  106. offset = Vector2( 3.72692, -21.0081 )
  107. [node name="weapon" parent="." instance=ExtResource( 4 )]
  108. position = Vector2( 0, -8.0534 )
  109. scale = Vector2( 0.75, 0.75 )