init
This commit is contained in:
18
scenes/asteroid.tscn
Normal file
18
scenes/asteroid.tscn
Normal file
@@ -0,0 +1,18 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://dkx8cdbyjy1h0"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bdnapk5ubpkp5" path="res://assets/entities.png" id="1_5y7g0"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_rwpvg"]
|
||||
atlas = ExtResource("1_5y7g0")
|
||||
region = Rect2(32, 0, 32, 32)
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_nfnwd"]
|
||||
radius = 12.0
|
||||
|
||||
[node name="Asteroid" type="CharacterBody2D"]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = SubResource("AtlasTexture_rwpvg")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_nfnwd")
|
||||
30
scenes/cargo_item.tscn
Normal file
30
scenes/cargo_item.tscn
Normal file
@@ -0,0 +1,30 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://rgn8815eiygi"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/cargo_item.gd" id="1_8jou3"]
|
||||
[ext_resource type="Texture2D" uid="uid://bdnapk5ubpkp5" path="res://assets/entities.png" id="2_ikmyd"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_s1wtw"]
|
||||
atlas = ExtResource("2_ikmyd")
|
||||
region = Rect2(128, 0, 32, 32)
|
||||
|
||||
[node name="CargoItem" type="PanelContainer"]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_8jou3")
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="ItemTexture" type="TextureRect" parent="HBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
texture = SubResource("AtlasTexture_s1wtw")
|
||||
stretch_mode = 4
|
||||
|
||||
[node name="ItemLabel" type="Label" parent="HBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
text = "x0"
|
||||
62
scenes/configuration_menu.tscn
Normal file
62
scenes/configuration_menu.tscn
Normal file
@@ -0,0 +1,62 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://dsvbx2ye5u82v"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://1pisbpunwphc" path="res://resources/launch_menu_theme.tres" id="1_7lr8t"]
|
||||
[ext_resource type="PackedScene" uid="uid://dn2djggxwl22c" path="res://scenes/module_selector.tscn" id="2_gmtor"]
|
||||
[ext_resource type="Script" path="res://scripts/configuration_menu.gd" id="2_nfsxa"]
|
||||
|
||||
[node name="ConfigurationMenu" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("1_7lr8t")
|
||||
script = ExtResource("2_nfsxa")
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="ReturnButton" type="Button" parent="MarginContainer/VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Return"
|
||||
|
||||
[node name="Label" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_type_variation = &"HeaderMedium"
|
||||
text = "Rocket Configuration"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="HSeparator" type="HSeparator" parent="MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="ModulesContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="Spacer" type="Control" parent="MarginContainer/VBoxContainer/ModulesContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="ModuleSelector" parent="MarginContainer/VBoxContainer/ModulesContainer" instance=ExtResource("2_gmtor")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="ModuleSelector2" parent="MarginContainer/VBoxContainer/ModulesContainer" instance=ExtResource("2_gmtor")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Spacer2" type="Control" parent="MarginContainer/VBoxContainer/ModulesContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
34
scenes/cost_container.tscn
Normal file
34
scenes/cost_container.tscn
Normal file
@@ -0,0 +1,34 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://u13yhxooh61n"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/cost_container.gd" id="1_vbysc"]
|
||||
|
||||
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_vy8d6"]
|
||||
|
||||
[node name="CostContainer" type="BoxContainer"]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_vbysc")
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="ResourceTexture" type="TextureRect" parent="HBoxContainer"]
|
||||
layout_mode = 2
|
||||
texture = SubResource("PlaceholderTexture2D_vy8d6")
|
||||
expand_mode = 3
|
||||
|
||||
[node name="CostTextEdit" type="LineEdit" parent="HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "20"
|
||||
editable = false
|
||||
context_menu_enabled = false
|
||||
virtual_keyboard_enabled = false
|
||||
shortcut_keys_enabled = false
|
||||
middle_mouse_paste_enabled = false
|
||||
selecting_enabled = false
|
||||
drag_and_drop_selection_enabled = false
|
||||
21
scenes/fuel_tank.tscn
Normal file
21
scenes/fuel_tank.tscn
Normal file
@@ -0,0 +1,21 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://b1lpxtvsq3whv"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/fuel_tank.gd" id="1_botbj"]
|
||||
[ext_resource type="Texture2D" uid="uid://bdnapk5ubpkp5" path="res://assets/entities.png" id="2_lg4by"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_kcbvc"]
|
||||
atlas = ExtResource("2_lg4by")
|
||||
region = Rect2(64, 0, 32, 32)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_chjnb"]
|
||||
size = Vector2(22, 23)
|
||||
|
||||
[node name="FuelTank" type="CharacterBody2D" groups=["pickups"]]
|
||||
script = ExtResource("1_botbj")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = SubResource("AtlasTexture_kcbvc")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(1, 1.5)
|
||||
shape = SubResource("RectangleShape2D_chjnb")
|
||||
50
scenes/inventory_menu.tscn
Normal file
50
scenes/inventory_menu.tscn
Normal file
@@ -0,0 +1,50 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://ckh1x0u0k6ijq"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://1pisbpunwphc" path="res://resources/launch_menu_theme.tres" id="1_4vmg6"]
|
||||
[ext_resource type="Script" path="res://scripts/inventory_menu.gd" id="2_7tmo5"]
|
||||
|
||||
[node name="InventoryMenu" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("1_4vmg6")
|
||||
script = ExtResource("2_7tmo5")
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="ReturnButton" type="Button" parent="MarginContainer/VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Return"
|
||||
|
||||
[node name="Label" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_type_variation = &"HeaderMedium"
|
||||
text = "Inventory"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="HSeparator" type="HSeparator" parent="MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="PanelContainer" type="PanelContainer" parent="MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="InventoryContainer" type="HFlowContainer" parent="MarginContainer/VBoxContainer/PanelContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
127
scenes/launch_menu.tscn
Normal file
127
scenes/launch_menu.tscn
Normal file
@@ -0,0 +1,127 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://dfgy2g62bnlsy"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/launch_menu.gd" id="1_jq4be"]
|
||||
[ext_resource type="Theme" uid="uid://1pisbpunwphc" path="res://resources/launch_menu_theme.tres" id="2_7vnj5"]
|
||||
[ext_resource type="Texture2D" uid="uid://bdnapk5ubpkp5" path="res://assets/entities.png" id="3_uaai1"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_m1xkl"]
|
||||
atlas = ExtResource("3_uaai1")
|
||||
region = Rect2(224, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_1qr3l"]
|
||||
atlas = ExtResource("3_uaai1")
|
||||
region = Rect2(192, 0, 32, 32)
|
||||
|
||||
[node name="LaunchMenu" 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_jq4be")
|
||||
|
||||
[node name="MenuRoot" type="HBoxContainer" parent="."]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="LeftSide" type="MarginContainer" parent="MenuRoot"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_stretch_ratio = 2.0
|
||||
theme = ExtResource("2_7vnj5")
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="MenuRoot/LeftSide"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Title" type="Label" parent="MenuRoot/LeftSide/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme = ExtResource("2_7vnj5")
|
||||
theme_override_font_sizes/font_size = 64
|
||||
text = "Misguided Launch"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Spacer" type="Control" parent="MenuRoot/LeftSide/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="RocketDisplayContainer" type="HBoxContainer" parent="MenuRoot/LeftSide/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="SpacerStart" type="Control" parent="MenuRoot/LeftSide/VBoxContainer/RocketDisplayContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="TextureEngine" type="TextureRect" parent="MenuRoot/LeftSide/VBoxContainer/RocketDisplayContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
texture = SubResource("AtlasTexture_m1xkl")
|
||||
expand_mode = 3
|
||||
stretch_mode = 4
|
||||
|
||||
[node name="TextureHead" type="TextureRect" parent="MenuRoot/LeftSide/VBoxContainer/RocketDisplayContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
texture = SubResource("AtlasTexture_1qr3l")
|
||||
expand_mode = 3
|
||||
stretch_mode = 4
|
||||
|
||||
[node name="SpacerEnd" type="Control" parent="MenuRoot/LeftSide/VBoxContainer/RocketDisplayContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="Spacer2" type="Control" parent="MenuRoot/LeftSide/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="MenuRoot/LeftSide/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="SettingsButton" type="Button" parent="MenuRoot/LeftSide/VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Settings"
|
||||
|
||||
[node name="RightMenu" type="MarginContainer" parent="MenuRoot"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme = ExtResource("2_7vnj5")
|
||||
|
||||
[node name="ButtonContainer" type="VBoxContainer" parent="MenuRoot/RightMenu"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="UpgradesButton" type="Button" parent="MenuRoot/RightMenu/ButtonContainer"]
|
||||
layout_mode = 2
|
||||
text = "Upgrades"
|
||||
|
||||
[node name="ConfigurationButton" type="Button" parent="MenuRoot/RightMenu/ButtonContainer"]
|
||||
layout_mode = 2
|
||||
text = "Rocket Configuration"
|
||||
|
||||
[node name="StatisticsButton" type="Button" parent="MenuRoot/RightMenu/ButtonContainer"]
|
||||
layout_mode = 2
|
||||
text = "Statistics"
|
||||
|
||||
[node name="InventoryButton" type="Button" parent="MenuRoot/RightMenu/ButtonContainer"]
|
||||
layout_mode = 2
|
||||
text = "Inventory"
|
||||
|
||||
[node name="Spacer" type="Control" parent="MenuRoot/RightMenu/ButtonContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="LaunchButton" type="Button" parent="MenuRoot/RightMenu/ButtonContainer"]
|
||||
custom_minimum_size = Vector2(2.08165e-12, 128)
|
||||
layout_mode = 2
|
||||
text = "Launch!"
|
||||
|
||||
[connection signal="pressed" from="MenuRoot/RightMenu/ButtonContainer/UpgradesButton" to="." method="_on_upgrades_button_pressed"]
|
||||
[connection signal="pressed" from="MenuRoot/RightMenu/ButtonContainer/ConfigurationButton" to="." method="_on_configuration_button_pressed"]
|
||||
[connection signal="pressed" from="MenuRoot/RightMenu/ButtonContainer/InventoryButton" to="." method="_on_inventory_button_pressed"]
|
||||
[connection signal="pressed" from="MenuRoot/RightMenu/ButtonContainer/LaunchButton" to="." method="_on_launch_button_pressed"]
|
||||
54
scenes/module_selector.tscn
Normal file
54
scenes/module_selector.tscn
Normal file
@@ -0,0 +1,54 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dn2djggxwl22c"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/module_selector.gd" id="1_77nb8"]
|
||||
|
||||
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_j4ao8"]
|
||||
|
||||
[node name="ModuleSelector" type="VBoxContainer"]
|
||||
anchors_preset = 9
|
||||
anchor_bottom = 1.0
|
||||
offset_right = 117.0
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_77nb8")
|
||||
|
||||
[node name="LocationLabel" type="Label" parent="."]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
text = "Location"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="ModuleSelectorOption" type="OptionButton" parent="."]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
item_count = 2
|
||||
popup/item_0/text = "Module 1"
|
||||
popup/item_0/id = 0
|
||||
popup/item_1/text = "Module 2"
|
||||
popup/item_1/id = 1
|
||||
|
||||
[node name="ModuleTexture" type="TextureRect" parent="."]
|
||||
unique_name_in_owner = true
|
||||
modulate = Color(0, 0, 0, 1)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
texture = SubResource("PlaceholderTexture2D_j4ao8")
|
||||
expand_mode = 3
|
||||
stretch_mode = 4
|
||||
|
||||
[node name="Panel" type="Panel" parent="."]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="DescriptionLabel" type="Label" parent="Panel"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
text = "Module Description"
|
||||
autowrap_mode = 3
|
||||
82
scenes/rocket.tscn
Normal file
82
scenes/rocket.tscn
Normal file
@@ -0,0 +1,82 @@
|
||||
[gd_scene load_steps=10 format=3 uid="uid://doxwblduu0no0"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/rocket.gd" id="1_tmk40"]
|
||||
[ext_resource type="Texture2D" uid="uid://bdnapk5ubpkp5" path="res://assets/entities.png" id="1_un6dn"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_admdg"]
|
||||
atlas = ExtResource("1_un6dn")
|
||||
region = Rect2(192, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_li1r2"]
|
||||
atlas = ExtResource("1_un6dn")
|
||||
region = Rect2(224, 0, 32, 32)
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_1uivg"]
|
||||
radius = 12.0
|
||||
height = 32.0
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_0l0cx"]
|
||||
particle_flag_disable_z = true
|
||||
direction = Vector3(-1, 2.08165e-12, 2.08165e-12)
|
||||
spread = 90.0
|
||||
initial_velocity_max = 16.0
|
||||
gravity = Vector3(2.08165e-12, 2.08165e-12, 2.08165e-12)
|
||||
color = Color(1, 0.427451, 0.686275, 1)
|
||||
hue_variation_max = 0.3
|
||||
|
||||
[sub_resource type="Curve" id="Curve_sx08r"]
|
||||
min_value = -1.0
|
||||
_data = [Vector2(0.0529801, 85.8977), 0.0, 0.0, 0, 0, Vector2(0.135762, 0.243075), -2.95911, -2.95911, 0, 0, Vector2(0.155629, 0.250424), 0.0, 0.0, 0, 0, Vector2(1, -0.851894), 0.0, 0.0, 0, 0]
|
||||
point_count = 4
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_qj75g"]
|
||||
curve = SubResource("Curve_sx08r")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_o8muh"]
|
||||
particle_flag_disable_z = true
|
||||
direction = Vector3(-1, 2.08165e-12, 2.08165e-12)
|
||||
spread = 90.0
|
||||
initial_velocity_max = 16.0
|
||||
gravity = Vector3(2.08165e-12, 2.08165e-12, 2.08165e-12)
|
||||
color = Color(1, 0.176471, 0.227451, 1)
|
||||
hue_variation_min = -0.1
|
||||
hue_variation_max = 0.2
|
||||
hue_variation_curve = SubResource("CurveTexture_qj75g")
|
||||
|
||||
[node name="Rocket" type="CharacterBody2D"]
|
||||
motion_mode = 1
|
||||
script = ExtResource("1_tmk40")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
|
||||
[node name="SpriteHead" type="Sprite2D" parent="Sprite2D"]
|
||||
texture = SubResource("AtlasTexture_admdg")
|
||||
offset = Vector2(16, 2.08165e-12)
|
||||
|
||||
[node name="SpriteEngine" type="Sprite2D" parent="Sprite2D"]
|
||||
texture = SubResource("AtlasTexture_li1r2")
|
||||
offset = Vector2(-16, 2.08165e-12)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
rotation = 1.5708
|
||||
shape = SubResource("CapsuleShape2D_1uivg")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
zoom = Vector2(1.8, 1.8)
|
||||
|
||||
[node name="GPUParticles2DMiddle" type="GPUParticles2D" parent="."]
|
||||
position = Vector2(-11, 0)
|
||||
amount = 16
|
||||
process_material = SubResource("ParticleProcessMaterial_0l0cx")
|
||||
|
||||
[node name="GPUParticles2DTop" type="GPUParticles2D" parent="."]
|
||||
position = Vector2(-11, -8)
|
||||
amount = 16
|
||||
process_material = SubResource("ParticleProcessMaterial_o8muh")
|
||||
|
||||
[node name="GPUParticles2DBottom" type="GPUParticles2D" parent="."]
|
||||
position = Vector2(-11, 8)
|
||||
amount = 16
|
||||
process_material = SubResource("ParticleProcessMaterial_o8muh")
|
||||
26
scenes/space.tscn
Normal file
26
scenes/space.tscn
Normal file
@@ -0,0 +1,26 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://dbhsd2ggxhv5p"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://doxwblduu0no0" path="res://scenes/rocket.tscn" id="1_y84a3"]
|
||||
[ext_resource type="Script" path="res://scripts/AsteroidManager.gd" id="3_iv3c3"]
|
||||
[ext_resource type="PackedScene" uid="uid://vkqp8mnf3jcx" path="res://scenes/space_gui.tscn" id="3_k1s8u"]
|
||||
|
||||
[node name="Space" type="Node2D"]
|
||||
|
||||
[node name="CanvasLayer2" type="CanvasLayer" parent="."]
|
||||
layer = -1
|
||||
|
||||
[node name="Rocket" parent="." instance=ExtResource("1_y84a3")]
|
||||
unique_name_in_owner = true
|
||||
|
||||
[node name="AsteroidManager" type="Node2D" parent="."]
|
||||
script = ExtResource("3_iv3c3")
|
||||
|
||||
[node name="SpawnTimer" type="Timer" parent="AsteroidManager"]
|
||||
unique_name_in_owner = true
|
||||
wait_time = 0.2
|
||||
autostart = true
|
||||
|
||||
[node name="SpaceGUI" parent="." instance=ExtResource("3_k1s8u")]
|
||||
unique_name_in_owner = true
|
||||
|
||||
[connection signal="timeout" from="AsteroidManager/SpawnTimer" to="AsteroidManager" method="_on_spawn_timer_timeout"]
|
||||
102
scenes/space_gui.tscn
Normal file
102
scenes/space_gui.tscn
Normal file
@@ -0,0 +1,102 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://vkqp8mnf3jcx"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/SpaceGUI.gd" id="1_pkcso"]
|
||||
[ext_resource type="Texture2D" uid="uid://bdnapk5ubpkp5" path="res://assets/entities.png" id="2_ng047"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_2trj6"]
|
||||
bg_color = Color(0.91722, 0.0430384, 0.16786, 1)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_c4ocm"]
|
||||
atlas = ExtResource("2_ng047")
|
||||
region = Rect2(160, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qq8k1"]
|
||||
atlas = ExtResource("2_ng047")
|
||||
region = Rect2(128, 0, 32, 32)
|
||||
|
||||
[node name="SpaceGUI" type="CanvasLayer"]
|
||||
script = ExtResource("1_pkcso")
|
||||
|
||||
[node name="FuelGauge" type="ProgressBar" parent="."]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(64, 2.08165e-12)
|
||||
anchors_preset = 9
|
||||
anchor_bottom = 1.0
|
||||
offset_right = 64.0
|
||||
grow_vertical = 2
|
||||
theme_override_styles/fill = SubResource("StyleBoxFlat_2trj6")
|
||||
value = 10.0
|
||||
fill_mode = 3
|
||||
|
||||
[node name="EjectPodLevel" type="HBoxContainer" parent="."]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(128, 2.08165e-12)
|
||||
offset_right = 128.0
|
||||
offset_bottom = 32.0
|
||||
|
||||
[node name="HSeparator" type="HSeparator" parent="EjectPodLevel"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_stretch_ratio = 3.0
|
||||
|
||||
[node name="EjectIndicator" type="Control" parent="EjectPodLevel"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="Background" type="TextureRect" parent="EjectPodLevel/EjectIndicator"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = SubResource("AtlasTexture_c4ocm")
|
||||
|
||||
[node name="EjectIcon" type="TextureRect" parent="EjectPodLevel/EjectIndicator"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = SubResource("AtlasTexture_qq8k1")
|
||||
expand_mode = 3
|
||||
|
||||
[node name="PanelContainer" type="PanelContainer" parent="."]
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -40.0
|
||||
offset_top = -40.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="PanelContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_left = 4
|
||||
theme_override_constants/margin_top = 4
|
||||
theme_override_constants/margin_right = 4
|
||||
theme_override_constants/margin_bottom = 4
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer/MarginContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"HeaderSmall"
|
||||
text = "Cargo:"
|
||||
|
||||
[node name="CargoItemContainer" type="HBoxContainer" parent="PanelContainer/MarginContainer/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
|
||||
[node name="NoCargoPlaceholder" type="PanelContainer" parent="PanelContainer/MarginContainer/VBoxContainer/CargoItemContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer/CargoItemContainer/NoCargoPlaceholder"]
|
||||
layout_mode = 2
|
||||
text = "None"
|
||||
20
scenes/space_pod.tscn
Normal file
20
scenes/space_pod.tscn
Normal file
@@ -0,0 +1,20 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://bae2wqnjxk5we"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/space_pod.gd" id="1_mmqq1"]
|
||||
[ext_resource type="Texture2D" uid="uid://bdnapk5ubpkp5" path="res://assets/entities.png" id="2_d0pm1"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_t0d6u"]
|
||||
atlas = ExtResource("2_d0pm1")
|
||||
region = Rect2(128, 0, 32, 32)
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_ydrnh"]
|
||||
radius = 9.0
|
||||
|
||||
[node name="SpacePod" type="CharacterBody2D" groups=["pickups"]]
|
||||
script = ExtResource("1_mmqq1")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = SubResource("AtlasTexture_t0d6u")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_ydrnh")
|
||||
21
scenes/star_fragment.tscn
Normal file
21
scenes/star_fragment.tscn
Normal file
@@ -0,0 +1,21 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://syx7whg8ye4j"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/star_fragment.gd" id="1_l6qpy"]
|
||||
[ext_resource type="Texture2D" uid="uid://bdnapk5ubpkp5" path="res://assets/entities.png" id="2_tqeu4"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_n3jj8"]
|
||||
atlas = ExtResource("2_tqeu4")
|
||||
region = Rect2(96, 0, 32, 32)
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_xku4r"]
|
||||
radius = 12.0
|
||||
|
||||
[node name="StarFragment" type="CharacterBody2D" groups=["pickups"]]
|
||||
script = ExtResource("1_l6qpy")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = SubResource("AtlasTexture_n3jj8")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, 1)
|
||||
shape = SubResource("CircleShape2D_xku4r")
|
||||
104
scenes/upgrades_menu.tscn
Normal file
104
scenes/upgrades_menu.tscn
Normal file
@@ -0,0 +1,104 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://6ncdfxii2be8"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://1pisbpunwphc" path="res://resources/launch_menu_theme.tres" id="1_d37q2"]
|
||||
[ext_resource type="Script" path="res://scripts/upgrades_menu.gd" id="2_ilmj6"]
|
||||
[ext_resource type="PackedScene" uid="uid://u13yhxooh61n" path="res://scenes/cost_container.tscn" id="6_3gxjk"]
|
||||
|
||||
[node name="UpgradesMenu" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("1_d37q2")
|
||||
script = ExtResource("2_ilmj6")
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HeaderContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="ReturnButton" type="Button" parent="MarginContainer/VBoxContainer/HeaderContainer"]
|
||||
layout_mode = 2
|
||||
text = "Return
|
||||
"
|
||||
|
||||
[node name="UpgradesLabel" type="Label" parent="MarginContainer/VBoxContainer/HeaderContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_type_variation = &"HeaderMedium"
|
||||
text = "Upgrades:"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="HSeparator" type="HSeparator" parent="MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="MainContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="UpgradesList" type="ItemList" parent="MarginContainer/VBoxContainer/MainContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
item_count = 2
|
||||
item_0/text = "Upgrade 1"
|
||||
item_1/text = "Upgrade 2"
|
||||
|
||||
[node name="PanelContainer" type="PanelContainer" parent="MarginContainer/VBoxContainer/MainContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/VBoxContainer/MainContainer/PanelContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/VBoxContainer/MainContainer/PanelContainer/MarginContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="UpgradeTitleLabel" type="Label" parent="MarginContainer/VBoxContainer/MainContainer/PanelContainer/MarginContainer/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"HeaderSmall"
|
||||
text = "UpgradeTitle"
|
||||
|
||||
[node name="HSeparator" type="HSeparator" parent="MarginContainer/VBoxContainer/MainContainer/PanelContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="DesciptionLabel" type="Label" parent="MarginContainer/VBoxContainer/MainContainer/PanelContainer/MarginContainer/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(100, 64)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
text = "Description Text For an upgrade that is super long and should auto-wrap to the next line that describes what is happening with the upgrade."
|
||||
autowrap_mode = 3
|
||||
|
||||
[node name="CostLabel" type="Label" parent="MarginContainer/VBoxContainer/MainContainer/PanelContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Cost:"
|
||||
|
||||
[node name="CostContainer" type="VBoxContainer" parent="MarginContainer/VBoxContainer/MainContainer/PanelContainer/MarginContainer/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
|
||||
[node name="CostContainer" parent="MarginContainer/VBoxContainer/MainContainer/PanelContainer/MarginContainer/VBoxContainer/CostContainer" instance=ExtResource("6_3gxjk")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="BuyButton" type="Button" parent="MarginContainer/VBoxContainer/MainContainer/PanelContainer/MarginContainer/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
text = "Buy"
|
||||
|
||||
[connection signal="item_selected" from="MarginContainer/VBoxContainer/MainContainer/UpgradesList" to="." method="_on_upgrades_list_item_selected"]
|
||||
[connection signal="pressed" from="MarginContainer/VBoxContainer/MainContainer/PanelContainer/MarginContainer/VBoxContainer/BuyButton" to="." method="_on_buy_button_pressed"]
|
||||
Reference in New Issue
Block a user