OnOffBlockRed.tscn 1.2 KB

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