diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-08-10 11:48:05 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-08-10 11:48:05 +0200 |
commit | 46556d864b9685c3b09a0038f5de83966fe7ff94 (patch) | |
tree | c68082eacd35559e14565d1598dd694972fb8e0e /Scenes/Maps |
Initial commit
Diffstat (limited to 'Scenes/Maps')
-rw-r--r-- | Scenes/Maps/Map.gd | 24 | ||||
-rw-r--r-- | Scenes/Maps/Room.tscn | 18 | ||||
-rw-r--r-- | Scenes/Maps/World.gd | 94 | ||||
-rw-r--r-- | Scenes/Maps/World.tscn | 128 | ||||
-rw-r--r-- | Scenes/Maps/World2.gd | 1 | ||||
-rw-r--r-- | Scenes/Maps/World2.tscn | 52 |
6 files changed, 317 insertions, 0 deletions
diff --git a/Scenes/Maps/Map.gd b/Scenes/Maps/Map.gd new file mode 100644 index 0000000..4f57f0e --- /dev/null +++ b/Scenes/Maps/Map.gd @@ -0,0 +1,24 @@ +extends Node + +func _ready(): + self.add_hud() + self.add_menu() + + +func add_hud(): + var HUD = CanvasLayer.new() + + var PlayerHealth = preload("res://Scenes/UI/HealthBar.tscn").instantiate(); + HUD.add_child(PlayerHealth) + PlayerHealth.connect_to_player(Global.player) + + add_child(HUD) + + +func add_menu(): + var MenuLayer = CanvasLayer.new() + + var Menu = preload("res://Scenes/UI/Menu.tscn").instantiate() + MenuLayer.add_child(Menu) + + add_child(MenuLayer) diff --git a/Scenes/Maps/Room.tscn b/Scenes/Maps/Room.tscn new file mode 100644 index 0000000..c304ed6 --- /dev/null +++ b/Scenes/Maps/Room.tscn @@ -0,0 +1,18 @@ +[gd_scene load_steps=3 format=3 uid="uid://6u87w813e8va"] + +[ext_resource type="PackedScene" uid="uid://d0t04jox4oxsv" path="res://Scenes/Components/TileMap.tscn" id="1_p0ngs"] +[ext_resource type="PackedScene" uid="uid://c5ix2njry0181" path="res://Scenes/Components/SceneTransition.tscn" id="2_gy81g"] + +[node name="Room" type="Node2D"] + +[node name="TileMap" parent="." instance=ExtResource("1_p0ngs")] +layer_0/tile_data = PackedInt32Array(131072, 655361, 18, 196608, 655361, 18, 262144, 655361, 18, 327680, 655361, 18, 393216, 655361, 18, 589824, 655361, 18, 655360, 655361, 18, 131073, 65537, 13, 196609, 65537, 13, 262145, 65537, 13, 327681, 65537, 13, 393217, 65537, 13, 589825, 65537, 13, 655361, 65537, 13, 720897, 65537, 13, 786433, 65537, 13, 851969, 65537, 13, 917505, 65537, 13, 983041, 65537, 13, 1048577, 65537, 13, 1114113, 65537, 13, 1179649, 65537, 13, 1245185, 65537, 13, 1310721, 65537, 13, 1376257, 655361, 17, 131074, 65537, 13, 196610, 65537, 13, 262146, 65537, 13, 327682, 65537, 13, 393218, 65537, 13, 589826, 65537, 13, 655362, 65537, 13, 720898, 65537, 13, 786434, 65537, 13, 851970, 65537, 13, 917506, 65537, 13, 983042, 65537, 13, 1048578, 65537, 13, 1114114, 65537, 13, 1179650, 65537, 13, 1245186, 65537, 13, 1310722, 65537, 13, 1376258, 655361, 17, 131075, 65537, 13, 196611, 65537, 13, 262147, 65537, 13, 327683, 65537, 13, 393219, 65537, 13, 589827, 65537, 13, 655363, 65537, 13, 720899, 65537, 13, 786435, 65537, 13, 851971, 65537, 13, 917507, 65537, 13, 983043, 65537, 13, 1048579, 65537, 13, 1114115, 65537, 13, 1179651, 65537, 13, 1245187, 65537, 13, 1310723, 65537, 13, 1376259, 655361, 17, 131076, 65537, 13, 196612, 65537, 13, 262148, 65537, 13, 327684, 65537, 13, 393220, 65537, 13, 589828, 65537, 13, 655364, 65537, 13, 589829, 65537, 13, 655365, 65537, 13, 589830, 65537, 13, 655366, 65537, 13, 589831, 65537, 13, 655367, 65537, 13, 589832, 65537, 13, 655368, 65537, 13, 589833, 65537, 13, 655369, 65537, 13, 589834, 65537, 13, 655370, 65537, 13, 589835, 65537, 13, 655371, 65537, 13, 589836, 65537, 13, 655372, 65537, 13, 589837, 65537, 13, 655373, 65537, 13, 589838, 65537, 13, 655374, 65537, 13, 589839, 65537, 13, 655375, 65537, 13, 589840, 65537, 13, 655376, 65537, 13, 589841, 65537, 13, 655377, 65537, 13, 589842, 65537, 13, 655378, 65537, 13, 1376256, 655361, 17, 0, 655361, 18, 1, 655361, 17, 2, 655361, 17, 3, 655361, 17, 4, 655361, 17, 5, 655361, 17, 6, 655361, 17, 7, 655361, 17, 8, 655361, 17, 9, 655361, 17, 10, 655361, 17, 11, 655361, 17, 12, 655361, 17, 13, 655361, 17, 14, 655361, 17, 15, 655361, 17, 16, 655361, 17, 17, 655361, 17, 18, 655361, 17, 19, 655361, 17, 20, 655361, 17, 21, 655361, 17, 22, 655361, 17, 23, 655361, 18, 25, 655361, 18, 65561, 655361, 18, 131097, 655361, 18, 196633, 655361, 18, 262169, 655361, 18, 327705, 655361, 18, 393241, 655361, 18, 458777, 655361, 18, 524313, 655361, 18, 589849, 655361, 18, 655385, 655361, 18, 720921, 655361, 18, 786457, 655361, 18, 851993, 655361, 18, 917529, 655361, 18, 983065, 655361, 18, 1048601, 655361, 18, 1114137, 655361, 18, 1179673, 655361, 18, 1245209, 655361, 18, 1310745, 655361, 18, 1376281, 655361, 17, 1376280, 655361, 17, 1376279, 655361, 17, 1376278, 655361, 17, 1376277, 655361, 17, 1376276, 655361, 17, 1376275, 655361, 17, 1376274, 655361, 17, 1376273, 655361, 17, 1376272, 655361, 17, 1376271, 655361, 17, 1376270, 655361, 17, 1376269, 655361, 17, 1376268, 655361, 17, 1376267, 655361, 17, 1376266, 655361, 17, 1376265, 655361, 17, 1376264, 655361, 17, 1376263, 655361, 17, 1376262, 655361, 17, 1376261, 655361, 17, 1376260, 655361, 17, 1310720, 655361, 18, 1245184, 655361, 18, 1179648, 655361, 18, 1114112, 655361, 18, 1048576, 655361, 18, 983040, 655361, 18, 917504, 655361, 18, 851968, 655361, 18, 786432, 655361, 18, 720896, 655361, 18, 524288, 655361, 18, 458752, 655361, 18, 65536, 655361, 18, 65537, 65537, 13, 458753, 65537, 13, 524289, 65537, 13, 65538, 65537, 13, 458754, 65537, 13, 524290, 65537, 13, 65539, 65537, 13, 458755, 65537, 13, 524291, 65537, 13, 65540, 65537, 13, 458756, 65537, 13, 524292, 65537, 13, 720900, 65537, 13, 786436, 65537, 13, 851972, 65537, 13, 917508, 65537, 13, 983044, 65537, 13, 1048580, 65537, 13, 1114116, 65537, 13, 1179652, 65537, 13, 1245188, 65537, 13, 1310724, 65537, 13, 65541, 65537, 13, 131077, 65537, 13, 196613, 65537, 13, 262149, 65537, 13, 327685, 65537, 13, 393221, 65537, 13, 458757, 65537, 13, 524293, 65537, 13, 720901, 65537, 13, 786437, 65537, 13, 851973, 65537, 13, 917509, 65537, 13, 983045, 65537, 13, 1048581, 65537, 13, 1114117, 65537, 13, 1179653, 65537, 13, 1245189, 65537, 13, 1310725, 65537, 13, 65542, 65537, 13, 131078, 65537, 13, 196614, 65537, 13, 262150, 65537, 13, 327686, 65537, 13, 393222, 65537, 13, 458758, 65537, 13, 524294, 65537, 13, 720902, 65537, 13, 786438, 65537, 13, 851974, 65537, 13, 917510, 65537, 13, 983046, 65537, 13, 1048582, 65537, 13, 1114118, 65537, 13, 1179654, 65537, 13, 1245190, 65537, 13, 1310726, 65537, 13, 65543, 65537, 13, 131079, 65537, 13, 196615, 65537, 13, 262151, 65537, 13, 327687, 65537, 13, 393223, 65537, 13, 458759, 65537, 13, 524295, 65537, 13, 720903, 65537, 13, 786439, 65537, 13, 851975, 65537, 13, 917511, 65537, 13, 983047, 65537, 13, 1048583, 65537, 13, 1114119, 65537, 13, 1179655, 65537, 13, 1245191, 65537, 13, 1310727, 65537, 13, 65544, 65537, 13, 131080, 65537, 13, 196616, 65537, 13, 262152, 65537, 13, 327688, 65537, 13, 393224, 65537, 13, 458760, 65537, 13, 524296, 65537, 13, 720904, 65537, 13, 786440, 65537, 13, 851976, 65537, 13, 917512, 65537, 13, 983048, 65537, 13, 1048584, 65537, 13, 1114120, 65537, 13, 1179656, 65537, 13, 1245192, 65537, 13, 1310728, 65537, 13, 65545, 65537, 13, 131081, 65537, 13, 196617, 65537, 13, 262153, 65537, 13, 327689, 65537, 13, 393225, 65537, 13, 458761, 65537, 13, 524297, 65537, 13, 720905, 65537, 13, 786441, 65537, 13, 851977, 65537, 13, 917513, 65537, 13, 983049, 65537, 13, 1048585, 65537, 13, 1114121, 65537, 13, 1179657, 65537, 13, 1245193, 65537, 13, 1310729, 65537, 13, 65546, 65537, 13, 131082, 65537, 13, 196618, 65537, 13, 262154, 65537, 13, 327690, 65537, 13, 393226, 65537, 13, 458762, 65537, 13, 524298, 65537, 13, 720906, 65537, 13, 786442, 65537, 13, 851978, 65537, 13, 917514, 65537, 13, 983050, 65537, 13, 1048586, 65537, 13, 1114122, 65537, 13, 1179658, 65537, 13, 1245194, 65537, 13, 1310730, 65537, 13, 65547, 65537, 13, 131083, 65537, 13, 196619, 65537, 13, 262155, 65537, 13, 327691, 65537, 13, 393227, 65537, 13, 458763, 65537, 13, 524299, 65537, 13, 720907, 65537, 13, 786443, 65537, 13, 851979, 65537, 13, 917515, 65537, 13, 983051, 65537, 13, 1048587, 65537, 13, 1114123, 65537, 13, 1179659, 65537, 13, 1245195, 65537, 13, 1310731, 65537, 13, 65548, 65537, 13, 131084, 65537, 13, 196620, 65537, 13, 262156, 65537, 13, 327692, 65537, 13, 393228, 65537, 13, 458764, 65537, 13, 524300, 65537, 13, 720908, 65537, 13, 786444, 65537, 13, 851980, 65537, 13, 917516, 65537, 13, 983052, 65537, 13, 1048588, 65537, 13, 1114124, 65537, 13, 1179660, 65537, 13, 1245196, 65537, 13, 1310732, 65537, 13, 65549, 65537, 13, 131085, 65537, 13, 196621, 65537, 13, 262157, 65537, 13, 327693, 65537, 13, 393229, 65537, 13, 458765, 65537, 13, 524301, 65537, 13, 720909, 65537, 13, 786445, 65537, 13, 851981, 65537, 13, 917517, 65537, 13, 983053, 65537, 13, 1048589, 65537, 13, 1114125, 65537, 13, 1179661, 65537, 13, 1245197, 65537, 13, 1310733, 65537, 13, 65550, 65537, 13, 131086, 65537, 13, 196622, 65537, 13, 262158, 65537, 13, 327694, 65537, 13, 393230, 65537, 13, 458766, 65537, 13, 524302, 65537, 13, 720910, 65537, 13, 786446, 65537, 13, 851982, 65537, 13, 917518, 65537, 13, 983054, 65537, 13, 1048590, 65537, 13, 1114126, 65537, 13, 1179662, 65537, 13, 1245198, 65537, 13, 1310734, 65537, 13, 65551, 65537, 13, 131087, 65537, 13, 196623, 65537, 13, 262159, 65537, 13, 327695, 65537, 13, 393231, 65537, 13, 458767, 65537, 13, 524303, 65537, 13, 720911, 65537, 13, 786447, 65537, 13, 851983, 65537, 13, 917519, 65537, 13, 983055, 65537, 13, 1048591, 65537, 13, 1114127, 65537, 13, 1179663, 65537, 13, 1245199, 65537, 13, 1310735, 65537, 13, 65552, 65537, 13, 131088, 65537, 13, 196624, 65537, 13, 262160, 65537, 13, 327696, 65537, 13, 393232, 65537, 13, 458768, 65537, 13, 524304, 65537, 13, 720912, 65537, 13, 786448, 65537, 13, 851984, 65537, 13, 917520, 65537, 13, 983056, 65537, 13, 1048592, 65537, 13, 1114128, 65537, 13, 1179664, 65537, 13, 1245200, 65537, 13, 1310736, 65537, 13, 65553, 65537, 13, 131089, 65537, 13, 196625, 65537, 13, 262161, 65537, 13, 327697, 65537, 13, 393233, 65537, 13, 458769, 65537, 13, 524305, 65537, 13, 720913, 65537, 13, 786449, 65537, 13, 851985, 65537, 13, 917521, 65537, 13, 983057, 65537, 13, 1048593, 65537, 13, 1114129, 65537, 13, 1179665, 65537, 13, 1245201, 65537, 13, 1310737, 65537, 13, 65554, 65537, 13, 131090, 65537, 13, 196626, 65537, 13, 262162, 65537, 13, 327698, 65537, 13, 393234, 65537, 13, 458770, 65537, 13, 524306, 65537, 13, 720914, 65537, 13, 786450, 65537, 13, 851986, 65537, 13, 917522, 65537, 13, 983058, 65537, 13, 1048594, 65537, 13, 1114130, 65537, 13, 1179666, 65537, 13, 1245202, 65537, 13, 1310738, 65537, 13, 65555, 65537, 13, 131091, 65537, 13, 196627, 65537, 13, 262163, 65537, 13, 327699, 65537, 13, 393235, 65537, 13, 458771, 65537, 13, 524307, 65537, 13, 589843, 65537, 13, 655379, 65537, 13, 720915, 65537, 13, 786451, 65537, 13, 851987, 65537, 13, 917523, 65537, 13, 983059, 65537, 13, 1048595, 65537, 13, 1114131, 65537, 13, 1179667, 65537, 13, 1245203, 65537, 13, 1310739, 65537, 13, 65556, 65537, 13, 131092, 65537, 13, 196628, 65537, 13, 262164, 65537, 13, 327700, 65537, 13, 393236, 65537, 13, 458772, 65537, 13, 524308, 65537, 13, 589844, 65537, 13, 655380, 65537, 13, 720916, 65537, 13, 786452, 65537, 13, 851988, 65537, 13, 917524, 65537, 13, 983060, 65537, 13, 1048596, 65537, 13, 1114132, 65537, 13, 1179668, 65537, 13, 1245204, 65537, 13, 1310740, 65537, 13, 65557, 65537, 13, 131093, 65537, 13, 196629, 65537, 13, 262165, 65537, 13, 327701, 65537, 13, 393237, 65537, 13, 458773, 65537, 13, 524309, 65537, 13, 589845, 65537, 13, 655381, 65537, 13, 720917, 65537, 13, 786453, 65537, 13, 851989, 65537, 13, 917525, 65537, 13, 983061, 65537, 13, 1048597, 65537, 13, 1114133, 65537, 13, 1179669, 65537, 13, 1245205, 65537, 13, 1310741, 65537, 13, 65558, 65537, 13, 131094, 65537, 13, 196630, 65537, 13, 262166, 65537, 13, 327702, 65537, 13, 393238, 65537, 13, 458774, 65537, 13, 524310, 65537, 13, 589846, 65537, 13, 655382, 65537, 13, 720918, 65537, 13, 786454, 65537, 13, 851990, 65537, 13, 917526, 65537, 13, 983062, 65537, 13, 1048598, 65537, 13, 1114134, 65537, 13, 1179670, 65537, 13, 1245206, 65537, 13, 1310742, 65537, 13, 65559, 655361, 18, 131095, 655361, 17, 196631, 65537, 13, 262167, 65537, 13, 327703, 65537, 13, 393239, 65537, 13, 458775, 65537, 13, 524311, 65537, 13, 589847, 65537, 13, 655383, 65537, 13, 720919, 65537, 13, 786455, 65537, 13, 851991, 65537, 13, 917527, 65537, 13, 983063, 65537, 13, 1048599, 65537, 13, 1114135, 65537, 13, 1179671, 65537, 13, 1245207, 65537, 13, 1310743, 65537, 13, 65560, 65537, 13, 131096, 65537, 13, 196632, 65537, 13, 262168, 65537, 13, 327704, 65537, 13, 393240, 65537, 13, 458776, 65537, 13, 524312, 65537, 13, 589848, 65537, 13, 655384, 65537, 13, 720920, 65537, 13, 786456, 65537, 13, 851992, 65537, 13, 917528, 65537, 13, 983064, 65537, 13, 1048600, 65537, 13, 1114136, 65537, 13, 1179672, 65537, 13, 1245208, 65537, 13, 1310744, 65537, 13, 24, 65537, 13) + +[node name="SceneTransition" parent="." instance=ExtResource("2_gy81g")] +position = Vector2(392, 8) +rotation = 3.14159 +sceneFilePath = "res://Scenes/Maps/World.tscn" +targetPlayerPositionNodePath = "PlayerPosition" + +[node name="PlayerPosition" type="Node2D" parent="."] +position = Vector2(392, 16) diff --git a/Scenes/Maps/World.gd b/Scenes/Maps/World.gd new file mode 100644 index 0000000..a33ee34 --- /dev/null +++ b/Scenes/Maps/World.gd @@ -0,0 +1,94 @@ +extends "res://Scenes/Maps/Map.gd" + + +func _ready(): + super._ready() + + $Areas/Main.connect("body_entered", func(body): self._area_entered($Areas/Main, body)) + $Areas/Room.connect("body_entered", func(body): self._area_entered($Areas/Room, body)) + $Areas/Room_right.connect("body_entered", func(body): self._area_entered($Areas/Room_right, body)) + $Areas/Room_bottom.connect("body_entered", func(body): self._area_entered($Areas/Room_bottom, body)) + + self.adjust_camera_to_area($Player, $Areas/Room, false) + + for i in 6: + var enemy = preload("res://Scenes/Entities/Enemies/Enemy.tscn").instantiate() + enemy.position = Vector2(randi_range(3, 10), randi_range(3, 10)) * 16 + enemy.health = 4*(i+1) + $Areas/Main/TileMap.add_child(enemy) + + +func _area_entered(source: Area2D, body: Node2D): + var exited_area = Global.last_area + + source.get_node("TileMap").visible = true + + var player = body + self.adjust_camera_to_area(player, source) + + if exited_area: + exited_area.get_node("TileMap").process_mode = PROCESS_MODE_DISABLED + + var tween = get_tree().create_tween() + tween.tween_property( + player, "position", player.position + player.DIRECTION * 16, 1.25 + ) + tween.tween_callback(func(): + exited_area.get_node("TileMap").visible = false + ) + + source.get_node("TileMap").process_mode = PROCESS_MODE_INHERIT + + Global.last_area = source + + +func _area_exited(_source: Area2D, _body: Node2D): + pass + + +func adjust_camera_to_area(player: Player, map_area: Area2D, animate: bool = true) -> Camera2D: + var camera: Camera2D = player.get_node("Camera2D") + var bounds: Rect2 = Utilities.get_collision_shape_bounds(map_area.get_node("CollisionShape2D")) + #var enter_direction_vector = player.position - collision_shape.position + + var duration = 0 + if animate: + duration = 1.25 + + var tween = get_tree().create_tween().set_parallel().set_ease(Tween.EASE_OUT) + + #if enter_direction_vector.x > 0: + tween.tween_property(camera, "limit_right", bounds.end.x, duration) + #elif enter_direction_vector.x < 0: + tween.tween_property(camera, "limit_left", bounds.position.x, duration) + + #if enter_direction_vector.y > 0: + tween.tween_property(camera, "limit_bottom", bounds.end.y, duration) + #elif enter_direction_vector.y < 0: + tween.tween_property(camera, "limit_top", bounds.position.y, duration) + + #if abs(localRect.size.x) >= abs(viewportRect.size.x): + #camera.set_limit(SIDE_LEFT, localRect.position.x) + #get_tree().create_tween().tween_property(camera, "limit_left", bounds.position.x, duration).set_ease(Tween.EASE_OUT) + #else: + #camera.set_limit(SIDE_LEFT, -10000000) + + #if abs(localRect.size.y) >= abs(viewportRect.size.y): + #camera.set_limit(SIDE_TOP, localRect.position.y) + #get_tree().create_tween().tween_property(camera, "limit_top", bounds.position.y, duration).set_ease(Tween.EASE_OUT) + #else: + #camera.set_limit(SIDE_TOP, -10000000) + + #if abs(localRect.size.x) >= abs(viewportRect.size.x): + #camera.set_limit(SIDE_RIGHT, localRect.end.x) + #get_tree().create_tween().tween_property(camera, "limit_right", bounds.end.x, duration).set_ease(Tween.EASE_OUT) + #else: + #camera.set_limit(SIDE_RIGHT, 10000000) + + #if abs(localRect.size.y) >= abs(viewportRect.size.y): + #camera.set_limit(SIDE_BOTTOM, localRect.end.y) + #get_tree().create_tween().tween_property(camera, "limit_bottom", bounds.end.y, duration).set_ease(Tween.EASE_OUT) + #else: + #camera.set_limit(SIDE_BOTTOM, 10000000) + + return camera diff --git a/Scenes/Maps/World.tscn b/Scenes/Maps/World.tscn new file mode 100644 index 0000000..2414d14 --- /dev/null +++ b/Scenes/Maps/World.tscn @@ -0,0 +1,128 @@ +[gd_scene load_steps=13 format=3 uid="uid://45xfj36bdsjw"] + +[ext_resource type="Script" path="res://Scenes/Maps/World.gd" id="1_7jam1"] +[ext_resource type="PackedScene" uid="uid://d0t04jox4oxsv" path="res://Scenes/Components/TileMap.tscn" id="2_hrdtq"] +[ext_resource type="PackedScene" uid="uid://c5ix2njry0181" path="res://Scenes/Components/SceneTransition.tscn" id="3_n745i"] +[ext_resource type="PackedScene" uid="uid://dgyk1sged38ct" path="res://Scenes/Entities/Enemies/Enemy.tscn" id="3_p230b"] +[ext_resource type="Script" path="res://Scenes/Components/MapArea.gd" id="4_5p13h"] +[ext_resource type="PackedScene" uid="uid://cluuq4bwb8ebs" path="res://Scenes/Components/PlayerPosition.tscn" id="6_tmdwn"] + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_ts8f5"] +size = Vector2(304, 208) + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_dfqdh"] +size = Vector2(304, 176) + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_72gwc"] +size = Vector2(256, 160) + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_pj3t1"] +size = Vector2(256, 176) + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_lo7hy"] +size = Vector2(240, 160) + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_v1l1t"] +size = Vector2(240, 160) + +[node name="World" type="Node2D"] +script = ExtResource("1_7jam1") + +[node name="Areas" type="Node" parent="."] + +[node name="Main" type="Area2D" parent="Areas"] +collision_layer = 0 +collision_mask = 2 + +[node name="TileMap" parent="Areas/Main" instance=ExtResource("2_hrdtq")] +layer_0/tile_data = PackedInt32Array(0, 655361, 18, 65536, 655361, 18, 131072, 655361, 18, 458752, 655361, 18, 1, 655361, 17, 65537, 65537, 13, 131073, 65537, 13, 196609, 65537, 13, 262145, 65537, 13, 2, 655361, 17, 65538, 65537, 13, 131074, 65537, 13, 196610, 65537, 13, 262146, 65537, 13, 458754, 65537, 13, 3, 655361, 17, 65539, 65537, 13, 131075, 65537, 13, 196611, 65537, 13, 262147, 65537, 13, 458755, 65537, 13, 4, 655361, 17, 65540, 65537, 13, 131076, 65537, 13, 458756, 65537, 13, 5, 655361, 17, 65541, 65537, 13, 131077, 65537, 13, 196608, 655361, 18, 262144, 655361, 18, 393216, 655361, 18, 327680, 655361, 18, 6, 655361, 17, 65542, 65537, 13, 131078, 65537, 13, 196614, 65537, 13, 262150, 65537, 13, 327686, 65537, 13, 393222, 65537, 13, 458758, 65537, 13, 458757, 65537, 13, 196613, 65537, 13, 196612, 65537, 13, 262148, 65537, 13, 262149, 65537, 13, 327685, 65537, 13, 393221, 65537, 13, 393220, 65537, 13, 327684, 65537, 13, 327683, 65537, 13, 327682, 65537, 13, 327681, 65537, 13, 393219, 65537, 13, 393218, 65537, 13, 458753, 65537, 13, 524294, 65537, 13, 524293, 65537, 13, 524292, 65537, 13, 524291, 65537, 13, 524290, 65537, 13, 524288, 655361, 18, 589824, 655361, 18, 655360, 655361, 18, 720896, 655361, 18, 786432, 655361, 18, 786438, 655361, 18, 720902, 65537, 13, 655366, 65537, 13, 589830, 65537, 13, 524289, 65537, 13, 589825, 65537, 13, 655361, 65537, 13, 720897, 65537, 13, 720898, 65537, 13, 720899, 65537, 13, 720900, 65537, 13, 720901, 65537, 13, 655365, 65537, 13, 589829, 65537, 13, 589828, 65537, 13, 589827, 65537, 13, 589826, 65537, 13, 655362, 65537, 13, 655363, 65537, 13, 655364, 65537, 13, 393217, 65537, 13, 786433, 65537, 13, 786437, 655361, 18, 786436, 655361, 18, 786435, 655361, 18, 786434, 655361, 18, 65543, 65537, 13, 65544, 65537, 13, 65545, 65537, 13, 65546, 65537, 13, 65547, 65537, 13, 65548, 65537, 13, 65549, 65537, 13, 65550, 65537, 13, 65551, 65537, 13, 65552, 65537, 13, 65553, 65537, 13, 131079, 65537, 13, 196615, 65537, 13, 262151, 65537, 13, 327687, 65537, 13, 393223, 65537, 13, 458759, 65537, 13, 524295, 65537, 13, 589831, 65537, 13, 655367, 65537, 13, 720903, 65537, 13, 131080, 65537, 13, 196616, 65537, 13, 262152, 65537, 13, 327688, 65537, 13, 393224, 65537, 13, 458760, 65537, 13, 524296, 65537, 13, 589832, 65537, 13, 655368, 65537, 13, 720904, 65537, 13, 131081, 65537, 13, 196617, 65537, 13, 262153, 65537, 13, 327689, 65537, 13, 393225, 65537, 13, 458761, 65537, 13, 524297, 65537, 13, 589833, 65537, 13, 655369, 65537, 13, 720905, 65537, 13, 131082, 65537, 13, 196618, 65537, 13, 262154, 65537, 13, 327690, 65537, 13, 393226, 65537, 13, 458762, 65537, 13, 524298, 65537, 13, 589834, 65537, 13, 655370, 65537, 13, 720906, 65537, 13, 131083, 65537, 13, 196619, 65537, 13, 262155, 65537, 13, 327691, 65537, 13, 393227, 65537, 13, 458763, 65537, 13, 524299, 65537, 13, 589835, 65537, 13, 655371, 65537, 13, 720907, 65537, 13, 131084, 65537, 13, 196620, 65537, 13, 262156, 65537, 13, 327692, 65537, 13, 393228, 65537, 13, 458764, 65537, 13, 524300, 65537, 13, 589836, 65537, 13, 655372, 65537, 13, 720908, 65537, 13, 131085, 65537, 13, 196621, 65537, 13, 262157, 65537, 13, 327693, 65537, 13, 393229, 65537, 13, 458765, 65537, 13, 524301, 65537, 13, 589837, 65537, 13, 655373, 65537, 13, 720909, 65537, 13, 131086, 65537, 13, 196622, 65537, 13, 262158, 65537, 13, 327694, 65537, 13, 393230, 65537, 13, 458766, 65537, 13, 524302, 65537, 13, 589838, 65537, 13, 655374, 65537, 13, 720910, 65537, 13, 131087, 65537, 13, 196623, 65537, 13, 262159, 65537, 13, 327695, 65537, 13, 393231, 65537, 13, 458767, 65537, 13, 524303, 65537, 13, 589839, 65537, 13, 655375, 65537, 13, 720911, 65537, 13, 131088, 65537, 13, 196624, 65537, 13, 262160, 65537, 13, 327696, 65537, 13, 393232, 65537, 13, 458768, 65537, 13, 524304, 65537, 13, 589840, 65537, 13, 655376, 65537, 13, 720912, 65537, 13, 131089, 65537, 13, 196625, 65537, 13, 262161, 65537, 13, 327697, 65537, 13, 393233, 65537, 13, 458769, 65537, 13, 524305, 65537, 13, 589841, 65537, 13, 655377, 65537, 13, 720913, 65537, 13, 7, 655361, 17, 8, 655361, 17, 9, 655361, 17, 10, 655361, 17, 11, 655361, 17, 12, 655361, 17, 13, 655361, 17, 14, 655361, 17, 15, 655361, 17, 16, 655361, 17, 17, 655361, 17, 18, 655361, 18, 65554, 655361, 17, 196626, 655361, 18, 262162, 655361, 18, 327698, 655361, 18, 393234, 655361, 18, 458770, 655361, 18, 524306, 655361, 18, 589842, 655361, 18, 655378, 655361, 18, 720914, 655361, 18, 786450, 655361, 18, 786449, 655361, 18, 786448, 655361, 18, 786447, 655361, 18, 786446, 655361, 18, 786445, 655361, 18, 786444, 655361, 18, 786443, 655361, 18, 786442, 655361, 18, 786441, 655361, 18, 786440, 655361, 18, 786439, 655361, 18, 131090, 65537, 13) +layer_1/tile_data = PackedInt32Array(65537, 2, 65536, 196609, 2, 65536, 327681, 2, 65536, 65539, 2, 65536, 327683, 2, 65536, 65541, 2, 65536, 196613, 2, 65536, 327685, 2, 65536) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="Areas/Main"] +position = Vector2(152, 104) +shape = SubResource("RectangleShape2D_ts8f5") + +[node name="Room" type="Area2D" parent="Areas"] +collision_layer = 0 +collision_mask = 2 + +[node name="TileMap" parent="Areas/Room" instance=ExtResource("2_hrdtq")] +layer_0/tile_data = PackedInt32Array(851986, 655361, 18, 851985, 655361, 17, 851984, 655361, 17, 851983, 655361, 17, 851982, 655361, 17, 851981, 655361, 17, 851980, 655361, 17, 851979, 655361, 17, 851978, 655361, 17, 851977, 655361, 17, 851976, 655361, 17, 851975, 655361, 17, 851974, 655361, 17, 851973, 655361, 17, 851972, 655361, 17, 851971, 655361, 17, 851970, 655361, 17, 851968, 655361, 18, 917504, 655361, 17, 983040, 65537, 13, 917522, 655361, 17, 1048576, 655361, 18, 917505, 65537, 13, 983041, 65537, 13, 917506, 65537, 13, 983042, 65537, 13, 917507, 65537, 13, 983043, 65537, 13, 917508, 65537, 13, 983044, 65537, 13, 917509, 65537, 13, 983045, 65537, 13, 917510, 65537, 13, 983046, 65537, 13, 917511, 65537, 13, 983047, 65537, 13, 917512, 65537, 13, 983048, 65537, 13, 917513, 65537, 13, 983049, 65537, 13, 917514, 65537, 13, 983050, 65537, 13, 917515, 65537, 13, 983051, 65537, 13, 917516, 65537, 13, 983052, 65537, 13, 917517, 65537, 13, 983053, 65537, 13, 917518, 65537, 13, 983054, 65537, 13, 917519, 65537, 13, 983055, 65537, 13, 917520, 65537, 13, 983056, 65537, 13, 917521, 65537, 13, 983057, 65537, 13, 851969, 65537, 13, 983058, 65537, 13, 1048594, 655361, 18, 1114130, 655361, 18, 1179666, 655361, 18, 1245202, 655361, 18, 1310738, 655361, 18, 1376274, 655361, 18, 1441810, 655361, 18, 1507346, 655361, 17, 1507345, 655361, 17, 1507344, 655361, 17, 1507343, 655361, 17, 1507342, 655361, 17, 1507341, 655361, 17, 1507340, 655361, 17, 1507339, 655361, 17, 1507338, 655361, 17, 1507336, 655361, 17, 1507335, 655361, 17, 1507334, 655361, 17, 1507333, 655361, 17, 1507332, 655361, 17, 1507331, 655361, 17, 1507330, 655361, 17, 1507329, 655361, 17, 1507328, 655361, 17, 1114112, 655361, 18, 1179648, 655361, 18, 1245184, 655361, 18, 1310720, 655361, 18, 1376256, 655361, 18, 1441792, 655361, 18, 1048577, 65537, 13, 1114113, 65537, 13, 1179649, 65537, 13, 1245185, 65537, 13, 1310721, 65537, 13, 1376257, 65537, 13, 1441793, 65537, 13, 1048578, 65537, 13, 1114114, 65537, 13, 1179650, 65537, 13, 1245186, 65537, 13, 1310722, 65537, 13, 1376258, 65537, 13, 1441794, 65537, 13, 1048579, 65537, 13, 1114115, 65537, 13, 1179651, 65537, 13, 1245187, 65537, 13, 1310723, 65537, 13, 1376259, 65537, 13, 1441795, 65537, 13, 1048580, 65537, 13, 1114116, 65537, 13, 1179652, 65537, 13, 1245188, 65537, 13, 1310724, 65537, 13, 1376260, 65537, 13, 1441796, 65537, 13, 1048581, 65537, 13, 1114117, 65537, 13, 1179653, 65537, 13, 1245189, 65537, 13, 1310725, 65537, 13, 1376261, 65537, 13, 1441797, 65537, 13, 1048582, 65537, 13, 1114118, 65537, 13, 1179654, 65537, 13, 1245190, 65537, 13, 1310726, 65537, 13, 1376262, 65537, 13, 1441798, 65537, 13, 1048583, 65537, 13, 1114119, 65537, 13, 1179655, 65537, 13, 1245191, 65537, 13, 1310727, 65537, 13, 1376263, 65537, 13, 1441799, 65537, 13, 1048584, 65537, 13, 1114120, 65537, 13, 1179656, 65537, 13, 1245192, 65537, 13, 1310728, 65537, 13, 1376264, 65537, 13, 1441800, 65537, 13, 1048585, 65537, 13, 1114121, 65537, 13, 1179657, 65537, 13, 1245193, 65537, 13, 1310729, 65537, 13, 1376265, 65537, 13, 1441801, 65537, 13, 1048586, 65537, 13, 1114122, 65537, 13, 1179658, 65537, 13, 1245194, 65537, 13, 1310730, 65537, 13, 1376266, 65537, 13, 1441802, 65537, 13, 1048587, 65537, 13, 1114123, 65537, 13, 1179659, 65537, 13, 1245195, 65537, 13, 1310731, 65537, 13, 1376267, 65537, 13, 1441803, 65537, 13, 1048588, 65537, 13, 1114124, 65537, 13, 1179660, 65537, 13, 1245196, 65537, 13, 1310732, 65537, 13, 1376268, 65537, 13, 1441804, 65537, 13, 1048589, 65537, 13, 1114125, 65537, 13, 1179661, 65537, 13, 1245197, 65537, 13, 1310733, 65537, 13, 1376269, 65537, 13, 1441805, 65537, 13, 1048590, 65537, 13, 1114126, 65537, 13, 1179662, 65537, 13, 1245198, 65537, 13, 1310734, 65537, 13, 1376270, 65537, 13, 1441806, 65537, 13, 1048591, 65537, 13, 1114127, 65537, 13, 1179663, 65537, 13, 1245199, 65537, 13, 1310735, 65537, 13, 1376271, 65537, 13, 1441807, 65537, 13, 1048592, 65537, 13, 1114128, 65537, 13, 1179664, 65537, 13, 1245200, 65537, 13, 1310736, 65537, 13, 1376272, 65537, 13, 1441808, 65537, 13, 1048593, 65537, 13, 1114129, 65537, 13, 1179665, 65537, 13, 1245201, 65537, 13, 1310737, 65537, 13, 1376273, 65537, 13, 1441809, 65537, 13, 1507337, 65537, 13) + +[node name="Enemy" parent="Areas/Room/TileMap" instance=ExtResource("3_p230b")] +position = Vector2(133, 290) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="Areas/Room"] +position = Vector2(152, 296) +shape = SubResource("RectangleShape2D_dfqdh") + +[node name="Room_right" type="Area2D" parent="Areas"] +collision_layer = 0 +collision_mask = 2 + +[node name="TileMap" parent="Areas/Room_right" instance=ExtResource("2_hrdtq")] +layer_0/tile_data = PackedInt32Array(19, 655361, 18, 65555, 655361, 17, 196627, 655361, 18, 262163, 655361, 18, 327699, 655361, 18, 393235, 655361, 18, 458771, 655361, 18, 524307, 655361, 18, 20, 655361, 17, 65556, 65537, 13, 131092, 65537, 13, 196628, 65537, 13, 262164, 65537, 13, 327700, 65537, 13, 393236, 65537, 13, 458772, 65537, 13, 21, 655361, 17, 65557, 65537, 13, 131093, 65537, 13, 196629, 65537, 13, 262165, 65537, 13, 327701, 65537, 13, 393237, 65537, 13, 458773, 65537, 13, 22, 655361, 17, 65558, 65537, 13, 131094, 65537, 13, 196630, 65537, 13, 262166, 65537, 13, 327702, 65537, 13, 393238, 65537, 13, 458774, 65537, 13, 23, 655361, 17, 65559, 65537, 13, 131095, 65537, 13, 196631, 65537, 13, 262167, 65537, 13, 327703, 65537, 13, 393239, 65537, 13, 458775, 65537, 13, 24, 655361, 17, 65560, 65537, 13, 131096, 65537, 13, 196632, 65537, 13, 262168, 65537, 13, 327704, 65537, 13, 393240, 65537, 13, 458776, 65537, 13, 25, 655361, 17, 65561, 65537, 13, 131097, 65537, 13, 196633, 65537, 13, 262169, 65537, 13, 327705, 65537, 13, 393241, 65537, 13, 458777, 65537, 13, 26, 655361, 17, 65562, 65537, 13, 131098, 65537, 13, 196634, 65537, 13, 262170, 65537, 13, 327706, 65537, 13, 393242, 65537, 13, 458778, 65537, 13, 27, 655361, 17, 65563, 65537, 13, 131099, 65537, 13, 196635, 65537, 13, 262171, 65537, 13, 327707, 65537, 13, 393243, 65537, 13, 458779, 65537, 13, 28, 655361, 17, 524314, 65537, 13, 131091, 65537, 13, 65564, 65537, 13, 131100, 65537, 13, 196636, 65537, 13, 262172, 65537, 13, 327708, 65537, 13, 393244, 65537, 13, 458780, 65537, 13, 65565, 65537, 13, 131101, 65537, 13, 196637, 65537, 13, 262173, 65537, 13, 327709, 65537, 13, 393245, 65537, 13, 458781, 65537, 13, 65566, 65537, 13, 131102, 65537, 13, 196638, 65537, 13, 262174, 65537, 13, 327710, 65537, 13, 393246, 65537, 13, 458782, 65537, 13, 65567, 65537, 13, 131103, 65537, 13, 196639, 65537, 13, 262175, 65537, 13, 327711, 65537, 13, 393247, 65537, 13, 458783, 65537, 13, 65568, 65537, 13, 131104, 65537, 13, 196640, 65537, 13, 262176, 65537, 13, 327712, 65537, 13, 393248, 65537, 13, 458784, 65537, 13, 65569, 65537, 13, 131105, 65537, 13, 196641, 65537, 13, 262177, 65537, 13, 327713, 65537, 13, 393249, 65537, 13, 458785, 65537, 13, 29, 655361, 17, 30, 655361, 17, 31, 655361, 17, 32, 655361, 17, 33, 655361, 17, 34, 655361, 18, 65570, 655361, 17, 196642, 655361, 18, 262178, 655361, 18, 327714, 655361, 18, 393250, 655361, 18, 458786, 655361, 18, 524322, 655361, 18, 589858, 655361, 18, 589857, 655361, 18, 589856, 655361, 18, 589855, 655361, 18, 589854, 655361, 18, 589853, 655361, 18, 589852, 655361, 18, 589851, 655361, 18, 589849, 655361, 18, 589848, 655361, 18, 589847, 655361, 18, 589846, 655361, 18, 589845, 655361, 18, 589844, 655361, 18, 589843, 655361, 18, 524308, 65537, 13, 524309, 65537, 13, 524310, 65537, 13, 524311, 65537, 13, 524312, 65537, 13, 524313, 65537, 13, 524315, 65537, 13, 524316, 65537, 13, 524317, 65537, 13, 524318, 65537, 13, 524319, 65537, 13, 524320, 65537, 13, 524321, 65537, 13, 589850, 65537, 13, 131106, 65537, 13) + +[node name="Enemy" parent="Areas/Room_right/TileMap" instance=ExtResource("3_p230b")] +position = Vector2(415, 42) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="Areas/Room_right"] +position = Vector2(432, 80) +shape = SubResource("RectangleShape2D_72gwc") + +[node name="Room_bottom" type="Area2D" parent="Areas"] +collision_layer = 0 +collision_mask = 2 + +[node name="TileMap" parent="Areas/Room_bottom" instance=ExtResource("2_hrdtq")] +layer_0/tile_data = PackedInt32Array(1310742, 655361, 17, 1310743, 655361, 17, 1310744, 655361, 17, 1310745, 655361, 17, 1310746, 655361, 17, 1310747, 655361, 17, 1310748, 655361, 17, 1245212, 65537, 13, 1179676, 65537, 13, 1114140, 65537, 13, 1048604, 65537, 13, 983068, 65537, 13, 917532, 65537, 13, 851996, 65537, 13, 786460, 65537, 13, 720924, 65537, 13, 655388, 655361, 17, 655379, 655361, 18, 720915, 655361, 18, 786451, 655361, 18, 851987, 655361, 18, 917523, 655361, 17, 983059, 65537, 13, 655380, 655361, 17, 720916, 65537, 13, 786452, 65537, 13, 851988, 65537, 13, 917524, 65537, 13, 983060, 65537, 13, 655381, 655361, 17, 720917, 65537, 13, 786453, 65537, 13, 851989, 65537, 13, 917525, 65537, 13, 983061, 65537, 13, 655382, 655361, 17, 720918, 65537, 13, 786454, 65537, 13, 851990, 65537, 13, 917526, 65537, 13, 983062, 65537, 13, 655383, 655361, 17, 720919, 65537, 13, 786455, 65537, 13, 851991, 65537, 13, 917527, 65537, 13, 983063, 65537, 13, 655384, 655361, 17, 720920, 65537, 13, 786456, 65537, 13, 851992, 65537, 13, 917528, 65537, 13, 983064, 65537, 13, 655385, 655361, 17, 720921, 65537, 13, 786457, 65537, 13, 851993, 65537, 13, 917529, 65537, 13, 983065, 65537, 13, 720922, 65537, 13, 786458, 65537, 13, 851994, 65537, 13, 917530, 65537, 13, 983066, 65537, 13, 655387, 655361, 17, 720923, 65537, 13, 786459, 65537, 13, 851995, 65537, 13, 917531, 65537, 13, 983067, 65537, 13, 1048598, 65537, 13, 1114134, 65537, 13, 1179670, 65537, 13, 1245206, 65537, 13, 1048599, 65537, 13, 1114135, 65537, 13, 1179671, 65537, 13, 1245207, 65537, 13, 1048600, 65537, 13, 1114136, 65537, 13, 1179672, 65537, 13, 1245208, 65537, 13, 1048601, 65537, 13, 1114137, 65537, 13, 1179673, 65537, 13, 1245209, 65537, 13, 1048602, 65537, 13, 1114138, 65537, 13, 1179674, 65537, 13, 1245210, 65537, 13, 1048603, 65537, 13, 1114139, 65537, 13, 1179675, 65537, 13, 1245211, 65537, 13, 1310739, 655361, 17, 1310740, 655361, 17, 1310741, 655361, 17, 1048595, 655361, 18, 1114131, 655361, 18, 1179667, 655361, 18, 1245203, 655361, 18, 1048596, 65537, 13, 1114132, 65537, 13, 1179668, 65537, 13, 1245204, 65537, 13, 1048597, 65537, 13, 1114133, 65537, 13, 1179669, 65537, 13, 1245205, 65537, 13, 655389, 655361, 17, 720925, 65537, 13, 786461, 65537, 13, 851997, 65537, 13, 917533, 65537, 13, 983069, 65537, 13, 1048605, 65537, 13, 1114141, 65537, 13, 1179677, 65537, 13, 1245213, 65537, 13, 655390, 655361, 17, 720926, 65537, 13, 786462, 65537, 13, 851998, 65537, 13, 917534, 65537, 13, 983070, 65537, 13, 1048606, 65537, 13, 1114142, 65537, 13, 1179678, 65537, 13, 1245214, 65537, 13, 655391, 655361, 17, 720927, 65537, 13, 786463, 65537, 13, 851999, 65537, 13, 917535, 65537, 13, 983071, 65537, 13, 1048607, 65537, 13, 1114143, 65537, 13, 1179679, 65537, 13, 1245215, 65537, 13, 655392, 655361, 17, 720928, 65537, 13, 786464, 65537, 13, 852000, 65537, 13, 917536, 65537, 13, 983072, 65537, 13, 1048608, 65537, 13, 1114144, 65537, 13, 1179680, 65537, 13, 1245216, 65537, 13, 655393, 655361, 17, 720929, 65537, 13, 786465, 65537, 13, 852001, 65537, 13, 917537, 65537, 13, 983073, 65537, 13, 1048609, 65537, 13, 1114145, 65537, 13, 1179681, 65537, 13, 1245217, 65537, 13, 1310749, 655361, 17, 1310750, 655361, 17, 1310751, 655361, 17, 1310752, 655361, 17, 1310753, 655361, 17, 1310754, 655361, 17, 655394, 655361, 18, 720930, 655361, 18, 786466, 655361, 18, 852002, 655361, 18, 917538, 655361, 18, 983074, 655361, 18, 1048610, 655361, 18, 1114146, 655361, 18, 1179682, 655361, 18, 1245218, 655361, 18, 655386, 65537, 13) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="Areas/Room_bottom"] +position = Vector2(432, 248) +shape = SubResource("RectangleShape2D_pj3t1") + +[node name="MapArea" type="Area2D" parent="Areas"] +collision_layer = 0 +collision_mask = 2 +script = ExtResource("4_5p13h") + +[node name="CollisionShape2D" type="CollisionShape2D" parent="Areas/MapArea"] +position = Vector2(680, 80) +shape = SubResource("RectangleShape2D_lo7hy") + +[node name="TileMap" parent="Areas/MapArea" instance=ExtResource("2_hrdtq")] +layer_0/tile_data = PackedInt32Array(35, 655361, 18, 65571, 655361, 17, 131107, 65537, 13, 196643, 655361, 18, 262179, 655361, 18, 327715, 655361, 18, 393251, 655361, 18, 458787, 655361, 18, 524323, 655361, 18, 589859, 655361, 17, 36, 655361, 17, 65572, 65537, 13, 131108, 65537, 13, 196644, 65537, 13, 262180, 65537, 13, 327716, 65537, 13, 393252, 65537, 13, 458788, 65537, 13, 524324, 65537, 13, 589860, 655361, 17, 37, 655361, 17, 65573, 65537, 13, 131109, 65537, 13, 196645, 65537, 13, 262181, 65537, 13, 327717, 65537, 13, 393253, 65537, 13, 458789, 65537, 13, 524325, 65537, 13, 589861, 655361, 17, 38, 655361, 17, 65574, 65537, 13, 131110, 65537, 13, 196646, 65537, 13, 262182, 65537, 13, 327718, 65537, 13, 458790, 65537, 13, 524326, 65537, 13, 589862, 655361, 17, 39, 655361, 17, 65575, 65537, 13, 131111, 65537, 13, 196647, 65537, 13, 262183, 65537, 13, 327719, 65537, 13, 524327, 65537, 13, 589863, 655361, 17, 40, 655361, 17, 65576, 65537, 13, 131112, 65537, 13, 196648, 65537, 13, 262184, 65537, 13, 327720, 65537, 13, 393256, 65537, 13, 524328, 65537, 13, 589864, 655361, 17, 41, 655361, 17, 65577, 65537, 13, 131113, 65537, 13, 196649, 65537, 13, 262185, 65537, 13, 327721, 65537, 13, 393257, 65537, 13, 458793, 65537, 13, 524329, 65537, 13, 589865, 655361, 17, 42, 655361, 17, 65578, 65537, 13, 131114, 65537, 13, 196650, 65537, 13, 262186, 65537, 13, 327722, 65537, 13, 393258, 65537, 13, 458794, 65537, 13, 524330, 65537, 13, 589866, 655361, 17, 43, 655361, 17, 65579, 65537, 13, 131115, 65537, 13, 196651, 65537, 13, 262187, 65537, 13, 327723, 65537, 13, 393259, 65537, 13, 458795, 65537, 13, 524331, 65537, 13, 589867, 655361, 17, 44, 655361, 17, 65580, 65537, 13, 131116, 65537, 13, 196652, 65537, 13, 262188, 65537, 13, 327724, 65537, 13, 393260, 65537, 13, 458796, 65537, 13, 524332, 65537, 13, 589868, 655361, 17, 45, 655361, 17, 65581, 65537, 13, 131117, 65537, 13, 196653, 65537, 13, 262189, 65537, 13, 327725, 65537, 13, 393261, 65537, 13, 458797, 65537, 13, 524333, 65537, 13, 589869, 655361, 17, 46, 655361, 17, 65582, 65537, 13, 131118, 65537, 13, 196654, 65537, 13, 262190, 65537, 13, 327726, 65537, 13, 393262, 65537, 13, 458798, 65537, 13, 524334, 65537, 13, 589870, 655361, 17, 47, 655361, 17, 65583, 65537, 13, 131119, 65537, 13, 196655, 65537, 13, 262191, 65537, 13, 327727, 65537, 13, 393263, 65537, 13, 458799, 65537, 13, 524335, 65537, 13, 589871, 655361, 17, 48, 655361, 17, 65584, 65537, 13, 131120, 65537, 13, 196656, 65537, 13, 262192, 65537, 13, 327728, 65537, 13, 393264, 65537, 13, 458800, 65537, 13, 524336, 65537, 13, 589872, 655361, 17, 49, 655361, 18, 65585, 655361, 18, 131121, 655361, 18, 196657, 655361, 18, 262193, 655361, 18, 327729, 655361, 18, 393265, 655361, 18, 458801, 655361, 18, 524337, 655361, 18, 589873, 655361, 17, 393254, 65537, 13, 393255, 65537, 13, 458792, 65537, 13, 458791, 65537, 13) + +[node name="MapArea2" type="Area2D" parent="Areas"] +collision_layer = 0 +collision_mask = 2 +script = ExtResource("4_5p13h") + +[node name="CollisionShape2D" type="CollisionShape2D" parent="Areas/MapArea2"] +position = Vector2(-120, 304) +shape = SubResource("RectangleShape2D_v1l1t") + +[node name="TileMap" parent="Areas/MapArea2" instance=ExtResource("2_hrdtq")] +layer_0/tile_data = PackedInt32Array(983025, 655361, 18, 1048561, 655361, 18, 1114097, 655361, 18, 1179633, 655361, 18, 1245169, 655361, 18, 1310705, 655361, 18, 1376241, 655361, 18, 1441777, 655361, 18, 1507313, 655361, 18, 1572849, 655361, 17, 983026, 655361, 17, 1048562, 65537, 13, 1114098, 65537, 13, 1179634, 65537, 13, 1245170, 65537, 13, 1310706, 65537, 13, 1376242, 65537, 13, 1441778, 65537, 13, 1507314, 65537, 13, 1572850, 655361, 17, 1048563, 65537, 13, 1114099, 65537, 13, 1179635, 65537, 13, 1245171, 65537, 13, 1310707, 65537, 13, 1376243, 65537, 13, 1441779, 65537, 13, 1507315, 65537, 13, 1572851, 655361, 17, 983028, 655361, 17, 1048564, 65537, 13, 1114100, 65537, 13, 1179636, 65537, 13, 1245172, 65537, 13, 1310708, 65537, 13, 1376244, 65537, 13, 1441780, 65537, 13, 1507316, 65537, 13, 1572852, 655361, 17, 983029, 655361, 17, 1048565, 65537, 13, 1114101, 65537, 13, 1179637, 65537, 13, 1245173, 65537, 13, 1310709, 65537, 13, 1376245, 65537, 13, 1441781, 65537, 13, 1507317, 65537, 13, 1572853, 655361, 17, 983030, 655361, 17, 1048566, 65537, 13, 1114102, 65537, 13, 1179638, 65537, 13, 1245174, 65537, 13, 1310710, 65537, 13, 1376246, 65537, 13, 1441782, 65537, 13, 1507318, 65537, 13, 1572854, 655361, 17, 983031, 655361, 17, 1048567, 65537, 13, 1114103, 65537, 13, 1179639, 65537, 13, 1245175, 65537, 13, 1310711, 65537, 13, 1376247, 65537, 13, 1441783, 65537, 13, 1507319, 65537, 13, 1572855, 655361, 17, 983032, 655361, 17, 1048568, 65537, 13, 1114104, 65537, 13, 1179640, 65537, 13, 1245176, 65537, 13, 1310712, 65537, 13, 1376248, 65537, 13, 1441784, 65537, 13, 1507320, 65537, 13, 1572856, 655361, 17, 983033, 655361, 17, 1048569, 65537, 13, 1114105, 65537, 13, 1179641, 65537, 13, 1245177, 65537, 13, 1310713, 65537, 13, 1376249, 65537, 13, 1441785, 65537, 13, 1507321, 65537, 13, 1572857, 655361, 17, 983034, 655361, 17, 1048570, 65537, 13, 1114106, 65537, 13, 1179642, 65537, 13, 1245178, 65537, 13, 1310714, 65537, 13, 1376250, 65537, 13, 1441786, 65537, 13, 1507322, 65537, 13, 1572858, 655361, 17, 983035, 655361, 17, 1048571, 65537, 13, 1114107, 65537, 13, 1179643, 65537, 13, 1245179, 65537, 13, 1310715, 65537, 13, 1376251, 65537, 13, 1441787, 65537, 13, 1507323, 65537, 13, 1572859, 655361, 17, 983036, 655361, 17, 1048572, 65537, 13, 1114108, 65537, 13, 1179644, 65537, 13, 1245180, 65537, 13, 1310716, 65537, 13, 1376252, 65537, 13, 1441788, 65537, 13, 1507324, 65537, 13, 1572860, 655361, 17, 983037, 655361, 17, 1048573, 65537, 13, 1114109, 65537, 13, 1179645, 65537, 13, 1245181, 65537, 13, 1310717, 65537, 13, 1376253, 65537, 13, 1441789, 65537, 13, 1507325, 65537, 13, 1572861, 655361, 17, 983038, 655361, 17, 1048574, 65537, 13, 1114110, 65537, 13, 1179646, 65537, 13, 1245182, 65537, 13, 1310718, 65537, 13, 1376254, 65537, 13, 1441790, 65537, 13, 1507326, 65537, 13, 1572862, 655361, 17, 983039, 655361, 17, 1048575, 65537, 13, 1114111, 655361, 18, 1179647, 655361, 18, 1245183, 655361, 18, 1310719, 655361, 18, 1376255, 655361, 18, 1441791, 655361, 18, 1507327, 655361, 18, 1572863, 655361, 17, 983027, 65537, 13) + +[node name="SceneTransition" parent="." instance=ExtResource("3_n745i")] +position = Vector2(-200, 224) +sceneFilePath = "res://Scenes/Maps/World2.tscn" +targetPlayerPositionNodePath = "PlayerPositionWorld1-1" + +[node name="PlayerPositionWorld2-1" type="Node2D" parent="."] +position = Vector2(-200, 240) + +[node name="SceneTransition2" parent="." instance=ExtResource("3_n745i")] +position = Vector2(152, 384) +sceneFilePath = "res://Scenes/Maps/World2.tscn" +targetPlayerPositionNodePath = "PlayerPositionWorld1-2" + +[node name="PlayerPositionWorld2-2" parent="." instance=ExtResource("6_tmdwn")] +position = Vector2(152, 368) + +[node name="InitialPlayerPosition" type="Node2D" parent="."] +position = Vector2(64, 256) + +[connection signal="body_entered" from="Areas/MapArea" to="Areas/MapArea" method="_on_body_entered" flags=18] +[connection signal="body_entered" from="Areas/MapArea2" to="Areas/MapArea2" method="_on_body_entered" flags=18] diff --git a/Scenes/Maps/World2.gd b/Scenes/Maps/World2.gd new file mode 100644 index 0000000..89e9209 --- /dev/null +++ b/Scenes/Maps/World2.gd @@ -0,0 +1 @@ +extends "res://Scenes/Maps/Map.gd" diff --git a/Scenes/Maps/World2.tscn b/Scenes/Maps/World2.tscn new file mode 100644 index 0000000..216c4ce --- /dev/null +++ b/Scenes/Maps/World2.tscn @@ -0,0 +1,52 @@ +[gd_scene load_steps=7 format=3 uid="uid://civ6kmtrcb1cu"] + +[ext_resource type="Script" path="res://Scenes/Maps/World2.gd" id="1_aucep"] +[ext_resource type="PackedScene" uid="uid://difwuijv2rlx5" path="res://Scenes/Components/MapArea.tscn" id="1_iggh6"] +[ext_resource type="PackedScene" uid="uid://cluuq4bwb8ebs" path="res://Scenes/Components/PlayerPosition.tscn" id="2_tjoos"] +[ext_resource type="PackedScene" uid="uid://c5ix2njry0181" path="res://Scenes/Components/SceneTransition.tscn" id="3_rtmo8"] + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_ps5ac"] +size = Vector2(240, 160) + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_e0tjv"] +size = Vector2(240, 160) + +[node name="World2" type="Node2D"] +script = ExtResource("1_aucep") + +[node name="MapArea" parent="." instance=ExtResource("1_iggh6")] + +[node name="TileMap" parent="MapArea" index="1"] +layer_0/tile_data = PackedInt32Array(0, 655361, 18, 65536, 655361, 18, 131072, 655361, 18, 196608, 655361, 18, 262144, 655361, 18, 327680, 655361, 18, 393216, 655361, 18, 458752, 655361, 18, 524288, 655361, 18, 589824, 655361, 17, 1, 655361, 17, 65537, 1, 13, 131073, 1, 13, 196609, 1, 13, 262145, 1, 13, 327681, 1, 13, 393217, 1, 13, 458753, 1, 13, 524289, 1, 13, 589825, 655361, 17, 2, 655361, 17, 65538, 1, 13, 131074, 1, 13, 196610, 1, 13, 262146, 1, 13, 327682, 1, 13, 393218, 1, 13, 458754, 1, 13, 524290, 1, 13, 3, 655361, 17, 65539, 1, 13, 131075, 1, 13, 196611, 1, 13, 262147, 1, 13, 327683, 1, 13, 393219, 1, 13, 458755, 1, 13, 524291, 1, 13, 589827, 655361, 17, 4, 655361, 17, 65540, 1, 13, 131076, 1, 13, 196612, 1, 13, 262148, 1, 13, 327684, 1, 13, 393220, 1, 13, 458756, 1, 13, 524292, 1, 13, 589828, 655361, 17, 5, 655361, 17, 65541, 1, 13, 131077, 1, 13, 196613, 1, 13, 262149, 1, 13, 327685, 1, 13, 393221, 1, 13, 458757, 1, 13, 524293, 1, 13, 589829, 655361, 17, 6, 655361, 17, 65542, 1, 13, 131078, 1, 13, 196614, 1, 13, 262150, 1, 13, 327686, 1, 13, 393222, 1, 13, 458758, 1, 13, 524294, 1, 13, 589830, 655361, 17, 7, 655361, 17, 65543, 1, 13, 131079, 1, 13, 196615, 1, 13, 262151, 1, 13, 327687, 1, 13, 393223, 1, 13, 458759, 1, 13, 524295, 1, 13, 589831, 655361, 17, 8, 655361, 17, 65544, 1, 13, 131080, 1, 13, 196616, 1, 13, 262152, 1, 13, 327688, 1, 13, 393224, 1, 13, 458760, 1, 13, 524296, 1, 13, 589832, 655361, 17, 9, 655361, 17, 65545, 1, 13, 131081, 1, 13, 196617, 1, 13, 262153, 1, 13, 327689, 1, 13, 393225, 1, 13, 458761, 1, 13, 524297, 1, 13, 589833, 655361, 17, 10, 655361, 17, 65546, 1, 13, 131082, 1, 13, 196618, 1, 13, 262154, 1, 13, 327690, 1, 13, 393226, 1, 13, 458762, 1, 13, 524298, 1, 13, 589834, 655361, 17, 11, 655361, 17, 65547, 1, 13, 131083, 1, 13, 196619, 1, 13, 262155, 1, 13, 327691, 1, 13, 393227, 1, 13, 458763, 1, 13, 524299, 1, 13, 589835, 655361, 17, 12, 655361, 17, 65548, 1, 13, 131084, 1, 13, 196620, 1, 13, 262156, 1, 13, 327692, 1, 13, 393228, 1, 13, 458764, 1, 13, 524300, 1, 13, 589836, 655361, 17, 13, 655361, 17, 65549, 1, 13, 131085, 1, 13, 196621, 1, 13, 262157, 1, 13, 327693, 1, 13, 393229, 1, 13, 458765, 1, 13, 524301, 1, 13, 589837, 655361, 17, 14, 655361, 18, 65550, 655361, 17, 131086, 1, 13, 196622, 655361, 18, 262158, 655361, 18, 327694, 655361, 18, 393230, 655361, 18, 458766, 655361, 18, 524302, 655361, 18, 589838, 655361, 17, 589826, 1, 13) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="MapArea"] +position = Vector2(120, 80) +shape = SubResource("RectangleShape2D_ps5ac") + +[node name="MapArea2" parent="." instance=ExtResource("1_iggh6")] + +[node name="TileMap" parent="MapArea2" index="1"] +layer_0/tile_data = PackedInt32Array(15, 655361, 18, 65551, 655361, 17, 131087, 1, 13, 196623, 655361, 18, 262159, 655361, 18, 327695, 655361, 18, 393231, 655361, 18, 458767, 655361, 18, 524303, 655361, 18, 589839, 655361, 17, 16, 655361, 17, 65552, 1, 13, 131088, 1, 13, 196624, 1, 13, 262160, 1, 13, 327696, 1, 13, 393232, 1, 13, 458768, 1, 13, 524304, 1, 13, 589840, 655361, 17, 65553, 1, 13, 131089, 1, 13, 196625, 1, 13, 262161, 1, 13, 327697, 1, 13, 393233, 1, 13, 458769, 1, 13, 524305, 1, 13, 589841, 655361, 17, 18, 655361, 17, 65554, 1, 13, 131090, 1, 13, 196626, 1, 13, 262162, 1, 13, 327698, 1, 13, 393234, 1, 13, 458770, 1, 13, 524306, 1, 13, 589842, 655361, 17, 19, 655361, 17, 65555, 1, 13, 131091, 1, 13, 196627, 1, 13, 262163, 1, 13, 327699, 1, 13, 393235, 1, 13, 458771, 1, 13, 524307, 1, 13, 589843, 655361, 17, 20, 655361, 17, 65556, 1, 13, 131092, 1, 13, 196628, 1, 13, 262164, 1, 13, 327700, 1, 13, 393236, 1, 13, 458772, 1, 13, 524308, 1, 13, 589844, 655361, 17, 21, 655361, 17, 65557, 1, 13, 131093, 1, 13, 196629, 1, 13, 262165, 1, 13, 327701, 1, 13, 393237, 1, 13, 458773, 1, 13, 524309, 1, 13, 589845, 655361, 17, 22, 655361, 17, 65558, 1, 13, 131094, 1, 13, 196630, 1, 13, 262166, 1, 13, 327702, 1, 13, 393238, 1, 13, 458774, 1, 13, 524310, 1, 13, 23, 655361, 17, 65559, 1, 13, 131095, 1, 13, 196631, 1, 13, 262167, 1, 13, 327703, 1, 13, 393239, 1, 13, 458775, 1, 13, 524311, 1, 13, 589847, 655361, 17, 24, 655361, 17, 65560, 1, 13, 131096, 1, 13, 196632, 1, 13, 262168, 1, 13, 327704, 1, 13, 393240, 1, 13, 458776, 1, 13, 524312, 1, 13, 589848, 655361, 17, 25, 655361, 17, 65561, 1, 13, 131097, 1, 13, 196633, 1, 13, 262169, 1, 13, 327705, 1, 13, 393241, 1, 13, 458777, 1, 13, 524313, 1, 13, 589849, 655361, 17, 26, 655361, 17, 65562, 1, 13, 131098, 1, 13, 196634, 1, 13, 262170, 1, 13, 327706, 1, 13, 393242, 1, 13, 458778, 1, 13, 524314, 1, 13, 589850, 655361, 17, 27, 655361, 17, 65563, 1, 13, 131099, 1, 13, 196635, 1, 13, 262171, 1, 13, 327707, 1, 13, 393243, 1, 13, 458779, 1, 13, 524315, 1, 13, 589851, 655361, 17, 28, 655361, 17, 65564, 1, 13, 131100, 1, 13, 196636, 1, 13, 262172, 1, 13, 327708, 1, 13, 393244, 1, 13, 458780, 1, 13, 524316, 1, 13, 589852, 655361, 17, 29, 655361, 18, 65565, 655361, 18, 131101, 655361, 18, 196637, 655361, 18, 262173, 655361, 18, 327709, 655361, 18, 393245, 655361, 18, 458781, 655361, 18, 524317, 655361, 18, 589853, 655361, 17, 589846, 655361, 17, 17, 1, 13) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="MapArea2"] +position = Vector2(360, 80) +shape = SubResource("RectangleShape2D_e0tjv") + +[node name="PlayerPositionWorld1-1" parent="." instance=ExtResource("2_tjoos")] +position = Vector2(40, 144) + +[node name="PlayerPositionWorld1-2" parent="." instance=ExtResource("2_tjoos")] +position = Vector2(280, 16) + +[node name="SceneTransition" parent="." instance=ExtResource("3_rtmo8")] +position = Vector2(40, 160) +sceneFilePath = "res://Scenes/Maps/World.tscn" +targetPlayerPositionNodePath = "PlayerPositionWorld2-1" + +[node name="SceneTransition2" parent="." instance=ExtResource("3_rtmo8")] +position = Vector2(280, 0) +sceneFilePath = "res://Scenes/Maps/World.tscn" +targetPlayerPositionNodePath = "PlayerPositionWorld2-2" + +[editable path="MapArea"] +[editable path="MapArea2"] |