room.tscn 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. [gd_scene load_steps=21 format=3 uid="uid://cib2lh0nbkel5"]
  2. [ext_resource type="Script" path="res://scenes/room/room.gd" id="1_ewobw"]
  3. [ext_resource type="PackedScene" uid="uid://jk378m6wfrd0" path="res://scenes/color_barrier/colors/blue_color_barrier.tscn" id="2_lo0s8"]
  4. [ext_resource type="TileSet" uid="uid://d0l7mmmpe3p41" path="res://resources/background_tileset.tres" id="2_yk6re"]
  5. [ext_resource type="PackedScene" uid="uid://bq36wrgryacjm" path="res://scenes/color_barrier/colors/cyan_color_barrier.tscn" id="3_4am6j"]
  6. [ext_resource type="PackedScene" uid="uid://bwg7aa48kcn6s" path="res://scenes/color_barrier/colors/green_color_barrier.tscn" id="4_k2mvg"]
  7. [ext_resource type="PackedScene" uid="uid://cqigad7nmrgyh" path="res://scenes/color_barrier/colors/magenta_color_barrier.tscn" id="5_gmpkv"]
  8. [ext_resource type="PackedScene" uid="uid://1n7oll70icgp" path="res://scenes/color_barrier/colors/red_color_barrier.tscn" id="6_s55nc"]
  9. [ext_resource type="PackedScene" uid="uid://cxfrp3t0ocx3b" path="res://scenes/color_barrier/colors/yellow_color_barrier.tscn" id="7_duco0"]
  10. [ext_resource type="PackedScene" uid="uid://bmhxiii4f0l5b" path="res://scenes/color_barrier/colors/blue_inverted_color_barrier.tscn" id="9_jkeh3"]
  11. [ext_resource type="PackedScene" uid="uid://5spkoabsxi7f" path="res://scenes/color_barrier/colors/cyan_inverted_color_barrier.tscn" id="10_a64ot"]
  12. [ext_resource type="PackedScene" uid="uid://cs7ajs4jsyyji" path="res://scenes/color_barrier/colors/green_inverted_color_barrier.tscn" id="11_n5knq"]
  13. [ext_resource type="PackedScene" uid="uid://cw80nf1cvqusa" path="res://scenes/color_barrier/colors/magenta_inverted_color_barrier.tscn" id="12_sa3wg"]
  14. [ext_resource type="PackedScene" uid="uid://l301tbwx7n7o" path="res://scenes/color_barrier/colors/red_inverted_color_barrier.tscn" id="13_8wj5w"]
  15. [ext_resource type="PackedScene" uid="uid://dy3bimalhnw4" path="res://scenes/color_barrier/colors/yellow_inverted_color_barrier.tscn" id="14_0meii"]
  16. [ext_resource type="Texture2D" uid="uid://cf6njggg5oeal" path="res://assets/tileset/environment.svg" id="16_7ooho"]
  17. [sub_resource type="TileSetScenesCollectionSource" id="TileSetScenesCollectionSource_upnxp"]
  18. resource_name = "Color Barriers"
  19. scenes/2/scene = ExtResource("2_lo0s8")
  20. scenes/3/scene = ExtResource("3_4am6j")
  21. scenes/4/scene = ExtResource("4_k2mvg")
  22. scenes/5/scene = ExtResource("5_gmpkv")
  23. scenes/6/scene = ExtResource("6_s55nc")
  24. scenes/7/scene = ExtResource("7_duco0")
  25. [sub_resource type="TileSetScenesCollectionSource" id="TileSetScenesCollectionSource_wnrp6"]
  26. resource_name = "Inverted Color Barriers"
  27. scenes/1/scene = ExtResource("9_jkeh3")
  28. scenes/2/scene = ExtResource("10_a64ot")
  29. scenes/3/scene = ExtResource("11_n5knq")
  30. scenes/4/scene = ExtResource("12_sa3wg")
  31. scenes/5/scene = ExtResource("13_8wj5w")
  32. scenes/6/scene = ExtResource("14_0meii")
  33. [sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_uf1x6"]
  34. texture = ExtResource("16_7ooho")
  35. texture_region_size = Vector2i(32, 32)
  36. 0:0/0 = 0
  37. 0:0/0/physics_layer_0/linear_velocity = Vector2(0, 0)
  38. 0:0/0/physics_layer_0/angular_velocity = 0.0
  39. 0:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
  40. 1:0/0 = 0
  41. 1:0/0/physics_layer_0/linear_velocity = Vector2(0, 0)
  42. 1:0/0/physics_layer_0/angular_velocity = 0.0
  43. 1:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
  44. 2:0/0 = 0
  45. 2:0/0/physics_layer_0/linear_velocity = Vector2(0, 0)
  46. 2:0/0/physics_layer_0/angular_velocity = 0.0
  47. 2:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
  48. 3:0/0 = 0
  49. 3:0/0/physics_layer_0/linear_velocity = Vector2(0, 0)
  50. 3:0/0/physics_layer_0/angular_velocity = 0.0
  51. 3:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
  52. 4:0/0 = 0
  53. 4:0/0/physics_layer_0/linear_velocity = Vector2(0, 0)
  54. 4:0/0/physics_layer_0/angular_velocity = 0.0
  55. 4:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
  56. 0:1/0 = 0
  57. 0:1/0/physics_layer_0/linear_velocity = Vector2(0, 0)
  58. 0:1/0/physics_layer_0/angular_velocity = 0.0
  59. 0:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
  60. 1:1/0 = 0
  61. 1:1/0/physics_layer_0/linear_velocity = Vector2(0, 0)
  62. 1:1/0/physics_layer_0/angular_velocity = 0.0
  63. 1:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
  64. 2:1/0 = 0
  65. 2:1/0/physics_layer_0/linear_velocity = Vector2(0, 0)
  66. 2:1/0/physics_layer_0/angular_velocity = 0.0
  67. 2:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
  68. 3:1/0 = 0
  69. 3:1/0/physics_layer_0/linear_velocity = Vector2(0, 0)
  70. 3:1/0/physics_layer_0/angular_velocity = 0.0
  71. 3:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
  72. 4:1/0 = 0
  73. 4:1/0/physics_layer_0/linear_velocity = Vector2(0, 0)
  74. 4:1/0/physics_layer_0/angular_velocity = 0.0
  75. 4:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
  76. 0:2/0 = 0
  77. 0:2/0/physics_layer_0/linear_velocity = Vector2(0, 0)
  78. 0:2/0/physics_layer_0/angular_velocity = 0.0
  79. 0:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
  80. 1:2/0 = 0
  81. 1:2/0/physics_layer_0/linear_velocity = Vector2(0, 0)
  82. 1:2/0/physics_layer_0/angular_velocity = 0.0
  83. 1:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
  84. 2:2/0 = 0
  85. 2:2/0/physics_layer_0/linear_velocity = Vector2(0, 0)
  86. 2:2/0/physics_layer_0/angular_velocity = 0.0
  87. 2:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
  88. [sub_resource type="TileSet" id="TileSet_fjfjm"]
  89. tile_size = Vector2i(32, 32)
  90. physics_layer_0/collision_layer = 1
  91. sources/1 = SubResource("TileSetScenesCollectionSource_upnxp")
  92. sources/2 = SubResource("TileSetScenesCollectionSource_wnrp6")
  93. sources/3 = SubResource("TileSetAtlasSource_uf1x6")
  94. [sub_resource type="RectangleShape2D" id="RectangleShape2D_7ggjo"]
  95. size = Vector2(1088, 512)
  96. [node name="Room" type="Node2D"]
  97. script = ExtResource("1_ewobw")
  98. [node name="Background" type="TileMap" parent="."]
  99. scale = Vector2(0.375, 0.375)
  100. tile_set = ExtResource("2_yk6re")
  101. rendering_quadrant_size = 128
  102. format = 2
  103. layer_0/tile_data = PackedInt32Array(0, 0, 0, 65536, 0, 0, 131072, 0, 0, 196608, 0, 0, 262144, 0, 0, 327680, 0, 0, 393216, 0, 0, 458752, 0, 0, 524288, 0, 0, 589824, 0, 0, 655360, 0, 0, 720896, 0, 0, 1, 0, 0, 65537, 0, 0, 131073, 0, 0, 196609, 0, 0, 262145, 0, 0, 327681, 0, 0, 393217, 0, 0, 458753, 0, 0, 524289, 0, 0, 589825, 0, 0, 655361, 0, 0, 720897, 0, 0, 2, 0, 0, 65538, 0, 0, 131074, 0, 0, 196610, 0, 0, 262146, 0, 0, 327682, 0, 0, 393218, 0, 0, 458754, 0, 0, 524290, 0, 0, 589826, 0, 0, 655362, 0, 0, 720898, 0, 0, 3, 0, 0, 65539, 0, 0, 131075, 0, 0, 196611, 0, 0, 262147, 0, 0, 327683, 0, 0, 393219, 0, 0, 458755, 0, 0, 524291, 0, 0, 589827, 0, 0, 655363, 0, 0, 720899, 0, 0, 4, 0, 0, 65540, 0, 0, 131076, 0, 0, 196612, 0, 0, 262148, 0, 0, 327684, 0, 0, 393220, 0, 0, 458756, 0, 0, 524292, 0, 0, 589828, 0, 0, 655364, 0, 0, 720900, 0, 0, 5, 0, 0, 65541, 0, 0, 131077, 0, 0, 196613, 0, 0, 262149, 0, 0, 327685, 0, 0, 393221, 0, 0, 458757, 0, 0, 524293, 0, 0, 589829, 0, 0, 655365, 0, 0, 720901, 0, 0, 6, 0, 0, 65542, 0, 0, 131078, 0, 0, 196614, 0, 0, 262150, 0, 0, 327686, 0, 0, 393222, 0, 0, 458758, 0, 0, 524294, 0, 0, 589830, 0, 0, 655366, 0, 0, 720902, 0, 0, 7, 0, 0, 65543, 0, 0, 131079, 0, 0, 196615, 0, 0, 262151, 0, 0, 327687, 0, 0, 393223, 0, 0, 458759, 0, 0, 524295, 0, 0, 589831, 0, 0, 655367, 0, 0, 720903, 0, 0, 8, 0, 0, 65544, 0, 0, 131080, 0, 0, 196616, 0, 0, 262152, 0, 0, 327688, 0, 0, 393224, 0, 0, 458760, 0, 0, 524296, 0, 0, 589832, 0, 0, 655368, 0, 0, 720904, 0, 0, 9, 0, 0, 65545, 0, 0, 131081, 0, 0, 196617, 0, 0, 262153, 0, 0, 327689, 0, 0, 393225, 0, 0, 458761, 0, 0, 524297, 0, 0, 589833, 0, 0, 655369, 0, 0, 720905, 0, 0, 10, 0, 0, 65546, 0, 0, 131082, 0, 0, 196618, 0, 0, 262154, 0, 0, 327690, 0, 0, 393226, 0, 0, 458762, 0, 0, 524298, 0, 0, 589834, 0, 0, 655370, 0, 0, 720906, 0, 0, 11, 0, 0, 65547, 0, 0, 131083, 0, 0, 196619, 0, 0, 262155, 0, 0, 327691, 0, 0, 393227, 0, 0, 458763, 0, 0, 524299, 0, 0, 589835, 0, 0, 655371, 0, 0, 720907, 0, 0, 131071, 0, 0, 262143, 0, 0, 393215, 0, 0, 524287, 0, 0, 655359, 0, 0, 786431, 0, 0)
  104. [node name="TileMap" type="TileMap" parent="."]
  105. tile_set = SubResource("TileSet_fjfjm")
  106. rendering_quadrant_size = 32
  107. format = 2
  108. layer_0/name = "Environment"
  109. layer_0/tile_data = PackedInt32Array(983040, 131075, 1, 917504, 131075, 1, 851968, 131075, 1, 786432, 131075, 1, 720896, 131075, 1, 655360, 131075, 1, 589824, 131075, 1, 524288, 131075, 1, 458752, 131075, 1, 393216, 131075, 1, 327680, 131075, 1, 262144, 131075, 1, 196608, 131075, 1, 131072, 131075, 1, 65536, 131075, 1, 0, 65539, 1, 1, 65539, 2, 2, 65539, 2, 3, 65539, 2, 4, 65539, 2, 5, 65539, 2, 6, 65539, 2, 7, 65539, 2, 8, 65539, 2, 9, 65539, 2, 10, 65539, 2, 11, 65539, 2, 12, 65539, 2, 13, 65539, 2, 14, 65539, 2, 15, 65539, 2, 16, 65539, 2, 17, 65539, 2, 18, 65539, 2, 19, 65539, 2, 20, 65539, 2, 21, 65539, 2, 22, 65539, 2, 23, 65539, 2, 24, 65539, 2, 25, 65539, 2, 26, 65539, 2, 27, 65539, 2, 28, 65539, 2, 29, 65539, 2, 30, 65539, 2, 31, 65539, 2, 32, 65539, 2, 33, 65539, 2, 34, 65539, 2, 35, 262147, 0, 65571, 3, 1, 131107, 3, 1, 196643, 3, 1, 262179, 3, 1, 327715, 3, 1, 393251, 3, 1, 458787, 3, 1, 524323, 3, 1, 589859, 3, 1, 655395, 3, 1, 720931, 3, 1, 786467, 3, 1, 852003, 3, 1, 917539, 3, 1, 983075, 3, 1, 1114112, 196611, 1, 1114113, 65539, 0, 1114114, 65539, 0, 1114115, 65539, 0, 1114116, 65539, 0, 1114117, 65539, 0, 1114118, 65539, 0, 1114119, 65539, 0, 1114120, 65539, 0, 1114121, 65539, 0, 1114122, 65539, 0, 1114123, 65539, 0, 1114124, 65539, 0, 1114125, 65539, 0, 1114126, 65539, 0, 1114127, 65539, 0, 1114128, 65539, 0, 1114129, 65539, 0, 1114130, 65539, 0, 1114131, 65539, 0, 1114132, 65539, 0, 1114133, 65539, 0, 1114134, 65539, 0, 1114135, 65539, 0, 1114136, 65539, 0, 1114137, 65539, 0, 1114138, 65539, 0, 1114139, 65539, 0, 1114140, 65539, 0, 1114141, 65539, 0, 1114142, 65539, 0, 1114143, 65539, 0, 1114144, 65539, 0, 1114145, 65539, 0, 1114146, 65539, 0, 1114147, 262147, 1, 1048576, 131075, 1, 1048611, 3, 1)
  110. [node name="PlayerDetector" type="Area2D" parent="."]
  111. position = Vector2(576, 288)
  112. collision_layer = 0
  113. collision_mask = 4
  114. [node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerDetector"]
  115. shape = SubResource("RectangleShape2D_7ggjo")
  116. [connection signal="area_entered" from="PlayerDetector" to="." method="_on_player_detector_area_entered"]