OnOffBlueBlock.tscn 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. [gd_scene load_steps=7 format=3 uid="uid://b5cw2667exll"]
  2. [ext_resource type="PackedScene" uid="uid://by6ndsjhlkmbt" path="res://Scenes/Prefabs/Blocks/BooRaceBlocks/BooOnOffBlock.tscn" id="1_gov4d"]
  3. [ext_resource type="Texture2D" uid="uid://dql2td7sut6m8" path="res://Assets/Sprites/Blocks/OnOffBlock.png" id="2_pg6um"]
  4. [ext_resource type="JSON" path="res://Assets/Sprites/Blocks/BlueOnOffBlock.json" id="3_pg6um"]
  5. [sub_resource type="AtlasTexture" id="AtlasTexture_pg6um"]
  6. atlas = ExtResource("2_pg6um")
  7. region = Rect2(16, 0, 16, 16)
  8. [sub_resource type="AtlasTexture" id="AtlasTexture_85gn6"]
  9. atlas = ExtResource("2_pg6um")
  10. region = Rect2(0, 0, 16, 16)
  11. [sub_resource type="SpriteFrames" id="SpriteFrames_m455b"]
  12. animations = [{
  13. "frames": [{
  14. "duration": 1.0,
  15. "texture": SubResource("AtlasTexture_pg6um")
  16. }],
  17. "loop": false,
  18. "name": &"Off",
  19. "speed": 15.0
  20. }, {
  21. "frames": [{
  22. "duration": 1.0,
  23. "texture": SubResource("AtlasTexture_85gn6")
  24. }],
  25. "loop": false,
  26. "name": &"On",
  27. "speed": 15.0
  28. }]
  29. [node name="OnOffBlock" instance=ExtResource("1_gov4d")]
  30. active = true
  31. [node name="Sprite" parent="." index="0"]
  32. sprite_frames = SubResource("SpriteFrames_m455b")
  33. animation = &"On"
  34. autoplay = "On"
  35. [node name="ResourceSetter" parent="Sprite" index="0"]
  36. resource_json = ExtResource("3_pg6um")
  37. [node name="Collision" parent="." index="1"]
  38. disabled = false