diff --git a/project.godot b/project.godot index 734472b..0373c8c 100644 --- a/project.godot +++ b/project.godot @@ -11,7 +11,7 @@ config_version=5 [application] config/name="Super Space Game" -run/main_scene="uid://bauklhpieuivd" +run/main_scene="uid://b1x7evhkxm385" config/features=PackedStringArray("4.5", "Mobile") boot_splash/bg_color=Color(0, 0, 0, 1) config/icon="res://icon.svg" diff --git a/scenes/ground.tscn b/scenes/ground.tscn index b463a8d..d9a188f 100644 --- a/scenes/ground.tscn +++ b/scenes/ground.tscn @@ -1,71 +1,15 @@ -[gd_scene load_steps=52 format=4 uid="uid://by43ihcec8e8q"] +[gd_scene load_steps=21 format=3 uid="uid://by43ihcec8e8q"] [ext_resource type="Script" uid="uid://b2sw6ymaf4t0s" path="res://scripts/game_ground.gd" id="1_6ra5r"] -[ext_resource type="AudioStream" uid="uid://dgv01wy8r7ej2" path="res://sounds/uglyburger.mp3" id="2_5vwr8"] [ext_resource type="Script" uid="uid://dowu512otgyyf" path="res://scripts/player_ground.gd" id="3_8gbjj"] [ext_resource type="AudioStream" uid="uid://cdl70q0x28717" path="res://sounds/dialogue.mp3" id="3_rncil"] [ext_resource type="Texture2D" uid="uid://c0cyhybh30ogt" path="res://textures/player-ground-sheet.png" id="4_2c1ag"] -[ext_resource type="Texture2D" uid="uid://xs6tjca62pw1" path="res://textures/wall_side_tile.png" id="4_8gbjj"] -[ext_resource type="Texture2D" uid="uid://ddfp7u4a7llnr" path="res://textures/wall_side_tile_left.png" id="5_176r3"] -[ext_resource type="Texture2D" uid="uid://dtwo7g0ipc4k" path="res://textures/ship_1.png" id="5_modao"] -[ext_resource type="Texture2D" uid="uid://btcap3oh2dqt8" path="res://textures/wall_tile.png" id="6_176r3"] -[ext_resource type="Texture2D" uid="uid://gl7rcrys46ay" path="res://textures/wall_side_tile_right.png" id="6_vuhkc"] -[ext_resource type="Texture2D" uid="uid://c8csobncvu3f0" path="res://textures/galactamart_worker.png" id="7_2c1ag"] -[ext_resource type="Texture2D" uid="uid://cj5sjx1jhrah6" path="res://textures/wall_side_tile_center.png" id="7_26mqe"] [ext_resource type="Shader" uid="uid://d3hoh7ec2w8q7" path="res://scripts/outline.gdshader" id="7_vuhkc"] -[ext_resource type="Script" uid="uid://cireshybqi5oq" path="res://scripts/galactamart_worker.gd" id="8_e3s4u"] [ext_resource type="Shader" uid="uid://bk7q00br1ms30" path="res://scripts/retro.gdshader" id="9_257nh"] -[ext_resource type="Script" uid="uid://dxkb8v7w4daw1" path="res://scripts/interact_area.gd" id="10_26mqe"] -[ext_resource type="Texture2D" uid="uid://de0xeo6j2h1au" path="res://textures/nurse-ground-sheet.png" id="13_2tk4m"] -[ext_resource type="Script" uid="uid://khas1kkt2t3k" path="res://scripts/exit_ship.gd" id="14_257nh"] -[ext_resource type="Texture2D" uid="uid://b047lku56vtve" path="res://textures/galacta_counter.png" id="15_vuhkc"] [ext_resource type="Texture2D" uid="uid://dauoebs801ngm" path="res://addons/super_awesome_input_icons/textures/keyboard/question.png" id="16_e3s4u"] [ext_resource type="Script" uid="uid://b2maxk5g6yb0i" path="res://addons/super_awesome_input_icons/classes/input_icon_texture_rect.gd" id="16_hby33"] [ext_resource type="PackedScene" uid="uid://dhcfrsf726k68" path="res://scenes/dialogue_select_button.tscn" id="19_qqas2"] -[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_gysiw"] -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_ppdof"] -texture = ExtResource("6_176r3") -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_modao"] -texture = ExtResource("4_8gbjj") -texture_region_size = Vector2i(32, 32) -0:0/0 = 0 - -[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_257nh"] -texture = ExtResource("5_176r3") -texture_region_size = Vector2i(32, 32) -0:0/0 = 0 - -[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_hby33"] -texture = ExtResource("6_vuhkc") -texture_region_size = Vector2i(32, 32) -0:0/0 = 0 - -[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_e3s4u"] -texture = ExtResource("7_26mqe") -texture_region_size = Vector2i(32, 32) -0:0/0 = 0 - -[sub_resource type="TileSet" id="TileSet_gysiw"] -tile_size = Vector2i(32, 32) -occlusion_layer_0/light_mask = 1 -physics_layer_0/collision_layer = 1 -sources/0 = SubResource("TileSetAtlasSource_ppdof") -sources/1 = SubResource("TileSetAtlasSource_modao") -sources/2 = SubResource("TileSetAtlasSource_257nh") -sources/3 = SubResource("TileSetAtlasSource_hby33") -sources/4 = SubResource("TileSetAtlasSource_e3s4u") - [sub_resource type="AtlasTexture" id="AtlasTexture_jo68p"] atlas = ExtResource("4_2c1ag") region = Rect2(0, 0, 64, 64) @@ -74,115 +18,14 @@ region = Rect2(0, 0, 64, 64) atlas = ExtResource("4_2c1ag") region = Rect2(64, 0, 64, 64) -[sub_resource type="AtlasTexture" id="AtlasTexture_yqhs4"] -atlas = ExtResource("4_2c1ag") -region = Rect2(128, 0, 64, 64) - [sub_resource type="AtlasTexture" id="AtlasTexture_fd1o3"] atlas = ExtResource("4_2c1ag") region = Rect2(192, 0, 64, 64) -[sub_resource type="SpriteFrames" id="SpriteFrames_176r3"] -animations = [{ -"frames": [{ -"duration": 1.0, -"texture": ExtResource("7_2c1ag") -}], -"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_4ldj0"] -radius = 0.0 - -[sub_resource type="CircleShape2D" id="CircleShape2D_vuhkc"] -radius = 96.0 - -[sub_resource type="AtlasTexture" id="AtlasTexture_gur08"] -atlas = ExtResource("13_2tk4m") -region = Rect2(0, 0, 64, 64) - -[sub_resource type="AtlasTexture" id="AtlasTexture_eyphm"] -atlas = ExtResource("13_2tk4m") +[sub_resource type="AtlasTexture" id="AtlasTexture_yqhs4"] +atlas = ExtResource("4_2c1ag") region = Rect2(128, 0, 64, 64) -[sub_resource type="AtlasTexture" id="AtlasTexture_41adg"] -atlas = ExtResource("13_2tk4m") -region = Rect2(64, 0, 64, 64) - -[sub_resource type="AtlasTexture" id="AtlasTexture_dnkg1"] -atlas = ExtResource("13_2tk4m") -region = Rect2(192, 0, 64, 64) - -[sub_resource type="SpriteFrames" id="SpriteFrames_n2e0y"] -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_176r3"] -radius = 16.0 -height = 48.0 - -[sub_resource type="RectangleShape2D" id="RectangleShape2D_vuhkc"] -size = Vector2(128, 60) - [sub_resource type="SpriteFrames" id="SpriteFrames_aergo"] animations = [{ "frames": [{ @@ -228,8 +71,9 @@ animations = [{ "speed": 7.0 }] -[sub_resource type="RectangleShape2D" id="RectangleShape2D_gysiw"] -size = Vector2(40, 40) +[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_176r3"] +radius = 16.0 +height = 48.0 [sub_resource type="LabelSettings" id="LabelSettings_e3s4u"] font_size = 32 @@ -269,77 +113,9 @@ shader_parameter/lens_distortion_strength = 0.0 y_sort_enabled = true script = ExtResource("1_6ra5r") -[node name="Uglyburger" type="AudioStreamPlayer" parent="."] -stream = ExtResource("2_5vwr8") -autoplay = true -bus = &"Music" -parameters/looping = true - [node name="Dialogue" type="AudioStreamPlayer" parent="."] stream = ExtResource("3_rncil") -[node name="Map" type="TileMapLayer" parent="."] -modulate = Color(0.53333336, 0.53333336, 0.53333336, 1) -z_index = -4096 -material = SubResource("CanvasItemMaterial_gysiw") -scale = Vector2(2, 2) -tile_map_data = PackedByteArray("AAD9/wIAAAAAAAAAAAD9/wEAAAAAAAAAAAD9/wAAAAAAAAAAAAD9////AAAAAAAAAAD9//7/AAAAAAAAAAD9/wMAAAAAAAAAAAD9/wQAAAAAAAAAAAD9/wUAAAAAAAAAAAD9/wYAAAAAAAAAAAD9/wcAAAAAAAAAAAD9/wgAAAAAAAAAAAD9/wkAAAAAAAAAAAD9/woAAAAAAAAAAAD9/wsAAAAAAAAAAAD9/wwAAAAAAAAAAAD9/w0AAAAAAAAAAAD9/w4AAAAAAAAAAAD9/w8AAAAAAAAAAAD9/xAAAAAAAAAAAAD9/xEAAAAAAAAAAAD9/xIAAAAAAAAAAAD9/xMAAAAAAAAAAAD9/xQAAAAAAAAAAAD9/xUAAAAAAAAAAAD9/xYAAAAAAAAAAAD9//3/AAAAAAAAAAD+//3/AAAAAAAAAAD///3/AAAAAAAAAAAAAP3/AAAAAAAAAAABAP3/AAAAAAAAAAACAP3/AAAAAAAA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AAAAAAAADx/+b/AAAAAAAAAADx/+f/AAAAAAAAAADx/+j/AwAAAAAAAADy/+L/AAAAAAAAAADz/+L/AAAAAAAAAADz/+f/AAAAAAAAAADz/+j/AgAAAAAAAAD0/+L/AAAAAAAAAAD0/+f/AAAAAAAAAAD0/+j/BAAAAAAAAAD1/+L/AAAAAAAAAAD1/+f/AAAAAAAAAAD1/+j/BAAAAAAAAAD2/+L/AAAAAAAAAAD2/+f/AAAAAAAAAAD2/+j/BAAAAAAAAAA=") -tile_set = SubResource("TileSet_gysiw") - -[node name="GalactamartWorker" type="CharacterBody2D" parent="."] -position = Vector2(-115, -894) -script = ExtResource("8_e3s4u") - -[node name="Sprite" type="AnimatedSprite2D" parent="GalactamartWorker"] -scale = Vector2(-2, 2) -sprite_frames = SubResource("SpriteFrames_176r3") - -[node name="CollisionShape" type="CollisionShape2D" parent="GalactamartWorker"] -shape = SubResource("CapsuleShape2D_4ldj0") - -[node name="InteractArea" type="Area2D" parent="GalactamartWorker"] -script = ExtResource("10_26mqe") -interact_text = "TALK" - -[node name="CollisionShape" type="CollisionShape2D" parent="GalactamartWorker/InteractArea"] -shape = SubResource("CircleShape2D_vuhkc") - -[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("8_e3s4u") - -[node name="Sprite" type="AnimatedSprite2D" parent="Doctor"] -scale = Vector2(-2, 2) -sprite_frames = SubResource("SpriteFrames_n2e0y") -frame_progress = 0.2938512 - -[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_176r3") - -[node name="GalactaCounter" type="StaticBody2D" parent="."] -position = Vector2(-64, -883) -scale = Vector2(2, 2) - -[node name="Sprite" type="Sprite2D" parent="GalactaCounter"] -texture = ExtResource("15_vuhkc") - -[node name="CollisionShape2D" type="CollisionShape2D" parent="GalactaCounter"] -position = Vector2(-0.5, -12) -shape = SubResource("RectangleShape2D_vuhkc") - [node name="PlayerGround" type="CharacterBody2D" parent="."] position = Vector2(349, -58) script = ExtResource("3_8gbjj") @@ -357,21 +133,6 @@ position_smoothing_enabled = true position = Vector2(0, 40) shape = SubResource("CapsuleShape2D_176r3") -[node name="ExitShip" type="Sprite2D" parent="."] -position = Vector2(87, 63) -scale = Vector2(8, 8) -texture = ExtResource("5_modao") -script = ExtResource("14_257nh") - -[node name="InteractArea" type="Area2D" parent="ExitShip"] -scale = Vector2(0.125, 0.125) -script = ExtResource("10_26mqe") -interact_text = "LEAVE" - -[node name="CollisionShape" type="CollisionShape2D" parent="ExitShip/InteractArea"] -scale = Vector2(8, 8) -shape = SubResource("RectangleShape2D_gysiw") - [node name="UI" type="CanvasLayer" parent="."] [node name="Control" type="Control" parent="UI"] @@ -519,8 +280,3 @@ environment = SubResource("Environment_wky5g") [node name="IntroSpawn" type="Node2D" parent="."] position = Vector2(119, -1755) - -[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"] diff --git a/scenes/locations/space_station_1.tscn b/scenes/locations/space_station_1.tscn new file mode 100644 index 0000000..9cb6348 --- /dev/null +++ b/scenes/locations/space_station_1.tscn @@ -0,0 +1,271 @@ +[gd_scene load_steps=38 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="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="Script" uid="uid://cireshybqi5oq" path="res://scripts/galactamart_worker.gd" id="7_v7oqm"] +[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"] + +[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="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") + +[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) + +[node name="SpaceStation1" type="Node2D"] + +[node name="Uglyburger" type="AudioStreamPlayer" parent="."] +stream = ExtResource("1_kpeax") +autoplay = true +bus = &"Music" +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("AAD9/wIAAAAAAAAAAAD9/wEAAAAAAAAAAAD9/wAAAAAAAAAAAAD9////AAAAAAAAAAD9//7/AAAAAAAAAAD9/wMAAAAAAAAAAAD9/wQAAAAAAAAAAAD9/wUAAAAAAAAAAAD9/wYAAAAAAAAAAAD9/wcAAAAAAAAAAAD9/wgAAAAAAAAAAAD9/wkAAAAAAAAAAAD9/woAAAAAAAAAAAD9/wsAAAAAAAAAAAD9/wwAAAAAAAAAAAD9/w0AAAAAAAAAAAD9/w4AAAAAAAAAAAD9/w8AAAAAAAAAAAD9/xAAAAAAAAAAAAD9/xEAAAAAAAAAAAD9/xIAAAAAAAAAAAD9/xMAAAAAAAAAAAD9/xQAAAAAAAAAAAD9/xUAAAAAAAAAAAD9/xYAAAAAAAAAAAD9//3/AAAAAAAAAAD+//3/AAAAAAAAAAD///3/AAAAAAAAAAAAAP3/AAAAAAAAAAABAP3/AAAAAAAAAAACAP3/AAAAAAAAAAADAP3/AAAAAAAAAAAHAP3/AAAAAAAAAAAIAP3/AAAAAAAAAAAJAP3/AAAAAAAAAAAKAP3/AAAAAAAAAAALAP3/AAAAAAAAAAAMAP3/AAAAAAAAAAASAP3/AAAAAAAAAAATAP3/AAAAAAAAAAAUAP3/AAAAAAAA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AAAAAD1/+L/AAAAAAAAAAD1/+f/AAAAAAAAAAD1/+j/BAAAAAAAAAD2/+L/AAAAAAAAAAD2/+f/AAAAAAAAAAD2/+j/BAAAAAAAAADz/+v/AAAAAAAAAADy/+v/AAAAAAAAAADx/+v/AAAAAAAAAADx/+r/AAAAAAAAAADx/+n/AAAAAAAAAADx/+z/AgAAAAAAAADy/+z/BAAAAAAAAADz/+z/BAAAAAAAAAD0/+z/BAAAAAAAAAD1/+z/BAAAAAAAAAD2/+z/BAAAAAAAAAD3/+z/BAAAAAAAAAD4/+z/BAAAAAAAAAD5/+z/BAAAAAAAAAD6/+z/BAAAAAAAAAD7/+z/BAAAAAAAAAD8/+z/BAAAAAAAAAD9/+z/BAAAAAAAAAD+/+z/BAAAAAAAAAD//+z/BAAAAAAAAAAAAOz/BAAAAAAAAAABAOz/BAAAAAAAAAACAOz/BAAAAAAAAAA=") +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(87, 63) +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) + +[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"] diff --git a/scenes/title.tscn b/scenes/title.tscn index 114df14..bbd48e7 100644 --- a/scenes/title.tscn +++ b/scenes/title.tscn @@ -1,8 +1,10 @@ -[gd_scene load_steps=10 format=3 uid="uid://b1x7evhkxm385"] +[gd_scene load_steps=12 format=3 uid="uid://b1x7evhkxm385"] [ext_resource type="Script" uid="uid://md1biuc6ygmv" path="res://scripts/title.gd" id="1_pyl7j"] [ext_resource type="FontFile" uid="uid://n1nd5m2kwexu" path="res://fonts/Michroma.ttf" id="1_wosw1"] [ext_resource type="Texture2D" uid="uid://5iimabvyld40" path="res://textures/particles/basic.png" id="2_4rr2b"] +[ext_resource type="AudioStream" uid="uid://cwidt34ehvre4" path="res://sounds/ui_select.mp3" id="2_hiwto"] +[ext_resource type="AudioStream" uid="uid://cfnchaj8n83ck" path="res://sounds/music/title.mp3" id="2_ia1n6"] [ext_resource type="Shader" uid="uid://bk7q00br1ms30" path="res://scripts/retro.gdshader" id="2_p6dhs"] [ext_resource type="Script" uid="uid://b2maxk5g6yb0i" path="res://addons/super_awesome_input_icons/classes/input_icon_texture_rect.gd" id="2_pyl7j"] [ext_resource type="FontFile" uid="uid://donsvh2l775rb" path="res://fonts/Doto.ttf" id="3_b3w7a"] @@ -35,6 +37,15 @@ shader_parameter/lens_distortion_strength = 0.0 [node name="Title" type="Node2D"] script = ExtResource("1_pyl7j") +[node name="UiSelect" type="AudioStreamPlayer" parent="."] +stream = ExtResource("2_hiwto") + +[node name="Title" type="AudioStreamPlayer" parent="."] +stream = ExtResource("2_ia1n6") +volume_db = -4.0 +autoplay = true +parameters/looping = true + [node name="GPUParticles2D" type="GPUParticles2D" parent="."] position = Vector2(-1420, 0) amount = 512 @@ -282,6 +293,24 @@ fit_content = true horizontal_alignment = 1 vertical_alignment = 1 +[node name="Label4" type="RichTextLabel" parent="UI/Control/Credits"] +custom_minimum_size = Vector2(640, 0) +layout_mode = 2 +size_flags_horizontal = 4 +size_flags_vertical = 4 +theme_override_fonts/normal_font = ExtResource("1_wosw1") +theme_override_fonts/bold_font = ExtResource("3_b3w7a") +theme_override_font_sizes/normal_font_size = 32 +theme_override_font_sizes/bold_font_size = 32 +theme_override_font_sizes/bold_italics_font_size = 32 +theme_override_font_sizes/italics_font_size = 32 +theme_override_font_sizes/mono_font_size = 32 +bbcode_enabled = true +text = "[font size=20]soundtrack by delosound on pixabay[/font]" +fit_content = true +horizontal_alignment = 1 +vertical_alignment = 1 + [node name="Buttons" type="HFlowContainer" parent="UI/Control/Credits"] layout_mode = 2 alignment = 1 diff --git a/scripts/game_ground.gd b/scripts/game_ground.gd index b11e0b2..5e0e7cb 100644 --- a/scripts/game_ground.gd +++ b/scripts/game_ground.gd @@ -6,6 +6,22 @@ signal choice_made func _ready() -> void: $UI/Control/Dialogue.visible = false + + var location_scene = load("res://scenes/locations/space_station_1.tscn").instantiate() + + for n in location_scene.get_children(): + location_scene.remove_child(n) + add_child(n) + + if "game" in n: + n.game = self + + # This gets all descendants. Copied it off the forums don't ask me how it works + for o in n.find_children("*", "", true, false): + if "game" in o: + o.game = self + + location_scene.free() func _process(delta: float) -> void: if current_interaction_area: diff --git a/scripts/interact_area.gd b/scripts/interact_area.gd index 7830aa7..a89331c 100644 --- a/scripts/interact_area.gd +++ b/scripts/interact_area.gd @@ -3,11 +3,6 @@ extends Area2D @export var interact_text = "INTERACT" var game = null -func _ready() -> void: - game = owner - - if game.owner != null: game = game.owner - func _on_body_entered(body: Node2D) -> void: if body.get_name() == "PlayerGround": game.current_interaction_area = self diff --git a/scripts/title.gd b/scripts/title.gd index b38e8e6..0377ae4 100644 --- a/scripts/title.gd +++ b/scripts/title.gd @@ -12,6 +12,8 @@ func _ready() -> void: func _on_continue_pressed() -> void: if transitioning: return + $UiSelect.play() + transitioning = true $UI/Control/ControllerInfo/Box/Flow/Continue.release_focus() @@ -46,6 +48,8 @@ func _on_continue_pressed() -> void: func _on_quit_pressed() -> void: if transitioning: return + $UiSelect.play() + transitioning = true get_viewport().gui_release_focus() @@ -64,6 +68,8 @@ func _on_quit_pressed() -> void: func _on_credits_pressed() -> void: if transitioning: return + $UiSelect.play() + transitioning = true get_viewport().gui_release_focus() @@ -97,6 +103,8 @@ func _on_credits_pressed() -> void: func _on_exit_credits_pressed() -> void: if transitioning: return + $UiSelect.play() + transitioning = true get_viewport().gui_release_focus() @@ -131,6 +139,8 @@ func _on_exit_credits_pressed() -> void: func _on_settings_pressed() -> void: if transitioning: return + $UiSelect.play() + transitioning = true get_viewport().gui_release_focus() @@ -164,6 +174,8 @@ func _on_settings_pressed() -> void: func _on_settings_back_pressed() -> void: if transitioning: return + $UiSelect.play() + transitioning = true get_viewport().gui_release_focus() @@ -199,6 +211,8 @@ func _on_settings_back_pressed() -> void: func _on_new_game_pressed() -> void: if transitioning: return + $UiSelect.play() + transitioning = true get_viewport().gui_release_focus() diff --git a/sounds/2050_bass.mp3 b/sounds/2050_bass.mp3 deleted file mode 100644 index 886743e..0000000 Binary files a/sounds/2050_bass.mp3 and /dev/null differ diff --git a/sounds/2050_bass.mp3.import b/sounds/2050_bass.mp3.import deleted file mode 100644 index b10ffc4..0000000 --- a/sounds/2050_bass.mp3.import +++ /dev/null @@ -1,19 +0,0 @@ -[remap] - -importer="mp3" -type="AudioStreamMP3" -uid="uid://cdi7o5r4y3jpm" -path="res://.godot/imported/2050_bass.mp3-c0e821cf8314cd27ac0ff57d7b69ce25.mp3str" - -[deps] - -source_file="res://sounds/2050_bass.mp3" -dest_files=["res://.godot/imported/2050_bass.mp3-c0e821cf8314cd27ac0ff57d7b69ce25.mp3str"] - -[params] - -loop=false -loop_offset=0 -bpm=0 -beat_count=0 -bar_beats=4 diff --git a/sounds/2050_drums.mp3 b/sounds/2050_drums.mp3 deleted file mode 100644 index f28f1b5..0000000 Binary files a/sounds/2050_drums.mp3 and /dev/null differ diff --git a/sounds/2050_drums.mp3.import b/sounds/2050_drums.mp3.import deleted file mode 100644 index 9c5e911..0000000 --- a/sounds/2050_drums.mp3.import +++ /dev/null @@ -1,19 +0,0 @@ -[remap] - -importer="mp3" -type="AudioStreamMP3" -uid="uid://dklt4lfyqp2c" -path="res://.godot/imported/2050_drums.mp3-bb466a17b0f21890ffac6024700bc7fc.mp3str" - -[deps] - -source_file="res://sounds/2050_drums.mp3" -dest_files=["res://.godot/imported/2050_drums.mp3-bb466a17b0f21890ffac6024700bc7fc.mp3str"] - -[params] - -loop=false -loop_offset=0 -bpm=0 -beat_count=0 -bar_beats=4 diff --git a/sounds/2050_music.mp3 b/sounds/2050_music.mp3 deleted file mode 100644 index 450a5e3..0000000 Binary files a/sounds/2050_music.mp3 and /dev/null differ diff --git a/sounds/2050_music.mp3.import b/sounds/2050_music.mp3.import deleted file mode 100644 index efe1352..0000000 --- a/sounds/2050_music.mp3.import +++ /dev/null @@ -1,19 +0,0 @@ -[remap] - -importer="mp3" -type="AudioStreamMP3" -uid="uid://gf01n1oediuk" -path="res://.godot/imported/2050_music.mp3-a0fe9e1226f9749db65bebe92870c677.mp3str" - -[deps] - -source_file="res://sounds/2050_music.mp3" -dest_files=["res://.godot/imported/2050_music.mp3-a0fe9e1226f9749db65bebe92870c677.mp3str"] - -[params] - -loop=false -loop_offset=0 -bpm=0 -beat_count=0 -bar_beats=4 diff --git a/sounds/music/title.mp3 b/sounds/music/title.mp3 new file mode 100644 index 0000000..2ccfec5 Binary files /dev/null and b/sounds/music/title.mp3 differ diff --git a/sounds/music/title.mp3.import b/sounds/music/title.mp3.import new file mode 100644 index 0000000..7dd6f0d --- /dev/null +++ b/sounds/music/title.mp3.import @@ -0,0 +1,19 @@ +[remap] + +importer="mp3" +type="AudioStreamMP3" +uid="uid://cfnchaj8n83ck" +path="res://.godot/imported/title.mp3-aa8fec0b29d551db4fe8768d72d31945.mp3str" + +[deps] + +source_file="res://sounds/music/title.mp3" +dest_files=["res://.godot/imported/title.mp3-aa8fec0b29d551db4fe8768d72d31945.mp3str"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/sounds/ui_error.mp3 b/sounds/ui_error.mp3 new file mode 100644 index 0000000..0ad3dc0 Binary files /dev/null and b/sounds/ui_error.mp3 differ diff --git a/sounds/ui_error.mp3.import b/sounds/ui_error.mp3.import new file mode 100644 index 0000000..f61a448 --- /dev/null +++ b/sounds/ui_error.mp3.import @@ -0,0 +1,19 @@ +[remap] + +importer="mp3" +type="AudioStreamMP3" +uid="uid://cs4fjgp3g1nb0" +path="res://.godot/imported/ui_error.mp3-3827712336dbacceb14ade7d7c4abc85.mp3str" + +[deps] + +source_file="res://sounds/ui_error.mp3" +dest_files=["res://.godot/imported/ui_error.mp3-3827712336dbacceb14ade7d7c4abc85.mp3str"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/sounds/ui_select.mp3 b/sounds/ui_select.mp3 new file mode 100644 index 0000000..2f3112f Binary files /dev/null and b/sounds/ui_select.mp3 differ diff --git a/sounds/ui_select.mp3.import b/sounds/ui_select.mp3.import new file mode 100644 index 0000000..dd40171 --- /dev/null +++ b/sounds/ui_select.mp3.import @@ -0,0 +1,19 @@ +[remap] + +importer="mp3" +type="AudioStreamMP3" +uid="uid://cwidt34ehvre4" +path="res://.godot/imported/ui_select.mp3-8128c6bf84a0991e26dd9d79dcd1e817.mp3str" + +[deps] + +source_file="res://sounds/ui_select.mp3" +dest_files=["res://.godot/imported/ui_select.mp3-8128c6bf84a0991e26dd9d79dcd1e817.mp3str"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4