This commit is contained in:
2026-01-21 23:40:20 +01:00
commit d1f8068081
478 changed files with 24902 additions and 0 deletions

37
scene/LoadingScreen.tscn Normal file
View File

@@ -0,0 +1,37 @@
[gd_scene load_steps=2 format=3 uid="uid://cwxq3udib6v5f"]
[sub_resource type="LabelSettings" id="LabelSettings_bvrvd"]
font_size = 80
[node name="LoadingScreen" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="ColorRect" type="ColorRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.072842635, 0.072842635, 0.072842635, 1)
[node name="Label" type="Label" parent="."]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -20.0
offset_top = -11.5
offset_right = 20.0
offset_bottom = 11.5
grow_horizontal = 2
grow_vertical = 2
text = "Loading..."
label_settings = SubResource("LabelSettings_bvrvd")

60
scene/MapScreen.tscn Normal file
View File

@@ -0,0 +1,60 @@
[gd_scene load_steps=3 format=3 uid="uid://c7i4riys4l3py"]
[ext_resource type="Script" uid="uid://bshnb8sg3aqv6" path="res://script/map_screen.gd" id="1_37cg4"]
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_tutrq"]
[node name="MapScreen" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 1
script = ExtResource("1_37cg4")
[node name="ColorRect" type="ColorRect" parent="."]
layout_mode = 1
anchors_preset = -1
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.16924527, 0.1692453, 0.16924527, 1)
[node name="TextureRect" type="TextureRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 505.0
offset_right = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="TextureRect2" type="TextureRect" parent="."]
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 505.0
offset_right = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = SubResource("PlaceholderTexture2D_tutrq")
[node name="PlayerIndicator" type="ColorRect" parent="."]
layout_mode = 0
offset_left = 74.0
offset_top = -61.0
offset_right = 94.0
offset_bottom = -41.0
color = Color(0, 0, 1, 1)
[node name="TaskList" type="VBoxContainer" parent="."]
layout_mode = 0
offset_top = 20.0
offset_right = 505.0
offset_bottom = 628.0

View File

@@ -0,0 +1,210 @@
[gd_scene load_steps=32 format=3 uid="uid://k0jpd2sugl7b"]
[ext_resource type="Script" uid="uid://c7ea7hd1t6ucj" path="res://script/spaceship.gd" id="1_gidgt"]
[ext_resource type="Texture2D" uid="uid://cimsjl61nhh5s" path="res://assets/2D/HDR_blue_nebulae-1.hdr" id="2_4sohr"]
[ext_resource type="PackedScene" uid="uid://2y66sfeblm38" path="res://Spaceship/Objects/Grabable/FuelCanister.tscn" id="2_rp302"]
[ext_resource type="PackedScene" uid="uid://yg472lgqdca7" path="res://Spaceship/Objects/Grabable/PowerCell.tscn" id="2_yje2s"]
[ext_resource type="PackedScene" uid="uid://clhhslugpfugs" path="res://Spaceship/Rooms/Starter.tscn" id="3_bs3qb"]
[ext_resource type="Script" uid="uid://d3w6uvg5hmphc" path="res://script/randomObject.gd" id="5_rp302"]
[ext_resource type="PackedScene" uid="uid://dluf007dbq25" path="res://Spaceship/Rooms/storage.tscn" id="5_ttkoc"]
[ext_resource type="PackedScene" uid="uid://ddacwr4hkhu51" path="res://Spaceship/Corridors/CorridorShort.tscn" id="5_wf1j8"]
[ext_resource type="PackedScene" uid="uid://7ycmkl7f4shi" path="res://Spaceship/Rooms/generator.tscn" id="6_yje2s"]
[ext_resource type="PackedScene" uid="uid://coscryni2ckd7" path="res://Spaceship/Corridors/CorridorTTurn.tscn" id="7_l5vk7"]
[ext_resource type="PackedScene" uid="uid://dqqm5nv732hqq" path="res://Spaceship/Corridors/CorridorLTurn.tscn" id="9_4wod1"]
[ext_resource type="PackedScene" uid="uid://c2wd2wxtbgt2h" path="res://Spaceship/Corridors/CorridorFourWay.tscn" id="10_ttkoc"]
[ext_resource type="PackedScene" uid="uid://bsogpm3kf7s1l" path="res://Spaceship/Rooms/control.tscn" id="13_uljtq"]
[ext_resource type="PackedScene" uid="uid://c52lwhaynro5j" path="res://Spaceship/Objects/ControllLever.tscn" id="14_ogiy5"]
[ext_resource type="PackedScene" uid="uid://botctq3i0fq1t" path="res://Spaceship/Rooms/fuel_tank.tscn" id="14_sw4ah"]
[ext_resource type="PackedScene" uid="uid://7p668ibmmx21" path="res://Spaceship/Corridors/CorridorDeadEnd.tscn" id="15_6akxh"]
[ext_resource type="PackedScene" uid="uid://cxijyr4imvpw2" path="res://Spaceship/Corridors/corridor_dead_end_breakable.tscn" id="15_h11mn"]
[ext_resource type="Texture2D" uid="uid://bp5exqkba4hr3" path="res://assets/2D/SteeringMinigame/Spaceship.png" id="15_jyrsd"]
[ext_resource type="PackedScene" uid="uid://cffn8ih6c2oyg" path="res://Spaceship/Objects/repair_cart.tscn" id="20_6akxh"]
[ext_resource type="PackedScene" uid="uid://wo0ikejk0hag" path="res://Spaceship/Objects/Grabable/RepairCube.tscn" id="21_ddgy6"]
[ext_resource type="Script" uid="uid://dmat7wv8ltc8" path="res://script/pathfindingGridLoad.gd" id="22_jidkq"]
[ext_resource type="PackedScene" uid="uid://dsp8is8odlbph" path="res://Spaceship/Objects/Grabable/toolbox.tscn" id="22_n0f7y"]
[ext_resource type="PackedScene" uid="uid://b6thwnvy4x07a" path="res://actors/Enemies/Spider/mech_spider_base.tscn" id="23_jidkq"]
[sub_resource type="Gradient" id="Gradient_sw4ah"]
interpolation_mode = 1
offsets = PackedFloat32Array(0, 0.25, 0.361502, 0.375, 0.488263, 0.5, 0.615023, 0.625, 0.732394, 0.75, 0.859155, 0.875, 1)
colors = PackedColorArray(0, 0, 0, 1, 0.25, 0.25, 0.25, 1, 0.28169, 0.28169, 0.28169, 1, 0.375, 0.375, 0.375, 1, 0.408451, 0.408451, 0.408451, 1, 0.5, 0.5, 0.5, 1, 0.530516, 0.530516, 0.530516, 1, 0.625, 0.625, 0.625, 1, 0.661972, 0.661972, 0.661972, 1, 0.75, 0.75, 0.75, 1, 0.802817, 0.802817, 0.802817, 1, 0.875, 0.875, 0.875, 1, 1, 1, 1, 1)
metadata/_snap_enabled = true
metadata/_snap_count = 8
[sub_resource type="GradientTexture1D" id="GradientTexture1D_h11mn"]
gradient = SubResource("Gradient_sw4ah")
[sub_resource type="Gradient" id="Gradient_h11mn"]
offsets = PackedFloat32Array(0.187793, 0.704225, 0.929577)
colors = PackedColorArray(0, 0, 0, 1, 0.58042, 0.58042, 0.58042, 1, 0.860369, 0.860369, 0.860369, 1)
[sub_resource type="FastNoiseLite" id="FastNoiseLite_ogiy5"]
frequency = 0.03
fractal_octaves = 8
fractal_lacunarity = 5.0
fractal_gain = 0.495
fractal_weighted_strength = 0.23
domain_warp_enabled = true
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_jyrsd"]
color_ramp = SubResource("Gradient_h11mn")
noise = SubResource("FastNoiseLite_ogiy5")
[sub_resource type="PanoramaSkyMaterial" id="PanoramaSkyMaterial_bs3qb"]
panorama = ExtResource("2_4sohr")
[sub_resource type="Sky" id="Sky_bs3qb"]
sky_material = SubResource("PanoramaSkyMaterial_bs3qb")
[sub_resource type="Environment" id="Environment_ayklm"]
background_mode = 2
sky = SubResource("Sky_bs3qb")
glow_enabled = true
glow_levels/1 = 1.38
glow_levels/2 = 1.55
glow_levels/3 = 5.63
glow_levels/5 = 1.75
glow_levels/6 = 0.9
glow_levels/7 = 0.75
glow_strength = 1.73
glow_mix = 0.03
glow_bloom = 0.05
glow_blend_mode = 4
glow_hdr_luminance_cap = 1.5
glow_map = SubResource("NoiseTexture2D_jyrsd")
volumetric_fog_emission = Color(1, 1, 1, 1)
volumetric_fog_emission_energy = 0.04
adjustment_brightness = 1.5
adjustment_color_correction = SubResource("GradientTexture1D_h11mn")
[node name="Spaceship" type="Node3D" node_paths=PackedStringArray("anouncerVoiceEmitter", "controllRoom", "breakableRoom")]
script = ExtResource("1_gidgt")
anouncerVoiceEmitter = NodePath("AouncerVoice")
controllRoom = NodePath("Rooms/Controll")
breakableRoom = NodePath("Rooms/CorridorDeadEndBreakable2")
[node name="PowerCell" parent="." instance=ExtResource("2_yje2s")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -29.0185, 0.615273, 19.527)
[node name="FuelCanister" parent="." instance=ExtResource("2_rp302")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5.54061, 0.395963, 1.71824)
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_ayklm")
[node name="Rooms" type="Node3D" parent="."]
[node name="CorridorShort" parent="Rooms" node_paths=PackedStringArray("SpaceshipLogicRef") instance=ExtResource("5_wf1j8")]
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 7, 0, 14.01)
SpaceshipLogicRef = NodePath("../..")
[node name="Starter" parent="Rooms" instance=ExtResource("3_bs3qb")]
[node name="Generator" parent="Rooms" instance=ExtResource("6_yje2s")]
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 28.01, 0, -21)
[node name="CorridorTTurn" parent="Rooms" instance=ExtResource("7_l5vk7")]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, -14.01)
[node name="CorridorLTurn" parent="Rooms" instance=ExtResource("9_4wod1")]
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 7, 0, 28.01)
[node name="CorridorFourWay" parent="Rooms" instance=ExtResource("10_ttkoc")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -28.01, 0, 7)
[node name="Controll" parent="Rooms" node_paths=PackedStringArray("controllStick", "SpaceshipLogicRef") instance=ExtResource("13_uljtq")]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -17.5087, 0, -24.5)
controllStick = NodePath("../CorridorDeadEnd/LeverPivot")
SpaceshipLogicRef = NodePath("../..")
[node name="CorridorShort2" parent="Rooms" instance=ExtResource("5_wf1j8")]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -21, 0, -7)
[node name="FuelTank" parent="Rooms" instance=ExtResource("14_sw4ah")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -20.9954, -7, 45.6114)
[node name="CorridorDeadEndBreakable" parent="Rooms" instance=ExtResource("15_h11mn")]
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 24.5, 0, 35)
[node name="CorridorDeadEndBreakable2" parent="Rooms" instance=ExtResource("15_h11mn")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -41.983, 0, -10.4939)
[node name="Storage" parent="Rooms" instance=ExtResource("5_ttkoc")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -24.515, 0, 28.1)
[node name="CorridorTTurn2" parent="Rooms" instance=ExtResource("7_l5vk7")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -35, 0, 7)
[node name="CorridorDeadEnd" parent="Rooms" instance=ExtResource("15_6akxh")]
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, -42.0032, 0, 20.9783)
[node name="LeverPivot" parent="Rooms/CorridorDeadEnd" instance=ExtResource("14_ogiy5")]
transform = Transform3D(4.99998, 0, -0.0130021, 0, 5, 0, 0.0130021, 0, 4.99998, 8.88818, 0.084, -0.0222626)
[node name="Sprite3D" type="Sprite3D" parent="Rooms/CorridorDeadEnd"]
transform = Transform3D(-0.00260054, 0, -0.999997, 0, 1, 0, 0.999997, 0, -0.00260054, 10.4358, 3.75997, -0.0182343)
pixel_size = 0.05
texture = ExtResource("15_jyrsd")
[node name="Debug" type="Node3D" parent="."]
[node name="RandomObjects" type="Node" parent="."]
[node name="DebugCube" type="Node" parent="RandomObjects"]
script = ExtResource("5_rp302")
dir = "res://test/debugCube.tscn"
probability = 0.5
metadata/_custom_type_script = "uid://d3w6uvg5hmphc"
[node name="Nothing" type="Node" parent="RandomObjects"]
script = ExtResource("5_rp302")
dir = "res://Spaceship/Objects/noObject.tscn"
probability = 0.5
metadata/_custom_type_script = "uid://d3w6uvg5hmphc"
[node name="PowerCell2" parent="." instance=ExtResource("2_yje2s")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 29.0044, 1.71881, -21.5441)
[node name="FmodBankLoader" type="FmodBankLoader" parent="."]
bank_paths = ["res://assets/FmodBanks/Desktop/Master.strings.bank", "res://assets/FmodBanks/Desktop/Master.bank", "res://assets/FmodBanks/Desktop/Testing.bank"]
[node name="AouncerVoice" type="FmodEventEmitter3D" parent="."]
event_name = "event:/HullBreached"
event_guid = "{f64916fe-7a2e-48ef-b129-bd76350c6f66}"
attached = false
[node name="PathPivot" type="Node3D" parent="."]
visible = false
[node name="RepairCart" parent="." instance=ExtResource("20_6akxh")]
transform = Transform3D(-0.999883, 0, 0.0152885, 0, 1, 0, -0.0152885, 0, -0.999883, -20.0861, 0.105269, 29.5957)
[node name="RepairCube" parent="." instance=ExtResource("21_ddgy6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -20.3975, 0.48862, 27)
[node name="RepairCube2" parent="." instance=ExtResource("21_ddgy6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -20.3975, 0.48862, 25.9838)
[node name="RepairCube3" parent="." instance=ExtResource("21_ddgy6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -19.342, 0.772745, 26.1866)
[node name="Toolbox" parent="." instance=ExtResource("22_n0f7y")]
transform = Transform3D(0.684, 0, 0.729482, 0, 1, 0, -0.729482, 0, 0.684, -28.8088, 0.0330523, 26.6545)
[node name="PathfindingGridLoader" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -50, 0, -50)
script = ExtResource("22_jidkq")
lengthX = 100
lengthZ = 100
metadata/_custom_type_script = "uid://dmat7wv8ltc8"
[node name="MechSpiderBase" parent="." node_paths=PackedStringArray("player_ref") instance=ExtResource("23_jidkq")]
transform = Transform3D(0.52, 0, 0, 0, 0.52, 0, 0, 0, 0.52, -5.84856, 0, -6.59382)
turn_to_move = null
can_move = null
base_speed = null
decelleration = null
max_speed = null
min_speed = null
pathfindLeniency = null
player_ref = NodePath("../FuelCanister")

View File

@@ -0,0 +1,195 @@
[gd_scene load_steps=31 format=3 uid="uid://k0jpd2sugl7b"]
[ext_resource type="Script" uid="uid://c7ea7hd1t6ucj" path="res://script/spaceship.gd" id="1_gidgt"]
[ext_resource type="Texture2D" uid="uid://cimsjl61nhh5s" path="res://assets/2D/HDR_blue_nebulae-1.hdr" id="2_4sohr"]
[ext_resource type="PackedScene" uid="uid://2y66sfeblm38" path="res://Spaceship/Objects/Grabable/FuelCanister.tscn" id="2_rp302"]
[ext_resource type="PackedScene" uid="uid://yg472lgqdca7" path="res://Spaceship/Objects/Grabable/PowerCell.tscn" id="2_yje2s"]
[ext_resource type="PackedScene" uid="uid://clhhslugpfugs" path="res://Spaceship/Rooms/Starter.tscn" id="3_bs3qb"]
[ext_resource type="Script" uid="uid://d3w6uvg5hmphc" path="res://script/randomObject.gd" id="5_rp302"]
[ext_resource type="PackedScene" uid="uid://dluf007dbq25" path="res://Spaceship/Rooms/storage.tscn" id="5_ttkoc"]
[ext_resource type="PackedScene" uid="uid://ddacwr4hkhu51" path="res://Spaceship/Corridors/CorridorShort.tscn" id="5_wf1j8"]
[ext_resource type="PackedScene" uid="uid://7ycmkl7f4shi" path="res://Spaceship/Rooms/generator.tscn" id="6_yje2s"]
[ext_resource type="PackedScene" uid="uid://coscryni2ckd7" path="res://Spaceship/Corridors/CorridorTTurn.tscn" id="7_l5vk7"]
[ext_resource type="PackedScene" uid="uid://dqqm5nv732hqq" path="res://Spaceship/Corridors/CorridorLTurn.tscn" id="9_4wod1"]
[ext_resource type="PackedScene" uid="uid://c2wd2wxtbgt2h" path="res://Spaceship/Corridors/CorridorFourWay.tscn" id="10_ttkoc"]
[ext_resource type="PackedScene" uid="uid://bsogpm3kf7s1l" path="res://Spaceship/Rooms/control.tscn" id="13_uljtq"]
[ext_resource type="PackedScene" uid="uid://c52lwhaynro5j" path="res://Spaceship/Objects/ControllLever.tscn" id="14_ogiy5"]
[ext_resource type="PackedScene" uid="uid://botctq3i0fq1t" path="res://Spaceship/Rooms/fuel_tank.tscn" id="14_sw4ah"]
[ext_resource type="PackedScene" uid="uid://7p668ibmmx21" path="res://Spaceship/Corridors/CorridorDeadEnd.tscn" id="15_6akxh"]
[ext_resource type="PackedScene" uid="uid://cxijyr4imvpw2" path="res://Spaceship/Corridors/corridor_dead_end_breakable.tscn" id="15_h11mn"]
[ext_resource type="Texture2D" uid="uid://bp5exqkba4hr3" path="res://assets/2D/SteeringMinigame/Spaceship.png" id="15_jyrsd"]
[ext_resource type="PackedScene" uid="uid://cffn8ih6c2oyg" path="res://Spaceship/Objects/repair_cart.tscn" id="20_6akxh"]
[ext_resource type="PackedScene" uid="uid://wo0ikejk0hag" path="res://Spaceship/Objects/Grabable/RepairCube.tscn" id="21_ddgy6"]
[ext_resource type="Script" uid="uid://dmat7wv8ltc8" path="res://script/pathfindingGridLoad.gd" id="22_jidkq"]
[ext_resource type="PackedScene" uid="uid://dsp8is8odlbph" path="res://Spaceship/Objects/Grabable/toolbox.tscn" id="22_n0f7y"]
[sub_resource type="Gradient" id="Gradient_sw4ah"]
interpolation_mode = 1
offsets = PackedFloat32Array(0, 0.25, 0.361502, 0.375, 0.488263, 0.5, 0.615023, 0.625, 0.732394, 0.75, 0.859155, 0.875, 1)
colors = PackedColorArray(0, 0, 0, 1, 0.25, 0.25, 0.25, 1, 0.28169, 0.28169, 0.28169, 1, 0.375, 0.375, 0.375, 1, 0.408451, 0.408451, 0.408451, 1, 0.5, 0.5, 0.5, 1, 0.530516, 0.530516, 0.530516, 1, 0.625, 0.625, 0.625, 1, 0.661972, 0.661972, 0.661972, 1, 0.75, 0.75, 0.75, 1, 0.802817, 0.802817, 0.802817, 1, 0.875, 0.875, 0.875, 1, 1, 1, 1, 1)
metadata/_snap_enabled = true
metadata/_snap_count = 8
[sub_resource type="GradientTexture1D" id="GradientTexture1D_h11mn"]
gradient = SubResource("Gradient_sw4ah")
[sub_resource type="Gradient" id="Gradient_h11mn"]
offsets = PackedFloat32Array(0.187793, 0.704225, 0.929577)
colors = PackedColorArray(0, 0, 0, 1, 0.58042, 0.58042, 0.58042, 1, 0.860369, 0.860369, 0.860369, 1)
[sub_resource type="FastNoiseLite" id="FastNoiseLite_ogiy5"]
frequency = 0.03
fractal_octaves = 8
fractal_lacunarity = 5.0
fractal_gain = 0.495
fractal_weighted_strength = 0.23
domain_warp_enabled = true
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_jyrsd"]
color_ramp = SubResource("Gradient_h11mn")
noise = SubResource("FastNoiseLite_ogiy5")
[sub_resource type="PanoramaSkyMaterial" id="PanoramaSkyMaterial_bs3qb"]
panorama = ExtResource("2_4sohr")
[sub_resource type="Sky" id="Sky_bs3qb"]
sky_material = SubResource("PanoramaSkyMaterial_bs3qb")
[sub_resource type="Environment" id="Environment_ayklm"]
background_mode = 2
sky = SubResource("Sky_bs3qb")
glow_enabled = true
glow_levels/1 = 1.38
glow_levels/2 = 1.55
glow_levels/3 = 5.63
glow_levels/5 = 1.75
glow_levels/6 = 0.9
glow_levels/7 = 0.75
glow_strength = 1.73
glow_mix = 0.03
glow_bloom = 0.05
glow_blend_mode = 4
glow_hdr_luminance_cap = 1.5
glow_map = SubResource("NoiseTexture2D_jyrsd")
volumetric_fog_emission = Color(1, 1, 1, 1)
volumetric_fog_emission_energy = 0.04
adjustment_brightness = 1.5
adjustment_color_correction = SubResource("GradientTexture1D_h11mn")
[node name="Spaceship" type="Node3D" node_paths=PackedStringArray("anouncerVoiceEmitter", "controllRoom", "breakableRoom")]
script = ExtResource("1_gidgt")
anouncerVoiceEmitter = NodePath("AouncerVoice")
controllRoom = NodePath("Rooms/Controll")
breakableRoom = NodePath("Rooms/CorridorDeadEndBreakable2")
[node name="PowerCell" parent="." instance=ExtResource("2_yje2s")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -29.0185, 0.615273, 19.527)
[node name="FuelCanister" parent="." instance=ExtResource("2_rp302")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -28.618, 0.395965, 20.6798)
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_ayklm")
[node name="Rooms" type="Node3D" parent="."]
[node name="CorridorShort" parent="Rooms" node_paths=PackedStringArray("SpaceshipLogicRef") instance=ExtResource("5_wf1j8")]
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 7, 0, 14.01)
SpaceshipLogicRef = NodePath("../..")
[node name="Starter" parent="Rooms" instance=ExtResource("3_bs3qb")]
[node name="Generator" parent="Rooms" instance=ExtResource("6_yje2s")]
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 28.01, 0, -21)
[node name="CorridorTTurn" parent="Rooms" instance=ExtResource("7_l5vk7")]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, -14.01)
[node name="CorridorLTurn" parent="Rooms" instance=ExtResource("9_4wod1")]
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 7, 0, 28.01)
[node name="CorridorFourWay" parent="Rooms" instance=ExtResource("10_ttkoc")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -28.01, 0, 7)
[node name="Controll" parent="Rooms" node_paths=PackedStringArray("controllStick", "SpaceshipLogicRef") instance=ExtResource("13_uljtq")]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -17.5087, 0, -24.5)
controllStick = NodePath("../CorridorDeadEnd/LeverPivot")
SpaceshipLogicRef = NodePath("../..")
[node name="CorridorShort2" parent="Rooms" instance=ExtResource("5_wf1j8")]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -21, 0, -7)
[node name="FuelTank" parent="Rooms" instance=ExtResource("14_sw4ah")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -20.9954, -7, 45.6114)
[node name="CorridorDeadEndBreakable" parent="Rooms" instance=ExtResource("15_h11mn")]
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 24.5, 0, 35)
[node name="CorridorDeadEndBreakable2" parent="Rooms" instance=ExtResource("15_h11mn")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -41.983, 0, -10.4939)
[node name="Storage" parent="Rooms" instance=ExtResource("5_ttkoc")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -24.515, 0, 28.1)
[node name="CorridorTTurn2" parent="Rooms" instance=ExtResource("7_l5vk7")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -35, 0, 7)
[node name="CorridorDeadEnd" parent="Rooms" instance=ExtResource("15_6akxh")]
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, -42.0032, 0, 20.9783)
[node name="LeverPivot" parent="Rooms/CorridorDeadEnd" instance=ExtResource("14_ogiy5")]
transform = Transform3D(4.99998, 0, -0.0130021, 0, 5, 0, 0.0130021, 0, 4.99998, 8.88818, 0.084, -0.0222626)
[node name="Sprite3D" type="Sprite3D" parent="Rooms/CorridorDeadEnd"]
transform = Transform3D(-0.00260054, 0, -0.999997, 0, 1, 0, 0.999997, 0, -0.00260054, 10.4358, 3.75997, -0.0182343)
pixel_size = 0.05
texture = ExtResource("15_jyrsd")
[node name="Debug" type="Node3D" parent="."]
[node name="RandomObjects" type="Node" parent="."]
[node name="DebugCube" type="Node" parent="RandomObjects"]
script = ExtResource("5_rp302")
dir = "res://test/debugCube.tscn"
probability = 0.5
metadata/_custom_type_script = "uid://d3w6uvg5hmphc"
[node name="Nothing" type="Node" parent="RandomObjects"]
script = ExtResource("5_rp302")
dir = "res://Spaceship/Objects/noObject.tscn"
probability = 0.5
metadata/_custom_type_script = "uid://d3w6uvg5hmphc"
[node name="PowerCell2" parent="." instance=ExtResource("2_yje2s")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 29.0044, 1.71881, -21.5441)
[node name="FmodBankLoader" type="FmodBankLoader" parent="."]
bank_paths = ["res://assets/FmodBanks/Desktop/Master.strings.bank", "res://assets/FmodBanks/Desktop/Master.bank", "res://assets/FmodBanks/Desktop/Testing.bank"]
[node name="AouncerVoice" type="FmodEventEmitter3D" parent="."]
event_name = "event:/HullBreached"
event_guid = "{f64916fe-7a2e-48ef-b129-bd76350c6f66}"
attached = false
[node name="RepairCart" parent="." instance=ExtResource("20_6akxh")]
transform = Transform3D(-0.999883, 0, 0.0152885, 0, 1, 0, -0.0152885, 0, -0.999883, -20.0861, 0.105269, 29.5957)
[node name="RepairCube" parent="." instance=ExtResource("21_ddgy6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -20.3975, 0.48862, 27)
[node name="RepairCube2" parent="." instance=ExtResource("21_ddgy6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -20.3975, 0.48862, 25.9838)
[node name="RepairCube3" parent="." instance=ExtResource("21_ddgy6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -19.342, 0.772745, 26.1866)
[node name="Toolbox" parent="." instance=ExtResource("22_n0f7y")]
transform = Transform3D(0.684, 0, 0.729482, 0, 1, 0, -0.729482, 0, 0.684, -28.8088, 0.0330523, 26.6545)
[node name="PathfindingGridLoader" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -50, 0, -50)
script = ExtResource("22_jidkq")
lengthX = 100
lengthZ = 100
metadata/_custom_type_script = "uid://dmat7wv8ltc8"

118
scene/main.tscn Normal file
View File

@@ -0,0 +1,118 @@
[gd_scene load_steps=10 format=3 uid="uid://c240icwf4uov8"]
[ext_resource type="Script" uid="uid://b4avd5n3wv18p" path="res://script/main.gd" id="1"]
[ext_resource type="PackedScene" uid="uid://e5txgsvnchha" path="res://scene/mainmenu.tscn" id="2_v0l8b"]
[ext_resource type="PackedScene" uid="uid://mv0dgwdlha3m" path="res://actors/Player/Hud.tscn" id="5_0ha60"]
[ext_resource type="PackedScene" uid="uid://c7i4riys4l3py" path="res://scene/MapScreen.tscn" id="5_p1hux"]
[ext_resource type="PackedScene" uid="uid://d1dplm1rdcx1h" path="res://scene/settingsmenu.tscn" id="6_4j5ol"]
[ext_resource type="PackedScene" uid="uid://cwxq3udib6v5f" path="res://scene/LoadingScreen.tscn" id="7_b5f6u"]
[ext_resource type="PackedScene" uid="uid://xxv8k4pe68oo" path="res://scene/missionEndScreen.tscn" id="7_of57s"]
[ext_resource type="PackedScene" uid="uid://c3cjtslhed2oc" path="res://scene/pausemenu.tscn" id="8_of57s"]
[sub_resource type="AudioStreamGenerator" id="AudioStreamGenerator_0ha60"]
buffer_length = 0.1
[node name="Main" type="Control"]
process_mode = 3
clip_contents = true
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
size_flags_vertical = 3
mouse_filter = 2
script = ExtResource("1")
metadata/_edit_horizontal_guides_ = [-61.0]
[node name="Dialogs" type="Node" parent="."]
[node name="DisconnectDialog" type="AcceptDialog" parent="Dialogs"]
title = "Server connection:"
dialog_text = "Connection closed"
[node name="InviteCodeDialog" type="AcceptDialog" parent="Dialogs"]
auto_translate_mode = 1
title = "Lobby code:"
initial_position = 2
size = Vector2i(158, 100)
dialog_text = "Error"
[node name="JoinGameDialog" type="AcceptDialog" parent="Dialogs"]
auto_translate_mode = 1
title = "Logging in..."
initial_position = 2
size = Vector2i(158, 100)
dialog_text = "Error"
[node name="ErrorDialog" type="AcceptDialog" parent="Dialogs"]
auto_translate_mode = 1
title = "Logging in..."
initial_position = 2
size = Vector2i(158, 100)
dialog_text = "Error"
[node name="Settingsmenu" parent="." instance=ExtResource("6_4j5ol")]
unique_name_in_owner = true
visible = false
layout_mode = 1
focus_mode = 2
focus_behavior_recursive = 2
mouse_filter = 1
[node name="Mainmenu" parent="." instance=ExtResource("2_v0l8b")]
unique_name_in_owner = true
layout_mode = 1
focus_mode = 2
focus_behavior_recursive = 2
mouse_filter = 1
[node name="Pausemenu" parent="." instance=ExtResource("8_of57s")]
unique_name_in_owner = true
visible = false
layout_mode = 1
focus_behavior_recursive = 2
mouse_filter = 1
[node name="MapScreen" parent="." instance=ExtResource("5_p1hux")]
visible = false
modulate = Color(1, 1, 1, 0.69803923)
layout_mode = 1
focus_mode = 2
focus_behavior_recursive = 2
[node name="MissionEndScreen" parent="." instance=ExtResource("7_of57s")]
visible = false
layout_mode = 1
[node name="LoadingScreen" parent="." instance=ExtResource("7_b5f6u")]
visible = false
layout_mode = 1
focus_mode = 2
focus_behavior_recursive = 2
mouse_filter = 2
[node name="Hud" parent="." instance=ExtResource("5_0ha60")]
visible = false
layout_mode = 1
focus_mode = 2
focus_behavior_recursive = 2
mouse_filter = 2
[node name="Maps" type="Node3D" parent="."]
[node name="Players" type="Node3D" parent="."]
[node name="Spectators" type="Node3D" parent="."]
[node name="MapSpawner" type="MultiplayerSpawner" parent="."]
_spawnable_scenes = PackedStringArray("uid://bco4seshb8fjf", "uid://k0jpd2sugl7b")
[node name="PlayerSpawner" type="MultiplayerSpawner" parent="."]
_spawnable_scenes = PackedStringArray("uid://rvvjguhqjtpb")
spawn_path = NodePath("../Players")
[node name="VoiceLoopback" type="AudioStreamPlayer" parent="."]
stream = SubResource("AudioStreamGenerator_0ha60")

142
scene/mainmenu.tscn Normal file
View File

@@ -0,0 +1,142 @@
[gd_scene load_steps=4 format=3 uid="uid://e5txgsvnchha"]
[ext_resource type="Script" uid="uid://dfqkj3vcm3a84" path="res://script/mainmenu.gd" id="1_0khfh"]
[sub_resource type="Gradient" id="Gradient_qajsf"]
colors = PackedColorArray(0, 0, 0, 1, 0, 0, 0, 1)
[sub_resource type="GradientTexture2D" id="GradientTexture2D_sp1j3"]
gradient = SubResource("Gradient_qajsf")
width = 32
height = 32
fill_to = Vector2(1, 1)
[node name="Mainmenu" type="Control"]
z_index = 4
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_0khfh")
[node name="Menu" type="Panel" parent="."]
process_mode = 3
layout_mode = 0
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
focus_mode = 2
[node name="MarginContainer" type="MarginContainer" parent="Menu"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 50
theme_override_constants/margin_top = 50
theme_override_constants/margin_right = 50
theme_override_constants/margin_bottom = 50
[node name="VBoxContainer" type="VBoxContainer" parent="Menu/MarginContainer"]
layout_mode = 2
[node name="HBoxContainer4" type="HBoxContainer" parent="Menu/MarginContainer/VBoxContainer"]
layout_mode = 2
[node name="VBoxContainer" type="VBoxContainer" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer4"]
custom_minimum_size = Vector2(32, 32)
layout_mode = 2
[node name="ProfileSprite" type="Sprite2D" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer4/VBoxContainer"]
unique_name_in_owner = true
texture = SubResource("GradientTexture2D_sp1j3")
centered = false
[node name="VBoxContainer2" type="VBoxContainer" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer4"]
layout_mode = 2
size_flags_horizontal = 3
[node name="NameEdit" type="LineEdit" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer4/VBoxContainer2"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_stretch_ratio = 2.0
max_length = 16
editable = false
[node name="VBoxContainer3" type="VBoxContainer" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer4"]
layout_mode = 2
[node name="Start" type="Button" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer4/VBoxContainer3"]
process_mode = 3
layout_mode = 2
disabled = true
text = "Create Game"
[node name="HBoxContainer" type="HBoxContainer" parent="Menu/MarginContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
[node name="VBoxMultiplayerDisabled" type="VBoxContainer" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer"]
visible = false
layout_mode = 2
size_flags_horizontal = 3
[node name="Label" type="Label" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer/VBoxMultiplayerDisabled"]
layout_mode = 2
text = "Global Lobbies"
[node name="ColorRect" type="ColorRect" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer/VBoxMultiplayerDisabled"]
layout_mode = 2
size_flags_vertical = 3
color = Color(0.129412, 0.129412, 0.129412, 1)
[node name="Label" type="Label" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer/VBoxMultiplayerDisabled/ColorRect"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -20.0
offset_top = -11.5
offset_right = 20.0
offset_bottom = 11.5
grow_horizontal = 2
grow_vertical = 2
text = "Please start Steam to enable multiplayer mode.
Connections via LAN and join codes are currently disable / not implemented. "
horizontal_alignment = 1
[node name="RefreshLobbies2" type="Button" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer/VBoxMultiplayerDisabled"]
layout_mode = 2
focus_mode = 0
disabled = true
text = "Refresh"
[node name="VBoxLobbylist" type="VBoxContainer" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Label" type="Label" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer/VBoxLobbylist"]
layout_mode = 2
text = "Global Lobbies"
[node name="ItemList" type="ItemList" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer/VBoxLobbylist"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
same_column_width = true
[node name="RefreshLobbies" type="Button" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer/VBoxLobbylist"]
layout_mode = 2
text = "Refresh"
[connection signal="pressed" from="Menu/MarginContainer/VBoxContainer/HBoxContainer4/VBoxContainer3/Start" to="." method="on_start_pressed"]
[connection signal="pressed" from="Menu/MarginContainer/VBoxContainer/HBoxContainer/VBoxMultiplayerDisabled/RefreshLobbies2" to="." method="on_refresh_lobbies_pressed"]
[connection signal="item_activated" from="Menu/MarginContainer/VBoxContainer/HBoxContainer/VBoxLobbylist/ItemList" to="." method="on_lobby_list_item_activated"]
[connection signal="pressed" from="Menu/MarginContainer/VBoxContainer/HBoxContainer/VBoxLobbylist/RefreshLobbies" to="." method="on_refresh_lobbies_pressed"]

View File

@@ -0,0 +1,18 @@
[gd_scene load_steps=4 format=3 uid="uid://dwa766yx7axly"]
[ext_resource type="Texture2D" uid="uid://cub0eem47ktoj" path="res://assets/2D/SteeringMinigame/Astroid.png" id="1_x4x3j"]
[ext_resource type="Script" uid="uid://bdt2b0lde2vqk" path="res://scene/minigames/steering/astroid.gd" id="2_x64bv"]
[sub_resource type="CircleShape2D" id="CircleShape2D_x4x3j"]
radius = 21.2132
[node name="Astroid" type="Sprite2D"]
texture = ExtResource("1_x4x3j")
script = ExtResource("2_x64bv")
[node name="Area2D" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource("CircleShape2D_x4x3j")
[connection signal="area_entered" from="Area2D" to="." method="_on_area_2d_area_entered"]

View File

@@ -0,0 +1,41 @@
[gd_scene load_steps=6 format=3 uid="uid://c1sjec311te5h"]
[ext_resource type="Script" uid="uid://ew8vld54loog" path="res://scene/minigames/steering/steering_minigame.gd" id="1_fjh6l"]
[ext_resource type="Texture2D" uid="uid://bhdmujkbbyti6" path="res://assets/2D/SteeringMinigame/SpacyBackground.png" id="2_2gwot"]
[ext_resource type="Texture2D" uid="uid://bp5exqkba4hr3" path="res://assets/2D/SteeringMinigame/Spaceship.png" id="3_2gwot"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2gwot"]
size = Vector2(20, 24)
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_2gwot"]
properties/0/path = NodePath("Spaceship:position")
properties/0/spawn = true
properties/0/replication_mode = 1
[node name="SteeringMinigame" type="Node2D"]
script = ExtResource("1_fjh6l")
[node name="background1" type="Sprite2D" parent="."]
position = Vector2(0, -511)
texture = ExtResource("2_2gwot")
offset = Vector2(128, 256)
flip_h = true
[node name="background2" type="Sprite2D" parent="."]
texture = ExtResource("2_2gwot")
offset = Vector2(128, 256)
[node name="Spaceship" type="Sprite2D" parent="."]
position = Vector2(128, 400)
texture = ExtResource("3_2gwot")
[node name="Area2D" type="Area2D" parent="Spaceship"]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Spaceship/Area2D"]
position = Vector2(0, 4)
shape = SubResource("RectangleShape2D_2gwot")
[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."]
replication_config = SubResource("SceneReplicationConfig_2gwot")
[connection signal="area_entered" from="Spaceship/Area2D" to="." method="_on_area_2d_area_entered"]

View File

@@ -0,0 +1,15 @@
extends Sprite2D
var speed: float = 50.0
var rotationSpeed: float = PI/8
func _process(delta: float) -> void:
if position.y > 600:
queue_free()
position.y += delta * speed
rotation +=delta * rotationSpeed
func _on_area_2d_area_entered(_area: Area2D) -> void:
queue_free()

View File

@@ -0,0 +1 @@
uid://bdt2b0lde2vqk

View File

@@ -0,0 +1,101 @@
extends Node2D
@onready var background1 = $background1
@onready var background2 = $background2
@onready var spaceship = $Spaceship
@onready var spaceshipHitbox = $Spaceship/Area2D
@onready var astroid = preload("res://scene/minigames/steering/Astroid.tscn")
@export var shipLogicRef: ShipLogic
var controllStick: Node3D
var controllStickGoalPos: float = 0.0
const CONTROLL_STICK_SNAPBACK: float = 24
var idleMoveAmplitude: float = 15
var timePassed: float = 0
var astroidTimer: float = 0
var scrollSpeed: float = 8.5 #Pixels per seccond
signal collision
const POS_LEFT = 64
const POS_MIDDLE = 128
const POS_RIGHT = 192
var starshipGoalPos: int = 1
const starshipHorizontalSpeed: float = 56
var rng = RandomNumberGenerator.new()
var active: bool = false
func _process(delta: float) -> void:
timePassed += delta
astroidTimer += delta
background1.position.y += scrollSpeed * delta
background2.position.y += scrollSpeed * delta
spaceship.position.y += idleMoveAmplitude * sin(timePassed)*delta
if controllStick:
controllStick.rotation_degrees.x = move_toward(controllStick.rotation_degrees.x,controllStickGoalPos,delta*CONTROLL_STICK_SNAPBACK)
if abs(controllStick.rotation_degrees.x) > 15:
controllStickGoalPos = 0
if astroidTimer >= 90:
astroidTimer = rng.randf_range(0,20)
var astroidCounter = 0
if rng.randf() > 0.5:
spawnAstroid(POS_LEFT)
astroidCounter += 1
if rng.randf() > 0.5:
spawnAstroid(POS_MIDDLE)
astroidCounter += 1
if rng.randf() > 0.5 and astroidCounter < 2:
spawnAstroid(POS_RIGHT)
infiniteScroll(background1)
infiniteScroll(background2)
spaceship.position.x = move_toward(spaceship.position.x,goalPosToPos(),starshipHorizontalSpeed*delta)
if active:
if Input.is_action_just_pressed("moveLeft"):
starshipGoalPos = clamp(starshipGoalPos-1,0,2)
if controllStick:
controllStickGoalPos = -16
if Input.is_action_just_pressed("moveRight"):
starshipGoalPos = clamp(starshipGoalPos+1,0,2)
if controllStick:
controllStickGoalPos = 16
if Input.is_action_just_pressed("interact") or Input.is_action_just_pressed("moveDown"):
active = false
func goalPosToPos() -> float:
match starshipGoalPos:
0:
return POS_LEFT
1:
return POS_MIDDLE
2:
return POS_RIGHT
return POS_MIDDLE
func activate() -> void:
active = true
func infiniteScroll(sprite: Sprite2D):
if sprite.position.y >=511:
sprite.position.y = -511
func spawnAstroid(Xpos: float):
var instance = astroid.instantiate()
add_child(instance)
instance.position = Vector2(Xpos,-10)
instance.speed = rng.randf_range(3,9)
instance.rotationSpeed = PI/16
func _on_area_2d_area_entered(_area: Area2D) -> void:
collision.emit()

View File

@@ -0,0 +1 @@
uid://ew8vld54loog

View File

@@ -0,0 +1,32 @@
[gd_scene load_steps=3 format=3 uid="uid://xxv8k4pe68oo"]
[ext_resource type="Script" uid="uid://c6sryrvdtdvk4" path="res://script/mission_end_screen.gd" id="1_4car4"]
[sub_resource type="LabelSettings" id="LabelSettings_ahhjv"]
font_size = 80
outline_size = 20
outline_color = Color(0, 0, 0, 1)
[node name="MissionEndScreen" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_4car4")
[node name="Label" type="Label" parent="."]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -0.5
offset_top = -55.0
offset_right = 0.5
offset_bottom = 55.0
grow_horizontal = 2
grow_vertical = 2
label_settings = SubResource("LabelSettings_ahhjv")

66
scene/pausemenu.tscn Normal file
View File

@@ -0,0 +1,66 @@
[gd_scene load_steps=2 format=3 uid="uid://c3cjtslhed2oc"]
[ext_resource type="Script" uid="uid://2niwcxdyq213" path="res://script/pausemenu.gd" id="1_qajsf"]
[node name="Pausemenu" type="Control"]
z_index = 4
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
focus_mode = 2
script = ExtResource("1_qajsf")
[node name="Menu" type="Panel" parent="."]
process_mode = 3
layout_mode = 0
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
focus_mode = 2
[node name="MarginContainer" type="MarginContainer" parent="Menu"]
layout_mode = 1
anchors_preset = 13
anchor_left = 0.5
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -127.0
offset_right = 127.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 50
theme_override_constants/margin_top = 50
theme_override_constants/margin_right = 50
theme_override_constants/margin_bottom = 50
[node name="VBoxCurrentLobby" type="VBoxContainer" parent="Menu/MarginContainer"]
custom_minimum_size = Vector2(500, 0)
layout_mode = 2
size_flags_horizontal = 3
[node name="CurrentLobbyLabel" type="Label" parent="Menu/MarginContainer/VBoxCurrentLobby"]
layout_mode = 2
text = "Current Lobby"
[node name="LobbyMemberList" type="ItemList" parent="Menu/MarginContainer/VBoxCurrentLobby"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
same_column_width = true
[node name="Settings" type="Button" parent="Menu/MarginContainer/VBoxCurrentLobby"]
layout_mode = 2
text = "Settings"
[node name="Disconnect" type="Button" parent="Menu/MarginContainer/VBoxCurrentLobby"]
process_mode = 3
layout_mode = 2
text = "Disconnect"
[connection signal="item_activated" from="Menu/MarginContainer/VBoxCurrentLobby/LobbyMemberList" to="." method="on_lobby_member_list_item_activated"]
[connection signal="pressed" from="Menu/MarginContainer/VBoxCurrentLobby/Settings" to="." method="_on_settings_pressed"]
[connection signal="pressed" from="Menu/MarginContainer/VBoxCurrentLobby/Disconnect" to="." method="on_disconnect_pressed"]

97
scene/settingsmenu.tscn Normal file
View File

@@ -0,0 +1,97 @@
[gd_scene load_steps=5 format=3 uid="uid://d1dplm1rdcx1h"]
[ext_resource type="Script" uid="uid://bsteyp1ndegj" path="res://script/settingsmenu.gd" id="1_wd8vk"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_msc0b"]
bg_color = Color(0.261456, 0.366432, 0.498267, 1)
[sub_resource type="LabelSettings" id="LabelSettings_gxfgb"]
font_size = 18
[sub_resource type="StyleBoxLine" id="StyleBoxLine_wd8vk"]
[node name="Settings" type="Control"]
z_index = 5
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_wd8vk")
[node name="Panel" type="Panel" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_msc0b")
[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 0
[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer"]
layout_mode = 2
mouse_filter = 0
theme_override_constants/margin_left = 5
theme_override_constants/margin_top = 5
theme_override_constants/margin_right = 5
theme_override_constants/margin_bottom = 5
[node name="Label" type="Label" parent="VBoxContainer/MarginContainer"]
layout_mode = 2
text = "Settings Menu"
label_settings = SubResource("LabelSettings_gxfgb")
[node name="HSeparator" type="HSeparator" parent="VBoxContainer"]
layout_mode = 2
theme_override_styles/separator = SubResource("StyleBoxLine_wd8vk")
[node name="MarginContainer2" type="MarginContainer" parent="VBoxContainer"]
layout_mode = 2
mouse_filter = 0
theme_override_constants/margin_left = 5
theme_override_constants/margin_top = 5
theme_override_constants/margin_right = 5
theme_override_constants/margin_bottom = 5
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/MarginContainer2"]
layout_mode = 2
size_flags_vertical = 3
[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/MarginContainer2/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Leave" type="Button" parent="VBoxContainer/MarginContainer2/HBoxContainer/VBoxContainer"]
layout_mode = 2
text = "Leave Setting
"
[node name="Quit" type="Button" parent="VBoxContainer/MarginContainer2/HBoxContainer/VBoxContainer"]
layout_mode = 2
text = "Quit Game
"
[node name="VBoxContainer2" type="VBoxContainer" parent="VBoxContainer/MarginContainer2/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="VBoxContainer3" type="VBoxContainer" parent="VBoxContainer/MarginContainer2/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="VBoxContainer4" type="VBoxContainer" parent="VBoxContainer/MarginContainer2/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
[connection signal="pressed" from="VBoxContainer/MarginContainer2/HBoxContainer/VBoxContainer/Leave" to="." method="_on_leave_pressed"]
[connection signal="pressed" from="VBoxContainer/MarginContainer2/HBoxContainer/VBoxContainer/Quit" to="." method="_on_quit_pressed"]