super_space_game/scenes/ground.tscn

542 lines
17 KiB
Text
Raw Normal View History

[gd_scene load_steps=37 format=3 uid="uid://by43ihcec8e8q"]
[ext_resource type="Script" uid="uid://b2sw6ymaf4t0s" path="res://scripts/game_ground.gd" id="1_6ra5r"]
[ext_resource type="Script" uid="uid://dowu512otgyyf" path="res://scripts/player_ground.gd" id="3_8gbjj"]
2025-12-07 19:29:07 +00:00
[ext_resource type="AudioStream" uid="uid://cwidt34ehvre4" path="res://sounds/ui_select.mp3" id="3_26mqe"]
[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"]
2025-12-07 00:33:42 +00:00
[ext_resource type="Texture2D" uid="uid://csrlh1sbdroud" path="res://textures/pistol.png" id="5_8gbjj"]
[ext_resource type="AudioStream" uid="uid://5x8fl2mk082h" path="res://sounds/gunshot_1.mp3" id="6_2c1ag"]
[ext_resource type="Texture2D" uid="uid://coflscl1w4vtr" path="res://textures/crosshair.png" id="7_modao"]
[ext_resource type="Shader" uid="uid://d3hoh7ec2w8q7" path="res://scripts/outline.gdshader" id="7_vuhkc"]
2025-12-06 19:33:22 +00:00
[ext_resource type="Shader" uid="uid://d2e0541hawkml" path="res://scripts/vignette.gdshader" id="9_5vwr8"]
[ext_resource type="Shader" uid="uid://bk7q00br1ms30" path="res://scripts/retro.gdshader" id="9_257nh"]
[ext_resource type="PackedScene" uid="uid://bav8ogrhgycaw" path="res://scenes/alertness_marker.tscn" id="9_hby33"]
[ext_resource type="Script" uid="uid://s7dwusi00l3v" path="res://scripts/alertness_marker.gd" id="10_e3s4u"]
2025-12-07 03:06:34 +00:00
[ext_resource type="Texture2D" uid="uid://cwa4uu7hrw2l0" path="res://textures/save_indicator.png" id="13_176r3"]
[ext_resource type="PackedScene" uid="uid://b6bq2viqao61m" path="res://scenes/pause_menu.tscn" id="14_vuhkc"]
[ext_resource type="Texture2D" uid="uid://dauoebs801ngm" path="res://addons/super_awesome_input_icons/textures/keyboard/question.png" id="16_e3s4u"]
2025-12-03 04:56:00 +00:00
[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://behjlujs230r2" path="res://scenes/mission_objectives.tscn" id="18_e3s4u"]
2025-12-04 03:30:37 +00:00
[ext_resource type="PackedScene" uid="uid://dhcfrsf726k68" path="res://scenes/dialogue_select_button.tscn" id="19_qqas2"]
[sub_resource type="AtlasTexture" id="AtlasTexture_jo68p"]
atlas = ExtResource("4_2c1ag")
region = Rect2(0, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_6gpfv"]
atlas = ExtResource("4_2c1ag")
region = Rect2(64, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_fd1o3"]
atlas = ExtResource("4_2c1ag")
region = Rect2(192, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_yqhs4"]
atlas = ExtResource("4_2c1ag")
region = Rect2(128, 0, 64, 64)
[sub_resource type="SpriteFrames" id="SpriteFrames_aergo"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_jo68p")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6gpfv")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fd1o3")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_yqhs4")
}],
"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_6gpfv")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_jo68p")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fd1o3")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_yqhs4")
}],
"loop": true,
"name": &"walk",
"speed": 7.0
}]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_176r3"]
radius = 21.0
height = 48.0
2025-12-07 00:33:42 +00:00
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_8gbjj"]
height = 94.0
2025-12-06 19:33:22 +00:00
[sub_resource type="ShaderMaterial" id="ShaderMaterial_8gbjj"]
shader = ExtResource("9_5vwr8")
shader_parameter/radius = 1.0
shader_parameter/softness = 1.0
shader_parameter/intensity = 2.0
shader_parameter/contrast = 2.2
shader_parameter/vignette_color = Color(0, 0, 0, 1)
[sub_resource type="LabelSettings" id="LabelSettings_5vwr8"]
2025-12-04 03:30:37 +00:00
font_size = 32
2025-12-06 22:53:47 +00:00
outline_size = 4
outline_color = Color(0, 0, 0, 1)
[sub_resource type="ShaderMaterial" id="ShaderMaterial_jo68p"]
shader = ExtResource("7_vuhkc")
shader_parameter/color = Color(0, 0, 0, 1)
shader_parameter/width = 2.000000095
shader_parameter/pattern = 0
shader_parameter/inside = false
shader_parameter/add_margins = true
2025-12-04 03:30:37 +00:00
[sub_resource type="LabelSettings" id="LabelSettings_c2suo"]
font_size = 48
outline_size = 4
outline_color = Color(0, 0, 0, 1)
[sub_resource type="LabelSettings" id="LabelSettings_176r3"]
font_size = 32
outline_size = 4
outline_color = Color(0, 0, 0, 1)
2025-12-07 03:06:34 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_vuhkc"]
atlas = ExtResource("13_176r3")
region = Rect2(0, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_26mqe"]
atlas = ExtResource("13_176r3")
region = Rect2(16, 0, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_257nh"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_vuhkc")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_26mqe")
}],
"loop": true,
"name": &"default",
"speed": 2.0
}]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_ypt7u"]
shader = ExtResource("9_257nh")
shader_parameter/shake = 0.002000000095
shader_parameter/noiseQuality = 250.0
shader_parameter/noiseIntensity = 0.0010000000475
shader_parameter/offsetIntensity = 0.0
shader_parameter/colorOffsetIntensity = 0.10000000149012
shader_parameter/pixelSize = 1024.0
shader_parameter/grainIntensity = 0.04
shader_parameter/use_overlay = true
shader_parameter/use_lens_distortion = true
shader_parameter/overlay_color = Color(1, 1, 1, 10)
shader_parameter/lens_distortion_strength = 0.0
[sub_resource type="Environment" id="Environment_wky5g"]
[node name="Ground" type="Node2D"]
y_sort_enabled = true
script = ExtResource("1_6ra5r")
[node name="Dialogue" type="AudioStreamPlayer" parent="."]
2025-12-07 19:29:07 +00:00
process_mode = 3
stream = ExtResource("3_rncil")
bus = &"Sound Effects"
2025-12-07 19:29:07 +00:00
[node name="UiSelect" type="AudioStreamPlayer" parent="."]
process_mode = 3
stream = ExtResource("3_26mqe")
bus = &"Sound Effects"
2025-12-07 19:29:07 +00:00
[node name="PlayerGround" type="CharacterBody2D" parent="."]
position = Vector2(349, -58)
script = ExtResource("3_8gbjj")
[node name="Sprite" type="AnimatedSprite2D" parent="PlayerGround"]
scale = Vector2(2, 2)
sprite_frames = SubResource("SpriteFrames_aergo")
[node name="Camera" type="Camera2D" parent="PlayerGround"]
position_smoothing_enabled = true
[node name="CollisionShape" type="CollisionShape2D" parent="PlayerGround"]
position = Vector2(0, 40)
shape = SubResource("CapsuleShape2D_176r3")
2025-12-07 00:33:42 +00:00
[node name="HeldItem" type="Node2D" parent="PlayerGround"]
[node name="Cast" type="RayCast2D" parent="PlayerGround/HeldItem"]
target_position = Vector2(2048, 0)
collision_mask = 2
collide_with_areas = true
[node name="Sprite" type="Sprite2D" parent="PlayerGround/HeldItem"]
position = Vector2(56, 0)
texture = ExtResource("5_8gbjj")
[node name="Gunshot" type="AudioStreamPlayer2D" parent="PlayerGround/HeldItem"]
stream = ExtResource("6_2c1ag")
[node name="Crosshair" type="Sprite2D" parent="PlayerGround/HeldItem"]
2025-12-07 00:33:42 +00:00
scale = Vector2(2, 2)
texture = ExtResource("7_modao")
2025-12-07 00:33:42 +00:00
[node name="Line" type="Line2D" parent="PlayerGround/HeldItem"]
points = PackedVector2Array(0, 0, 512, 0)
width = 2.0
default_color = Color(1, 0, 0, 1)
2025-12-07 00:33:42 +00:00
[node name="Hitbox" type="Area2D" parent="PlayerGround"]
2025-12-07 00:33:42 +00:00
collision_layer = 2
collision_mask = 2
[node name="CollisionShape" type="CollisionShape2D" parent="PlayerGround/Hitbox"]
2025-12-07 00:33:42 +00:00
shape = SubResource("CapsuleShape2D_8gbjj")
debug_color = Color(1, 0, 0, 0.41960785)
[node name="AlertnessMarker" parent="PlayerGround" instance=ExtResource("9_hby33")]
script = ExtResource("10_e3s4u")
[node name="UI" type="CanvasLayer" parent="."]
2025-12-06 19:33:22 +00:00
[node name="Vignette" type="ColorRect" parent="UI"]
material = SubResource("ShaderMaterial_8gbjj")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
color = Color(1, 1, 1, 0)
[node name="Control" type="Control" parent="UI"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
2025-12-04 03:30:37 +00:00
[node name="Dialogue" type="HFlowContainer" parent="UI/Control"]
custom_minimum_size = Vector2(640, 0)
layout_mode = 1
anchors_preset = 12
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = -46.0
grow_horizontal = 2
grow_vertical = 0
alignment = 1
[node name="Label" type="Label" parent="UI/Control/Dialogue"]
layout_mode = 2
2025-12-06 19:33:22 +00:00
size_flags_horizontal = 3
2025-12-04 03:30:37 +00:00
text = "How may I help you?"
2025-12-06 19:33:22 +00:00
label_settings = SubResource("LabelSettings_5vwr8")
2025-12-04 03:30:37 +00:00
vertical_alignment = 2
2025-12-06 19:33:22 +00:00
autowrap_mode = 3
2025-12-04 03:30:37 +00:00
[node name="InputIcon" type="VFlowContainer" parent="UI/Control/Dialogue"]
layout_mode = 2
alignment = 1
[node name="InputIcon" type="TextureRect" parent="UI/Control/Dialogue/InputIcon"]
material = SubResource("ShaderMaterial_jo68p")
2025-12-06 19:33:22 +00:00
custom_minimum_size = Vector2(48, 48)
2025-12-04 03:30:37 +00:00
layout_mode = 2
texture = ExtResource("16_e3s4u")
expand_mode = 2
script = ExtResource("16_hby33")
action_name = "dialogue_continue"
[node name="Interact" type="HFlowContainer" parent="UI/Control"]
layout_mode = 1
anchors_preset = 14
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
grow_horizontal = 2
grow_vertical = 2
alignment = 1
[node name="Start" type="Label" parent="UI/Control/Interact"]
layout_mode = 2
text = "PRESS"
label_settings = SubResource("LabelSettings_c2suo")
2025-12-03 04:56:00 +00:00
[node name="InputIcon" type="TextureRect" parent="UI/Control/Interact"]
material = SubResource("ShaderMaterial_jo68p")
custom_minimum_size = Vector2(64, 64)
layout_mode = 2
texture = ExtResource("16_e3s4u")
expand_mode = 2
script = ExtResource("16_hby33")
2025-12-03 04:56:00 +00:00
action_name = "interact"
[node name="End" type="Label" parent="UI/Control/Interact"]
layout_mode = 2
text = "TO INTERACT"
label_settings = SubResource("LabelSettings_c2suo")
[node name="MoveTutorial" type="HFlowContainer" parent="UI/Control"]
visible = false
modulate = Color(1, 1, 1, 0.53333336)
layout_mode = 1
anchors_preset = -1
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_bottom = -245.0
grow_horizontal = 2
grow_vertical = 2
alignment = 1
[node name="End2" type="Label" parent="UI/Control/MoveTutorial"]
layout_mode = 2
text = "MOVE"
label_settings = SubResource("LabelSettings_176r3")
[node name="InputIconTextureRect" type="TextureRect" parent="UI/Control/MoveTutorial"]
custom_minimum_size = Vector2(64, 64)
layout_mode = 2
texture = ExtResource("16_e3s4u")
expand_mode = 1
script = ExtResource("16_hby33")
action_name = "ground_up"
metadata/_custom_type_script = "uid://b2maxk5g6yb0i"
[node name="InputIconTextureRect2" type="TextureRect" parent="UI/Control/MoveTutorial"]
custom_minimum_size = Vector2(64, 64)
layout_mode = 2
texture = ExtResource("16_e3s4u")
expand_mode = 1
script = ExtResource("16_hby33")
action_name = "ground_down"
metadata/_custom_type_script = "uid://b2maxk5g6yb0i"
[node name="InputIconTextureRect3" type="TextureRect" parent="UI/Control/MoveTutorial"]
custom_minimum_size = Vector2(64, 64)
layout_mode = 2
texture = ExtResource("16_e3s4u")
expand_mode = 1
script = ExtResource("16_hby33")
action_name = "ground_left"
metadata/_custom_type_script = "uid://b2maxk5g6yb0i"
[node name="InputIconTextureRect4" type="TextureRect" parent="UI/Control/MoveTutorial"]
custom_minimum_size = Vector2(64, 64)
layout_mode = 2
texture = ExtResource("16_e3s4u")
expand_mode = 1
script = ExtResource("16_hby33")
action_name = "ground_right"
metadata/_custom_type_script = "uid://b2maxk5g6yb0i"
[node name="UnholsterTutorial" type="HFlowContainer" parent="UI/Control"]
visible = false
modulate = Color(1, 1, 1, 0.53333336)
layout_mode = 1
anchors_preset = -1
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_bottom = -245.0
grow_horizontal = 2
grow_vertical = 2
alignment = 1
[node name="End2" type="Label" parent="UI/Control/UnholsterTutorial"]
layout_mode = 2
text = "TOGGLE WEAPON"
label_settings = SubResource("LabelSettings_176r3")
[node name="InputIconTextureRect" type="TextureRect" parent="UI/Control/UnholsterTutorial"]
custom_minimum_size = Vector2(64, 64)
layout_mode = 2
texture = ExtResource("16_e3s4u")
expand_mode = 1
script = ExtResource("16_hby33")
action_name = "toggle_holster"
metadata/_custom_type_script = "uid://b2maxk5g6yb0i"
[node name="GunTutorial" type="HFlowContainer" parent="UI/Control"]
visible = false
modulate = Color(1, 1, 1, 0.53333336)
layout_mode = 1
anchors_preset = -1
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_bottom = -245.0
grow_horizontal = 2
grow_vertical = 2
alignment = 1
[node name="End2" type="Label" parent="UI/Control/GunTutorial"]
layout_mode = 2
text = "FIRE"
label_settings = SubResource("LabelSettings_176r3")
[node name="InputIconTextureRect" type="TextureRect" parent="UI/Control/GunTutorial"]
custom_minimum_size = Vector2(64, 64)
layout_mode = 2
texture = ExtResource("16_e3s4u")
expand_mode = 1
script = ExtResource("16_hby33")
action_name = "fire"
metadata/_custom_type_script = "uid://b2maxk5g6yb0i"
[node name="End3" type="Label" parent="UI/Control/GunTutorial"]
layout_mode = 2
text = " | AIM"
label_settings = SubResource("LabelSettings_176r3")
[node name="InputIconTextureRect5" type="TextureRect" parent="UI/Control/GunTutorial"]
custom_minimum_size = Vector2(64, 64)
layout_mode = 2
texture = ExtResource("16_e3s4u")
expand_mode = 1
script = ExtResource("16_hby33")
action_name = "aim_up"
metadata/_custom_type_script = "uid://b2maxk5g6yb0i"
[node name="InputIconTextureRect6" type="TextureRect" parent="UI/Control/GunTutorial"]
custom_minimum_size = Vector2(64, 64)
layout_mode = 2
texture = ExtResource("16_e3s4u")
expand_mode = 1
script = ExtResource("16_hby33")
action_name = "aim_down"
metadata/_custom_type_script = "uid://b2maxk5g6yb0i"
[node name="InputIconTextureRect7" type="TextureRect" parent="UI/Control/GunTutorial"]
custom_minimum_size = Vector2(64, 64)
layout_mode = 2
texture = ExtResource("16_e3s4u")
expand_mode = 1
script = ExtResource("16_hby33")
action_name = "aim_left"
metadata/_custom_type_script = "uid://b2maxk5g6yb0i"
[node name="InputIconTextureRect8" type="TextureRect" parent="UI/Control/GunTutorial"]
custom_minimum_size = Vector2(64, 64)
layout_mode = 2
texture = ExtResource("16_e3s4u")
expand_mode = 1
script = ExtResource("16_hby33")
action_name = "aim_right"
metadata/_custom_type_script = "uid://b2maxk5g6yb0i"
2025-12-04 03:30:37 +00:00
[node name="DialogueOptions" type="VBoxContainer" parent="UI/Control"]
visible = false
2025-12-04 03:30:37 +00:00
custom_minimum_size = Vector2(128, 0)
layout_mode = 1
anchors_preset = -1
anchor_left = 0.7
anchor_top = 0.5
anchor_right = 0.9
anchor_bottom = 0.5
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/separation = 8
[node name="HFlowContainer" type="HFlowContainer" parent="UI/Control/DialogueOptions"]
layout_mode = 2
alignment = 1
[node name="InputIconTextureRect2" type="TextureRect" parent="UI/Control/DialogueOptions/HFlowContainer"]
custom_minimum_size = Vector2(32, 32)
layout_mode = 2
expand_mode = 1
script = ExtResource("16_hby33")
action_name = "ui_up"
metadata/_custom_type_script = "uid://b2maxk5g6yb0i"
[node name="InputIconTextureRect3" type="TextureRect" parent="UI/Control/DialogueOptions/HFlowContainer"]
custom_minimum_size = Vector2(32, 32)
layout_mode = 2
expand_mode = 1
script = ExtResource("16_hby33")
action_name = "ui_down"
metadata/_custom_type_script = "uid://b2maxk5g6yb0i"
[node name="InputIconTextureRect" type="TextureRect" parent="UI/Control/DialogueOptions/HFlowContainer"]
custom_minimum_size = Vector2(32, 32)
layout_mode = 2
expand_mode = 1
script = ExtResource("16_hby33")
action_name = "dialogue_continue"
metadata/_custom_type_script = "uid://b2maxk5g6yb0i"
[node name="Button" parent="UI/Control/DialogueOptions" instance=ExtResource("19_qqas2")]
layout_mode = 2
2025-12-07 03:06:34 +00:00
[node name="SaveIndicator" type="Control" parent="UI/Control"]
visible = false
custom_minimum_size = Vector2(64, 64)
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -64.0
offset_top = -64.0
grow_horizontal = 0
grow_vertical = 0
[node name="SaveIcon" type="AnimatedSprite2D" parent="UI/Control/SaveIndicator"]
position = Vector2(32, 32)
scale = Vector2(4, 4)
sprite_frames = SubResource("SpriteFrames_257nh")
autoplay = "default"
frame_progress = 0.6029871
2025-12-07 03:06:34 +00:00
[node name="PauseMenu" parent="UI/Control" instance=ExtResource("14_vuhkc")]
layout_mode = 1
[node name="MissionObjectives" parent="UI/Control" instance=ExtResource("18_e3s4u")]
layout_mode = 1
offset_left = -256.0
offset_bottom = 69.0
[node name="Shader" type="ColorRect" parent="UI"]
material = SubResource("ShaderMaterial_ypt7u")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
2025-12-04 03:30:37 +00:00
mouse_filter = 2
color = Color(1, 1, 1, 0)
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_wky5g")
[node name="IntroSpawn" type="Node2D" parent="."]
position = Vector2(119, -1755)