Skip to content

Commit

Permalink
Add Helios star system (#66)
Browse files Browse the repository at this point in the history
* Stub Helios system

* Stub planet Pyra

* Add Pyra description and landscape image

* Fix system connections into Helios

* Add asteroid field to Helios
  • Loading branch information
jspahrsummers authored Aug 6, 2024
1 parent e72193e commit fd1b28a
Show file tree
Hide file tree
Showing 9 changed files with 100 additions and 7 deletions.
5 changes: 3 additions & 2 deletions galaxy/main_galaxy.tres
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_resource type="Resource" script_class="Galaxy" load_steps=10 format=3 uid="uid://bcva4l4cpt70c"]
[gd_resource type="Resource" script_class="Galaxy" load_steps=11 format=3 uid="uid://bcva4l4cpt70c"]

[ext_resource type="Script" path="res://galaxy/galaxy.gd" id="1_bckai"]
[ext_resource type="Resource" uid="uid://cew4x137v08q" path="res://galaxy/star_system/star_systems/sol.tres" id="2_va8e4"]
Expand All @@ -9,7 +9,8 @@
[ext_resource type="Resource" uid="uid://bowucldo27rjd" path="res://galaxy/star_system/star_systems/zephyria.tres" id="7_puhoc"]
[ext_resource type="Resource" uid="uid://cu1wn7ldbgeej" path="res://galaxy/star_system/star_systems/thalassa.tres" id="8_4yki3"]
[ext_resource type="Resource" uid="uid://ku5qjeo4jlkt" path="res://galaxy/star_system/star_systems/nova_lumina.tres" id="9_qqkio"]
[ext_resource type="Resource" uid="uid://nbm8is7uln37" path="res://galaxy/star_system/star_systems/helios.tres" id="10_fsj5o"]

[resource]
script = ExtResource("1_bckai")
systems = Array[Resource("res://galaxy/star_system/star_system.gd")]([ExtResource("2_va8e4"), ExtResource("3_ulruw"), ExtResource("4_jkjw5"), ExtResource("5_8a1bp"), ExtResource("6_jci7t"), ExtResource("7_puhoc"), ExtResource("8_4yki3"), ExtResource("9_qqkio")])
systems = Array[Resource("res://galaxy/star_system/star_system.gd")]([ExtResource("2_va8e4"), ExtResource("3_ulruw"), ExtResource("4_jkjw5"), ExtResource("5_8a1bp"), ExtResource("6_jci7t"), ExtResource("7_puhoc"), ExtResource("8_4yki3"), ExtResource("9_qqkio"), ExtResource("10_fsj5o")])
27 changes: 27 additions & 0 deletions galaxy/star_system/scenes/helios.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[gd_scene load_steps=8 format=3 uid="uid://nunornl3gvvo"]

[ext_resource type="PackedScene" uid="uid://fxemun7o6rix" path="res://galaxy/star_system/star_system_instance.tscn" id="1_cgb7d"]
[ext_resource type="Resource" uid="uid://nbm8is7uln37" path="res://galaxy/star_system/star_systems/helios.tres" id="2_a8qaw"]
[ext_resource type="PackedScene" uid="uid://ct6hx24xakxq3" path="res://stars/main_sequence/star_class_g.tscn" id="3_en328"]
[ext_resource type="PackedScene" uid="uid://b04hfgkcuq7k6" path="res://planet/planet_instance.tscn" id="4_wx4b8"]
[ext_resource type="Texture2D" uid="uid://bcrjjyfvc8eli" path="res://planet/sprites/planet_28.png" id="5_pkasu"]
[ext_resource type="Resource" uid="uid://dd61sms23ju2r" path="res://planet/planets/pyra.tres" id="5_u2wh5"]
[ext_resource type="PackedScene" uid="uid://ccdkamqw03rk7" path="res://fx/asteroids/multi_asteroid_field.tscn" id="7_7sqja"]

[node name="Helios" instance=ExtResource("1_cgb7d")]
star_system = ExtResource("2_a8qaw")

[node name="Star Class G" parent="." index="0" instance=ExtResource("3_en328")]

[node name="Pyra" parent="." index="1" instance=ExtResource("4_wx4b8")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.46376, 0, 6.6976)
planet = ExtResource("5_u2wh5")

[node name="Sprite3D" parent="Pyra" index="1"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0)
texture = ExtResource("5_pkasu")

[node name="MultiAsteroidField" parent="." index="2" instance=ExtResource("7_7sqja")]

[editable path="Pyra"]
[editable path="Pyra/TargetOverlay"]
4 changes: 2 additions & 2 deletions galaxy/star_system/star_systems/barnard's_star.tres
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[resource]
script = ExtResource("1_bblmw")
name = &"Barnard\'s Star"
connections = Array[StringName]([&"Sol"])
connections = Array[StringName]([&"Sol", &"Helios"])
position = Vector3(-3, 2.08165e-12, 2.08165e-12)
scene_path = "res://galaxy/star_system/scenes/barnard's_star.tscn"
refueling_cost = 0
refueling_relative_price = 0.5
13 changes: 13 additions & 0 deletions galaxy/star_system/star_systems/helios.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[gd_resource type="Resource" script_class="StarSystem" load_steps=3 format=3 uid="uid://nbm8is7uln37"]

[ext_resource type="Resource" uid="uid://b764gd8q3il6s" path="res://mechanics/economy/currencies/credits.tres" id="1_axqux"]
[ext_resource type="Script" path="res://galaxy/star_system/star_system.gd" id="1_rf1b6"]

[resource]
script = ExtResource("1_rf1b6")
name = &"Helios"
connections = Array[StringName]([&"Thalassa", &"Barnard\'s Star"])
position = Vector3(-1.3, 2.08165e-12, 1.7)
scene_path = "res://galaxy/star_system/scenes/helios.tscn"
refueling_money = ExtResource("1_axqux")
refueling_relative_price = 0.734
2 changes: 1 addition & 1 deletion galaxy/star_system/star_systems/thalassa.tres
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ExtResource("9_vsdb2"): 0.58
[resource]
script = ExtResource("1_0hn02")
name = &"Thalassa"
connections = Array[StringName]([&"Sol"])
connections = Array[StringName]([&"Sol", &"Helios"])
position = Vector3(-0.5, -0.1, 2.7)
scene_path = "res://galaxy/star_system/scenes/thalassa.tscn"
market = SubResource("Resource_h1m1b")
Expand Down
17 changes: 17 additions & 0 deletions planet/planets/pyra.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[gd_resource type="Resource" script_class="Planet" load_steps=3 format=3 uid="uid://dd61sms23ju2r"]

[ext_resource type="Texture2D" uid="uid://dbsch7luqleh" path="res://screens/landing/images/59c79ae4-1b9a-403c-86ed-2bf9e6cfb389.jpg" id="1_522gb"]
[ext_resource type="Script" path="res://planet/planet.gd" id="1_oksuf"]

[resource]
script = ExtResource("1_oksuf")
name = "Pyra"
facilities = 33
landscape_image = ExtResource("1_522gb")
description = "Pyra is a scorched world of fire and stone. Its surface is a vast expanse of blackened rock and flowing lava, punctuated by towering volcanoes that perpetually belch ash and sulfurous gases into the thin atmosphere.
Despite its inhospitable nature, Pyra hosts a small but resilient colony of miners and researchers. They live in heavily shielded habitats, venturing out only in protective suits to harvest rare minerals formed in the planet's extreme conditions.
The spaceport, a stark structure of heat-resistant alloys, clings to a rare stable plateau. Its primary feature is a bustling bar, the \"Obsidian Oasis,\" where visitors and locals alike seek respite from the oppressive heat. The bar's viewport offers a mesmerizing view of rivers of molten rock snaking across the charred landscape.
Beyond the spaceport and a few scattered outposts, Pyra remains largely untamed. Its barren expanses discourage extensive facility development, making each structure a triumph of engineering against the planet's fiery will."
4 changes: 2 additions & 2 deletions screens/game/game.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ script = ExtResource("11_ag0i7")
max_volume = 10.0
commodities = {}

[sub_resource type="Resource" id="Resource_80tvv"]
[sub_resource type="Resource" id="Resource_oguq3"]
resource_local_to_scene = true
script = ExtResource("13_q2g24")
max_fuel = 6.0
Expand Down Expand Up @@ -179,7 +179,7 @@ hull = SubResource("Resource_ffax2")
shield = SubResource("Resource_75c8j")
battery = SubResource("Resource_xpwk4")
cargo_hold = SubResource("Resource_bsv1l")
hyperdrive = SubResource("Resource_80tvv")
hyperdrive = SubResource("Resource_oguq3")

[node name="HyperdriveSystem" type="Node3D" parent="HyperspaceSceneSwitcher/Sol/PlayerCorvette"]
script = ExtResource("16_6olqp")
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://dbsch7luqleh"
path.s3tc="res://.godot/imported/59c79ae4-1b9a-403c-86ed-2bf9e6cfb389.jpg-94c959f50d2c2afd5e14ad1a38102ed7.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}

[deps]

source_file="res://screens/landing/images/59c79ae4-1b9a-403c-86ed-2bf9e6cfb389.jpg"
dest_files=["res://.godot/imported/59c79ae4-1b9a-403c-86ed-2bf9e6cfb389.jpg-94c959f50d2c2afd5e14ad1a38102ed7.s3tc.ctex"]

[params]

compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=1
roughness/src_normal=""
process/fix_alpha_border=false
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

0 comments on commit fd1b28a

Please sign in to comment.