SwitchSpikeBlockAlt.tscn 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. [gd_scene load_steps=14 format=3 uid="uid://0q874wkbxcrr"]
  2. [ext_resource type="PackedScene" uid="uid://d2ainv86lt68a" path="res://Scenes/Prefabs/Blocks/SwitchSpikeBlock.tscn" id="1_nuql5"]
  3. [ext_resource type="Texture2D" uid="uid://cv27sth0k3amk" path="res://Assets/Sprites/Blocks/SwitchSpike.png" id="2_s2uey"]
  4. [ext_resource type="JSON" path="res://Assets/Sprites/Blocks/SwitchSpikeBlockAlt.json" id="3_s2uey"]
  5. [sub_resource type="AtlasTexture" id="AtlasTexture_k8y7p"]
  6. atlas = ExtResource("2_s2uey")
  7. region = Rect2(80, 16, 16, 16)
  8. [sub_resource type="AtlasTexture" id="AtlasTexture_yyfhm"]
  9. atlas = ExtResource("2_s2uey")
  10. region = Rect2(96, 16, 16, 16)
  11. [sub_resource type="AtlasTexture" id="AtlasTexture_jo8o0"]
  12. atlas = ExtResource("2_s2uey")
  13. region = Rect2(112, 16, 16, 16)
  14. [sub_resource type="AtlasTexture" id="AtlasTexture_kbjhk"]
  15. atlas = ExtResource("2_s2uey")
  16. region = Rect2(0, 16, 16, 16)
  17. [sub_resource type="AtlasTexture" id="AtlasTexture_aevfu"]
  18. atlas = ExtResource("2_s2uey")
  19. region = Rect2(16, 16, 16, 16)
  20. [sub_resource type="AtlasTexture" id="AtlasTexture_8cf4e"]
  21. atlas = ExtResource("2_s2uey")
  22. region = Rect2(32, 16, 16, 16)
  23. [sub_resource type="AtlasTexture" id="AtlasTexture_e6uvi"]
  24. atlas = ExtResource("2_s2uey")
  25. region = Rect2(48, 16, 16, 16)
  26. [sub_resource type="AtlasTexture" id="AtlasTexture_2f4s2"]
  27. atlas = ExtResource("2_s2uey")
  28. region = Rect2(64, 16, 16, 16)
  29. [sub_resource type="AtlasTexture" id="AtlasTexture_8lvdt"]
  30. atlas = ExtResource("2_s2uey")
  31. region = Rect2(64, 16, 16, 16)
  32. [sub_resource type="SpriteFrames" id="SpriteFrames_twrdj"]
  33. animations = [{
  34. "frames": [{
  35. "duration": 1.0,
  36. "texture": SubResource("AtlasTexture_k8y7p")
  37. }, {
  38. "duration": 1.0,
  39. "texture": SubResource("AtlasTexture_yyfhm")
  40. }, {
  41. "duration": 1.0,
  42. "texture": SubResource("AtlasTexture_jo8o0")
  43. }, {
  44. "duration": 1.0,
  45. "texture": SubResource("AtlasTexture_kbjhk")
  46. }],
  47. "loop": false,
  48. "name": &"Off",
  49. "speed": 15.0
  50. }, {
  51. "frames": [{
  52. "duration": 1.0,
  53. "texture": SubResource("AtlasTexture_aevfu")
  54. }, {
  55. "duration": 1.0,
  56. "texture": SubResource("AtlasTexture_8cf4e")
  57. }, {
  58. "duration": 1.0,
  59. "texture": SubResource("AtlasTexture_e6uvi")
  60. }, {
  61. "duration": 1.0,
  62. "texture": SubResource("AtlasTexture_2f4s2")
  63. }],
  64. "loop": false,
  65. "name": &"On",
  66. "speed": 15.0
  67. }, {
  68. "frames": [{
  69. "duration": 1.0,
  70. "texture": SubResource("AtlasTexture_8lvdt")
  71. }],
  72. "loop": true,
  73. "name": &"Rest",
  74. "speed": 5.0
  75. }]
  76. [node name="SwitchSpikeBlock" instance=ExtResource("1_nuql5")]
  77. active = true
  78. [node name="Sprite" parent="." index="0"]
  79. sprite_frames = SubResource("SpriteFrames_twrdj")
  80. [node name="ResourceSetter" parent="Sprite" index="0"]
  81. resource_json = ExtResource("3_s2uey")
  82. [node name="CollisionShape2D" parent="PlayerHurtBox" index="0"]
  83. disabled = false