[gd_scene load_steps=47 format=4 uid="uid://dfjnikjjynj0e"]

[ext_resource type="AudioStream" uid="uid://dgv01wy8r7ej2" path="res://sounds/uglyburger.mp3" id="1_kpeax"]
[ext_resource type="Texture2D" uid="uid://btcap3oh2dqt8" path="res://textures/wall_tile.png" id="2_4uppp"]
[ext_resource type="AudioStream" uid="uid://w3hai62ji61g" path="res://sounds/heart_monitor.mp3" id="2_v7oqm"]
[ext_resource type="Texture2D" uid="uid://xs6tjca62pw1" path="res://textures/wall_side_tile.png" id="3_ir5n7"]
[ext_resource type="Texture2D" uid="uid://ddfp7u4a7llnr" path="res://textures/wall_side_tile_left.png" id="4_50pdk"]
[ext_resource type="Texture2D" uid="uid://gl7rcrys46ay" path="res://textures/wall_side_tile_right.png" id="5_83fjc"]
[ext_resource type="Texture2D" uid="uid://cj5sjx1jhrah6" path="res://textures/wall_side_tile_center.png" id="6_akl5n"]
[ext_resource type="Texture2D" uid="uid://bwh50cq32c50i" path="res://textures/floor_tile.png" id="7_4uppp"]
[ext_resource type="Script" uid="uid://cireshybqi5oq" path="res://scripts/galactamart_worker.gd" id="7_v7oqm"]
[ext_resource type="Texture2D" uid="uid://csg88jj3ywtwy" path="res://textures/warning_floor_tile.png" id="8_ir5n7"]
[ext_resource type="Texture2D" uid="uid://c8csobncvu3f0" path="res://textures/galactamart_worker.png" id="8_ttgmv"]
[ext_resource type="Texture2D" uid="uid://c0cyhybh30ogt" path="res://textures/player-ground-sheet.png" id="9_ox04r"]
[ext_resource type="Script" uid="uid://dxkb8v7w4daw1" path="res://scripts/interact_area.gd" id="10_tvsp8"]
[ext_resource type="Texture2D" uid="uid://de0xeo6j2h1au" path="res://textures/nurse-ground-sheet.png" id="11_6l1ru"]
[ext_resource type="Texture2D" uid="uid://b047lku56vtve" path="res://textures/galacta_counter.png" id="12_janyw"]
[ext_resource type="Texture2D" uid="uid://dtwo7g0ipc4k" path="res://textures/ship_1.png" id="13_vmpfq"]
[ext_resource type="Script" uid="uid://khas1kkt2t3k" path="res://scripts/exit_ship.gd" id="14_jxmby"]
[ext_resource type="Texture2D" uid="uid://ktvnppfhchoj" path="res://textures/bed.png" id="17_50pdk"]
[ext_resource type="Texture2D" uid="uid://cmv4wou5glrl7" path="res://textures/bed_foot.png" id="18_83fjc"]
[ext_resource type="Script" uid="uid://cva4b60iqolqy" path="res://scripts/story_handler_1.gd" id="19_akl5n"]

[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_vmimc"]
light_mode = 1

[sub_resource type="OccluderPolygon2D" id="OccluderPolygon2D_gysiw"]
polygon = PackedVector2Array(-16, -0.31863022, 0, -16, 16, 0, -0.31863022, 16)

[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_k741b"]
texture = ExtResource("2_4uppp")
0:0/size_in_atlas = Vector2i(2, 2)
0:0/0 = 0
0:0/0/occlusion_layer_0/polygon_0/polygon = SubResource("OccluderPolygon2D_gysiw")
0:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)

[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_mdep3"]
texture = ExtResource("3_ir5n7")
texture_region_size = Vector2i(32, 32)
0:0/0 = 0

[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_bhfm6"]
texture = ExtResource("4_50pdk")
texture_region_size = Vector2i(32, 32)
0:0/0 = 0

[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_kl2qk"]
texture = ExtResource("5_83fjc")
texture_region_size = Vector2i(32, 32)
0:0/0 = 0

[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_ga4dw"]
texture = ExtResource("6_akl5n")
texture_region_size = Vector2i(32, 32)
0:0/0 = 0

[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_ir5n7"]
texture = ExtResource("7_4uppp")
texture_region_size = Vector2i(32, 32)
0:0/0 = 0

[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_50pdk"]
texture = ExtResource("8_ir5n7")
texture_region_size = Vector2i(32, 32)
0:0/0 = 0

[sub_resource type="TileSet" id="TileSet_uxsmb"]
tile_size = Vector2i(32, 32)
occlusion_layer_0/light_mask = 1
physics_layer_0/collision_layer = 1
sources/0 = SubResource("TileSetAtlasSource_k741b")
sources/1 = SubResource("TileSetAtlasSource_mdep3")
sources/2 = SubResource("TileSetAtlasSource_bhfm6")
sources/3 = SubResource("TileSetAtlasSource_kl2qk")
sources/4 = SubResource("TileSetAtlasSource_ga4dw")
sources/5 = SubResource("TileSetAtlasSource_ir5n7")
sources/6 = SubResource("TileSetAtlasSource_50pdk")

[sub_resource type="AtlasTexture" id="AtlasTexture_jo68p"]
atlas = ExtResource("9_ox04r")
region = Rect2(0, 0, 64, 64)

[sub_resource type="AtlasTexture" id="AtlasTexture_6gpfv"]
atlas = ExtResource("9_ox04r")
region = Rect2(64, 0, 64, 64)

[sub_resource type="AtlasTexture" id="AtlasTexture_yqhs4"]
atlas = ExtResource("9_ox04r")
region = Rect2(128, 0, 64, 64)

[sub_resource type="AtlasTexture" id="AtlasTexture_fd1o3"]
atlas = ExtResource("9_ox04r")
region = Rect2(192, 0, 64, 64)

[sub_resource type="SpriteFrames" id="SpriteFrames_c17de"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("8_ttgmv")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_jo68p")
}],
"loop": true,
"name": &"idle",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_jo68p")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6gpfv")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_yqhs4")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fd1o3")
}],
"loop": true,
"name": &"walk",
"speed": 6.0
}]

[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_ki1em"]
radius = 0.0

[sub_resource type="CircleShape2D" id="CircleShape2D_wtm4f"]
radius = 96.0

[sub_resource type="AtlasTexture" id="AtlasTexture_gur08"]
atlas = ExtResource("11_6l1ru")
region = Rect2(0, 0, 64, 64)

[sub_resource type="AtlasTexture" id="AtlasTexture_eyphm"]
atlas = ExtResource("11_6l1ru")
region = Rect2(128, 0, 64, 64)

[sub_resource type="AtlasTexture" id="AtlasTexture_41adg"]
atlas = ExtResource("11_6l1ru")
region = Rect2(64, 0, 64, 64)

[sub_resource type="AtlasTexture" id="AtlasTexture_dnkg1"]
atlas = ExtResource("11_6l1ru")
region = Rect2(192, 0, 64, 64)

[sub_resource type="SpriteFrames" id="SpriteFrames_c5r8y"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_gur08")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_eyphm")
}],
"loop": true,
"name": &"idle",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_41adg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_eyphm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_dnkg1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_gur08")
}],
"loop": true,
"name": &"walk",
"speed": 6.0
}]

[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_2ss3m"]
radius = 16.0
height = 48.0

[sub_resource type="RectangleShape2D" id="RectangleShape2D_whbip"]
size = Vector2(128, 60)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_4hfpp"]
size = Vector2(40, 40)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_83fjc"]
size = Vector2(61.5, 21)

[node name="SpaceStation1" type="Node2D"]

[node name="Uglyburger" type="AudioStreamPlayer" parent="."]
stream = ExtResource("1_kpeax")
autoplay = true
bus = &"Music"
parameters/looping = true

[node name="HeartMonitor" type="AudioStreamPlayer" parent="."]
stream = ExtResource("2_v7oqm")
parameters/looping = true

[node name="Map" type="TileMapLayer" parent="."]
modulate = Color(0.53333336, 0.53333336, 0.53333336, 1)
z_index = -4096
material = SubResource("CanvasItemMaterial_vmimc")
scale = Vector2(2, 2)
tile_map_data = PackedByteArray("[encoded data, 27364 characters]")
tile_set = SubResource("TileSet_uxsmb")

[node name="GalactamartWorker" type="CharacterBody2D" parent="."]
position = Vector2(-115, -894)
script = ExtResource("7_v7oqm")

[node name="Sprite" type="AnimatedSprite2D" parent="GalactamartWorker"]
scale = Vector2(-2, 2)
sprite_frames = SubResource("SpriteFrames_c17de")

[node name="CollisionShape" type="CollisionShape2D" parent="GalactamartWorker"]
shape = SubResource("CapsuleShape2D_ki1em")

[node name="InteractArea" type="Area2D" parent="GalactamartWorker"]
script = ExtResource("10_tvsp8")
interact_text = "TALK"

[node name="CollisionShape" type="CollisionShape2D" parent="GalactamartWorker/InteractArea"]
shape = SubResource("CircleShape2D_wtm4f")

[node name="Camera" type="Camera2D" parent="GalactamartWorker"]
position = Vector2(99, 0)
enabled = false
zoom = Vector2(2, 2)
position_smoothing_enabled = true

[node name="Doctor" type="CharacterBody2D" parent="."]
position = Vector2(-80, -1785)
script = ExtResource("7_v7oqm")

[node name="Sprite" type="AnimatedSprite2D" parent="Doctor"]
scale = Vector2(-2, 2)
sprite_frames = SubResource("SpriteFrames_c5r8y")

[node name="Camera" type="Camera2D" parent="Doctor"]
position = Vector2(99, 0)
enabled = false
zoom = Vector2(2, 2)
position_smoothing_enabled = true

[node name="CollisionShape" type="CollisionShape2D" parent="Doctor"]
position = Vector2(0, 40)
shape = SubResource("CapsuleShape2D_2ss3m")

[node name="GalactaCounter" type="StaticBody2D" parent="."]
position = Vector2(-64, -883)
scale = Vector2(2, 2)

[node name="Sprite" type="Sprite2D" parent="GalactaCounter"]
texture = ExtResource("12_janyw")

[node name="CollisionShape2D" type="CollisionShape2D" parent="GalactaCounter"]
position = Vector2(-0.5, -12)
shape = SubResource("RectangleShape2D_whbip")

[node name="ExitShip" type="Sprite2D" parent="."]
position = Vector2(671, 219)
scale = Vector2(8, 8)
texture = ExtResource("13_vmpfq")
script = ExtResource("14_jxmby")

[node name="InteractArea" type="Area2D" parent="ExitShip"]
scale = Vector2(0.125, 0.125)
script = ExtResource("10_tvsp8")
interact_text = "LEAVE"

[node name="CollisionShape" type="CollisionShape2D" parent="ExitShip/InteractArea"]
scale = Vector2(8, 8)
shape = SubResource("RectangleShape2D_4hfpp")

[node name="PlayerSpawn" type="Node2D" parent="."]
position = Vector2(349, -58)

[node name="PlayerSpawnIntro" type="Node2D" parent="."]
position = Vector2(126, -1796)

[node name="Sprite2D3" type="Sprite2D" parent="."]
z_index = -1
position = Vector2(126, -1787)
scale = Vector2(2, 2)
texture = ExtResource("17_50pdk")

[node name="Sprite2D" type="StaticBody2D" parent="."]
position = Vector2(126, -1787)
scale = Vector2(2, 2)

[node name="Sprite2D2" type="Sprite2D" parent="Sprite2D"]
texture = ExtResource("18_83fjc")

[node name="CollisionShape2D" type="CollisionShape2D" parent="Sprite2D"]
position = Vector2(-0.25, 37.5)
shape = SubResource("RectangleShape2D_83fjc")

[node name="StoryHandler1" type="Node2D" parent="."]
script = ExtResource("19_akl5n")

[connection signal="body_entered" from="GalactamartWorker/InteractArea" to="GalactamartWorker/InteractArea" method="_on_body_entered"]
[connection signal="body_exited" from="GalactamartWorker/InteractArea" to="GalactamartWorker/InteractArea" method="_on_body_exited"]
[connection signal="body_entered" from="ExitShip/InteractArea" to="ExitShip/InteractArea" method="_on_body_entered"]
[connection signal="body_exited" from="ExitShip/InteractArea" to="ExitShip/InteractArea" method="_on_body_exited"]
