[gd_scene load_steps=51 format=3 uid="uid://dg3jjeldcoi0k"] [ext_resource type="Script" uid="uid://sgn85l66sax" path="res://rooms/labs.gd" id="1_iavkr"] [ext_resource type="Texture2D" uid="uid://cuk2cxty66cah" path="res://sprites/lab/map_screen.png" id="2_eoaps"] [ext_resource type="Texture2D" uid="uid://4js1bkdv4ind" path="res://backgrounds/lab-background.png" id="2_f46rw"] [ext_resource type="Texture2D" uid="uid://bi5xvp1dfm0d7" path="res://sprites/lab/map_blip.png" id="3_in351"] [ext_resource type="Texture2D" uid="uid://dyg5mvl45r1vy" path="res://sprites/lab/emptypod.png" id="5_bqlgj"] [ext_resource type="Texture2D" uid="uid://ffk8oj1bo227" path="res://sprites/player/ pod_1_strip8.png" id="6_fbufv"] [ext_resource type="Texture2D" uid="uid://chtee26rjbrcp" path="res://sprites/player/pod_2_strip17.png" id="7_fohy5"] [ext_resource type="Texture2D" uid="uid://bluwleimw435s" path="res://backgrounds/lab-foreground.png" id="8_wsopf"] [ext_resource type="Script" uid="uid://dtdbkfoaaejw0" path="res://objects/player_camera_2d.gd" id="9_2rv37"] [ext_resource type="Script" uid="uid://c027jkwb3uac4" path="res://objects/door_zone.gd" id="9_wsopf"] [sub_resource type="AtlasTexture" id="AtlasTexture_xjmo1"] atlas = ExtResource("2_eoaps") region = Rect2(0, 0, 140, 123) [sub_resource type="AtlasTexture" id="AtlasTexture_51cmo"] atlas = ExtResource("2_eoaps") region = Rect2(140, 0, 140, 123) [sub_resource type="SpriteFrames" id="SpriteFrames_pxlcb"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_xjmo1") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_51cmo") }], "loop": true, "name": &"default", "speed": 1.0 }] [sub_resource type="AtlasTexture" id="AtlasTexture_faxci"] atlas = ExtResource("3_in351") region = Rect2(0, 0, 6, 6) [sub_resource type="AtlasTexture" id="AtlasTexture_628yu"] atlas = ExtResource("3_in351") region = Rect2(6, 0, 6, 6) [sub_resource type="AtlasTexture" id="AtlasTexture_wl3ii"] atlas = ExtResource("3_in351") region = Rect2(12, 0, 6, 6) [sub_resource type="AtlasTexture" id="AtlasTexture_u8gks"] atlas = ExtResource("3_in351") region = Rect2(18, 0, 6, 6) [sub_resource type="AtlasTexture" id="AtlasTexture_u081k"] atlas = ExtResource("3_in351") region = Rect2(24, 0, 6, 6) [sub_resource type="AtlasTexture" id="AtlasTexture_rst00"] atlas = ExtResource("3_in351") region = Rect2(30, 0, 6, 6) [sub_resource type="SpriteFrames" id="SpriteFrames_m3ku0"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_faxci") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_628yu") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_wl3ii") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_u8gks") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_u081k") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_rst00") }], "loop": true, "name": &"default", "speed": 5.0 }] [sub_resource type="AtlasTexture" id="AtlasTexture_3k7vi"] atlas = ExtResource("6_fbufv") region = Rect2(0, 0, 47, 38) [sub_resource type="AtlasTexture" id="AtlasTexture_8ha45"] atlas = ExtResource("6_fbufv") region = Rect2(47, 0, 47, 38) [sub_resource type="AtlasTexture" id="AtlasTexture_q3c3o"] atlas = ExtResource("6_fbufv") region = Rect2(94, 0, 47, 38) [sub_resource type="AtlasTexture" id="AtlasTexture_28owg"] atlas = ExtResource("6_fbufv") region = Rect2(141, 0, 47, 38) [sub_resource type="AtlasTexture" id="AtlasTexture_bcdm1"] atlas = ExtResource("6_fbufv") region = Rect2(188, 0, 47, 38) [sub_resource type="AtlasTexture" id="AtlasTexture_l0bue"] atlas = ExtResource("6_fbufv") region = Rect2(235, 0, 47, 38) [sub_resource type="AtlasTexture" id="AtlasTexture_70cxa"] atlas = ExtResource("6_fbufv") region = Rect2(282, 0, 47, 38) [sub_resource type="AtlasTexture" id="AtlasTexture_06e2c"] atlas = ExtResource("6_fbufv") region = Rect2(329, 0, 47, 38) [sub_resource type="AtlasTexture" id="AtlasTexture_pe6ie"] atlas = ExtResource("7_fohy5") region = Rect2(0, 0, 47, 38) [sub_resource type="AtlasTexture" id="AtlasTexture_t2qkp"] atlas = ExtResource("7_fohy5") region = Rect2(47, 0, 47, 38) [sub_resource type="AtlasTexture" id="AtlasTexture_lmgna"] atlas = ExtResource("7_fohy5") region = Rect2(94, 0, 47, 38) [sub_resource type="AtlasTexture" id="AtlasTexture_y3n6i"] atlas = ExtResource("7_fohy5") region = Rect2(141, 0, 47, 38) [sub_resource type="AtlasTexture" id="AtlasTexture_uklon"] atlas = ExtResource("7_fohy5") region = Rect2(188, 0, 47, 38) [sub_resource type="AtlasTexture" id="AtlasTexture_y8xpd"] atlas = ExtResource("7_fohy5") region = Rect2(235, 0, 47, 38) [sub_resource type="AtlasTexture" id="AtlasTexture_1pqg6"] atlas = ExtResource("7_fohy5") region = Rect2(282, 0, 47, 38) [sub_resource type="AtlasTexture" id="AtlasTexture_4riov"] atlas = ExtResource("7_fohy5") region = Rect2(329, 0, 47, 38) [sub_resource type="AtlasTexture" id="AtlasTexture_7ah1s"] atlas = ExtResource("7_fohy5") region = Rect2(376, 0, 47, 38) [sub_resource type="AtlasTexture" id="AtlasTexture_pngi5"] atlas = ExtResource("7_fohy5") region = Rect2(423, 0, 47, 38) [sub_resource type="AtlasTexture" id="AtlasTexture_utexj"] atlas = ExtResource("7_fohy5") region = Rect2(470, 0, 47, 38) [sub_resource type="AtlasTexture" id="AtlasTexture_lea3s"] atlas = ExtResource("7_fohy5") region = Rect2(517, 0, 47, 38) [sub_resource type="AtlasTexture" id="AtlasTexture_s1mgi"] atlas = ExtResource("7_fohy5") region = Rect2(564, 0, 47, 38) [sub_resource type="AtlasTexture" id="AtlasTexture_dpm1s"] atlas = ExtResource("7_fohy5") region = Rect2(611, 0, 47, 38) [sub_resource type="AtlasTexture" id="AtlasTexture_i0dht"] atlas = ExtResource("7_fohy5") region = Rect2(658, 0, 47, 38) [sub_resource type="AtlasTexture" id="AtlasTexture_u8kyf"] atlas = ExtResource("7_fohy5") region = Rect2(705, 0, 47, 38) [sub_resource type="AtlasTexture" id="AtlasTexture_uobmh"] atlas = ExtResource("7_fohy5") region = Rect2(752, 0, 47, 38) [sub_resource type="SpriteFrames" id="SpriteFrames_c8d2d"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_3k7vi") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_8ha45") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_q3c3o") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_28owg") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_bcdm1") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_l0bue") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_70cxa") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_06e2c") }], "loop": false, "name": &"default", "speed": 24.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_pe6ie") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_t2qkp") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_lmgna") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_y3n6i") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_uklon") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_y8xpd") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_1pqg6") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_4riov") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_7ah1s") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_pngi5") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_utexj") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_lea3s") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_s1mgi") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_dpm1s") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_i0dht") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_u8kyf") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_uobmh") }], "loop": false, "name": &"leave", "speed": 6.0 }] [sub_resource type="GDScript" id="GDScript_ciu2s"] script/source = "extends AnimatedSprite2D # Called when the node enters the scene tree for the first time. func _ready() -> void: if global.save.room == \"labs\": await get_tree().create_timer(5).timeout play(\"default\") else: self.hide() # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(_delta: float) -> void: pass func _on_animation_finished() -> void: if animation == \"default\": play(\"leave\") elif animation == \"leave\": self.hide() global.player = load(\"res://objects/player.tscn\").instantiate() global.player.position = $\"../PlayerPodSpawn\".position get_tree().root.add_child(global.player) " [sub_resource type="Gradient" id="Gradient_fxqk7"] offsets = PackedFloat32Array(0, 0.83219177) colors = PackedColorArray(0.8732977, 0.8732989, 0.87329775, 1, 0, 0, 0, 1) [sub_resource type="GradientTexture2D" id="GradientTexture2D_fm2l1"] gradient = SubResource("Gradient_fxqk7") fill = 1 fill_from = Vector2(0.5, 0.5) [sub_resource type="RectangleShape2D" id="RectangleShape2D_wsopf"] size = Vector2(64, 9) [node name="Labs" type="Node2D"] script = ExtResource("1_iavkr") [node name="StaticBody2D" type="StaticBody2D" parent="."] z_index = 50 [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="StaticBody2D"] polygon = PackedVector2Array(6, 0, 6, 182, 99, 182, 101, 184, 115, 184, 119, 188, 448, 188, 448, 240, 0, 240, 0, 0) [node name="CollisionPolygon2D2" type="CollisionPolygon2D" parent="StaticBody2D"] polygon = PackedVector2Array(512, 188, 512, 240, 640, 240, 640, 0, 635, 0, 635, 188) [node name="CollisionPolygon2D3" type="CollisionPolygon2D" parent="StaticBody2D"] polygon = PackedVector2Array(315, 119, 325, 119, 325, 0, 315, 0) [node name="TextureBackground" type="TextureRect" parent="."] offset_right = 640.0 offset_bottom = 240.0 texture = ExtResource("2_f46rw") [node name="MapScreen" type="AnimatedSprite2D" parent="."] position = Vector2(90, 12) sprite_frames = SubResource("SpriteFrames_pxlcb") autoplay = "default" centered = false [node name="MapBlip1" type="AnimatedSprite2D" parent="MapScreen"] position = Vector2(21, 50) sprite_frames = SubResource("SpriteFrames_m3ku0") autoplay = "default" frame = 1 [node name="MapBlip2" type="AnimatedSprite2D" parent="MapScreen"] position = Vector2(45, 74) sprite_frames = SubResource("SpriteFrames_m3ku0") autoplay = "default" frame = 1 [node name="MapBlip3" type="AnimatedSprite2D" parent="MapScreen"] position = Vector2(68, 47) sprite_frames = SubResource("SpriteFrames_m3ku0") autoplay = "default" frame = 3 [node name="MapBlip4" type="AnimatedSprite2D" parent="MapScreen"] position = Vector2(69, 58) sprite_frames = SubResource("SpriteFrames_m3ku0") autoplay = "default" frame = 2 [node name="MapBlip5" type="AnimatedSprite2D" parent="MapScreen"] position = Vector2(90, 40) sprite_frames = SubResource("SpriteFrames_m3ku0") autoplay = "default" frame = 2 [node name="MapBlip6" type="AnimatedSprite2D" parent="MapScreen"] position = Vector2(97, 54) sprite_frames = SubResource("SpriteFrames_m3ku0") autoplay = "default" frame = 1 [node name="MapBlip7" type="AnimatedSprite2D" parent="MapScreen"] position = Vector2(121, 86) sprite_frames = SubResource("SpriteFrames_m3ku0") autoplay = "default" frame_progress = 0.166665 [node name="PodEmpty1" type="Sprite2D" parent="."] position = Vector2(63, 155) texture = ExtResource("5_bqlgj") centered = false [node name="PodEmpty2" type="Sprite2D" parent="."] position = Vector2(38, 155) texture = ExtResource("5_bqlgj") centered = false [node name="PodPlayerEmpty" type="Sprite2D" parent="."] position = Vector2(13, 155) texture = ExtResource("5_bqlgj") centered = false [node name="PodPlayer" type="AnimatedSprite2D" parent="."] position = Vector2(8, 150) sprite_frames = SubResource("SpriteFrames_c8d2d") centered = false script = SubResource("GDScript_ciu2s") [node name="PointLight2D" type="PointLight2D" parent="."] position = Vector2(162, 77) scale = Vector2(4.04688, 4.04688) color = Color(0.43118694, 0.70823646, 0.9334883, 1) energy = 0.75 texture = SubResource("GradientTexture2D_fm2l1") metadata/_edit_lock_ = true [node name="TextureForeground" type="TextureRect" parent="."] z_index = 20 z_as_relative = false offset_right = 40.0 offset_bottom = 40.0 texture = ExtResource("8_wsopf") [node name="PlayerPodSpawn" type="Marker2D" parent="."] position = Vector2(36, 182) [node name="CanvasModulate" type="CanvasModulate" parent="."] color = Color(0.62510306, 0.65990686, 0.6903145, 1) [node name="PlayerCamera2D" type="Camera2D" parent="."] limit_left = 0 limit_top = 0 limit_right = 640 limit_bottom = 240 script = ExtResource("9_2rv37") metadata/_custom_type_script = "uid://dtdbkfoaaejw0" [node name="DoorCaves" type="Area2D" parent="."] position = Vector2(480, 231) script = ExtResource("9_wsopf") TargetRoomPath = "uid://dx7otbnngehj2" TargetDoor = "DoorLabs" PreserveX = true PreserveVelocity = true metadata/_custom_type_script = "uid://c027jkwb3uac4" [node name="CollisionShape2D" type="CollisionShape2D" parent="DoorCaves"] position = Vector2(0, 4.5) shape = SubResource("RectangleShape2D_wsopf") [connection signal="animation_finished" from="PodPlayer" to="PodPlayer" method="_on_animation_finished"] [connection signal="body_entered" from="DoorCaves" to="DoorCaves" method="_on_body_entered"]