LockedDoor.tscn 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. [gd_scene load_steps=8 format=3 uid="uid://chfnuhi45nquf"]
  2. [ext_resource type="PackedScene" uid="uid://u3t1k5j28yap" path="res://Scenes/Prefabs/Entities/Objects/Door.tscn" id="1_t0orm"]
  3. [ext_resource type="JSON" path="res://Assets/Sprites/Tilesets/LockedDoors.json" id="2_0bcyf"]
  4. [ext_resource type="Texture2D" uid="uid://fyxbhdmqfxk5" path="res://Assets/Sprites/Tilesets/Doors.png" id="2_0u2mu"]
  5. [sub_resource type="AtlasTexture" id="AtlasTexture_kr4bu"]
  6. atlas = ExtResource("2_0u2mu")
  7. region = Rect2(48, 0, 16, 32)
  8. [sub_resource type="AtlasTexture" id="AtlasTexture_penv4"]
  9. atlas = ExtResource("2_0u2mu")
  10. region = Rect2(32, 0, 16, 32)
  11. [sub_resource type="AtlasTexture" id="AtlasTexture_jfxhu"]
  12. atlas = ExtResource("2_0u2mu")
  13. region = Rect2(16, 0, 16, 32)
  14. [sub_resource type="SpriteFrames" id="SpriteFrames_1efep"]
  15. animations = [{
  16. "frames": [{
  17. "duration": 1.0,
  18. "texture": SubResource("AtlasTexture_kr4bu")
  19. }, {
  20. "duration": 1.0,
  21. "texture": SubResource("AtlasTexture_penv4")
  22. }, {
  23. "duration": 1.0,
  24. "texture": SubResource("AtlasTexture_jfxhu")
  25. }],
  26. "loop": false,
  27. "name": &"Close",
  28. "speed": 15.0
  29. }, {
  30. "frames": [{
  31. "duration": 1.0,
  32. "texture": SubResource("AtlasTexture_jfxhu")
  33. }],
  34. "loop": true,
  35. "name": &"Idle",
  36. "speed": 5.0
  37. }, {
  38. "frames": [],
  39. "loop": true,
  40. "name": &"Locked",
  41. "speed": 5.0
  42. }, {
  43. "frames": [{
  44. "duration": 1.0,
  45. "texture": SubResource("AtlasTexture_jfxhu")
  46. }, {
  47. "duration": 1.0,
  48. "texture": SubResource("AtlasTexture_penv4")
  49. }, {
  50. "duration": 1.0,
  51. "texture": SubResource("AtlasTexture_kr4bu")
  52. }],
  53. "loop": false,
  54. "name": &"Open",
  55. "speed": 10.0
  56. }]
  57. [node name="LockedDoor" instance=ExtResource("1_t0orm")]
  58. locked = true
  59. start_locked = true
  60. [node name="Sprite" parent="." index="1"]
  61. sprite_frames = SubResource("SpriteFrames_1efep")
  62. animation = &"Locked"
  63. autoplay = "Locked"
  64. frame = 0
  65. frame_progress = 0.0
  66. [node name="ResourceSetterNew" parent="Sprite" index="0"]
  67. resource_json = ExtResource("2_0bcyf")