OnOffSwitch.tscn 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. [gd_scene load_steps=10 format=3 uid="uid://c0020qrw11oy4"]
  2. [ext_resource type="PackedScene" uid="uid://5ua3p0lfl1bf" path="res://Scenes/Prefabs/Blocks/BooRaceBlocks/BooOnOffSwitch.tscn" id="1_bblk7"]
  3. [ext_resource type="Texture2D" uid="uid://sy6ivu4qc0o3" path="res://Assets/Sprites/Blocks/OnOffSwitch.png" id="2_xglou"]
  4. [ext_resource type="JSON" path="res://Assets/Sprites/Blocks/OnOffSwitch.json" id="3_xglou"]
  5. [sub_resource type="AtlasTexture" id="AtlasTexture_cs2ia"]
  6. atlas = ExtResource("2_xglou")
  7. region = Rect2(0, 0, 16, 16)
  8. [sub_resource type="AtlasTexture" id="AtlasTexture_8o30n"]
  9. atlas = ExtResource("2_xglou")
  10. region = Rect2(16, 0, 16, 16)
  11. [sub_resource type="AtlasTexture" id="AtlasTexture_heqbn"]
  12. atlas = ExtResource("2_xglou")
  13. region = Rect2(0, 16, 16, 16)
  14. [sub_resource type="AtlasTexture" id="AtlasTexture_hi63j"]
  15. atlas = ExtResource("2_xglou")
  16. region = Rect2(16, 16, 16, 16)
  17. [sub_resource type="AtlasTexture" id="AtlasTexture_i1gmf"]
  18. atlas = ExtResource("2_xglou")
  19. region = Rect2(0, 0, 16, 16)
  20. [sub_resource type="SpriteFrames" id="SpriteFrames_d785i"]
  21. animations = [{
  22. "frames": [{
  23. "duration": 1.0,
  24. "texture": SubResource("AtlasTexture_cs2ia")
  25. }, {
  26. "duration": 1.0,
  27. "texture": SubResource("AtlasTexture_8o30n")
  28. }],
  29. "loop": true,
  30. "name": &"Off",
  31. "speed": 5.0
  32. }, {
  33. "frames": [{
  34. "duration": 1.0,
  35. "texture": SubResource("AtlasTexture_heqbn")
  36. }, {
  37. "duration": 1.0,
  38. "texture": SubResource("AtlasTexture_hi63j")
  39. }],
  40. "loop": true,
  41. "name": &"On",
  42. "speed": 5.0
  43. }, {
  44. "frames": [{
  45. "duration": 1.0,
  46. "texture": SubResource("AtlasTexture_i1gmf")
  47. }],
  48. "loop": true,
  49. "name": &"default",
  50. "speed": 5.0
  51. }]
  52. [node name="OnOffSwitch" instance=ExtResource("1_bblk7")]
  53. destructable = false
  54. [node name="Sprite" parent="." index="0"]
  55. sprite_frames = SubResource("SpriteFrames_d785i")
  56. animation = &"Off"
  57. autoplay = "Off"
  58. [node name="ResourceSetter" parent="Sprite" index="0"]
  59. resource_json = ExtResource("3_xglou")
  60. [connection signal="shell_block_hit" from="." to="." method="on_block_hit" unbinds=1]
  61. [connection signal="shell_block_hit" from="." to="BlockAnimations" method="bounce_block" unbinds=1]