Skip to content

Commit

Permalink
Sirius star system
Browse files Browse the repository at this point in the history
  • Loading branch information
jspahrsummers committed Jul 16, 2024
1 parent 7bc116f commit 7e30e5b
Show file tree
Hide file tree
Showing 14 changed files with 133 additions and 6 deletions.
2 changes: 2 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
- star_red01
- star_red02
- star_red03
- star_white02
- star_white03

[Planet sprites](https://v-ktor.itch.io/planet-sprites) created by [Viktor Hahn](https://v-ktor.itch.io/) ([email protected]), licensed under [CC BY-SA 4.0 license](https://creativecommons.org/licenses/by-sa/4.0/):
- planet_02
Expand Down
5 changes: 3 additions & 2 deletions galaxy/main_galaxy.tres
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[gd_resource type="Resource" script_class="Galaxy" load_steps=6 format=3 uid="uid://bcva4l4cpt70c"]
[gd_resource type="Resource" script_class="Galaxy" load_steps=7 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"]
[ext_resource type="Resource" uid="uid://cs1x8gyt6a7kw" path="res://galaxy/star_system/star_systems/alpha_centauri.tres" id="3_ulruw"]
[ext_resource type="Resource" uid="uid://shiglva7yxl0" path="res://galaxy/star_system/star_systems/barnard's_star.tres" id="4_jkjw5"]
[ext_resource type="Resource" uid="uid://di0bekcy5g0ya" path="res://galaxy/star_system/star_systems/wolf_359.tres" id="5_8a1bp"]
[ext_resource type="Resource" uid="uid://clcig3aieyop5" path="res://galaxy/star_system/star_systems/sirius.tres" id="6_jci7t"]

[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")])
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")])
16 changes: 16 additions & 0 deletions galaxy/star_system/scenes/sirius.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[gd_scene load_steps=5 format=3 uid="uid://dnq7vmwax8u7v"]

[ext_resource type="Script" path="res://galaxy/star_system/star_system_instance.gd" id="1_ibjbp"]
[ext_resource type="Resource" uid="uid://clcig3aieyop5" path="res://galaxy/star_system/star_systems/sirius.tres" id="2_dc37m"]
[ext_resource type="PackedScene" uid="uid://dkq1xlrnnxrtr" path="res://stars/star_class_a.tscn" id="3_30bsr"]
[ext_resource type="PackedScene" uid="uid://clmjmlce3ufwg" path="res://stars/star_white_dwarf.tscn" id="4_0khyd"]

[node name="Sirius" type="Node3D"]
script = ExtResource("1_ibjbp")
star_system = ExtResource("2_dc37m")

[node name="Sirius A" parent="." instance=ExtResource("3_30bsr")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -11.864, 0, -0.751286)

[node name="Sirius B" parent="." instance=ExtResource("4_0khyd")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.76327, 2.08165e-12, 3.25557)
2 changes: 1 addition & 1 deletion galaxy/star_system/star_systems/alpha_centauri.tres
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
[resource]
script = ExtResource("1_un4y1")
name = &"Alpha Centauri"
connections = Array[StringName]([&"Sol", &"Wolf 359"])
connections = Array[StringName]([&"Sol", &"Sirius"])
position = Vector3(2.5, 0.2, -3.7)
scene_path = "res://galaxy/star_system/scenes/alpha_centauri.tscn"
10 changes: 10 additions & 0 deletions galaxy/star_system/star_systems/sirius.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[gd_resource type="Resource" script_class="StarSystem" load_steps=2 format=3 uid="uid://clcig3aieyop5"]

[ext_resource type="Script" path="res://galaxy/star_system/star_system.gd" id="1_78j6h"]

[resource]
script = ExtResource("1_78j6h")
name = &"Sirius"
connections = Array[StringName]([&"Wolf 359", &"Alpha Centauri"])
position = Vector3(1.5, -0.5, -6)
scene_path = "res://galaxy/star_system/scenes/sirius.tscn"
2 changes: 1 addition & 1 deletion galaxy/star_system/star_systems/wolf_359.tres
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
[resource]
script = ExtResource("1_go4uk")
name = &"Wolf 359"
connections = Array[StringName]([&"Sol", &"Alpha Centauri"])
connections = Array[StringName]([&"Sol", &"Sirius"])
position = Vector3(-2, 2.08165e-12, -2)
scene_path = "res://galaxy/star_system/scenes/wolf_359.tscn"
Binary file added stars/sprites/star_white02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions stars/sprites/star_white02.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://c8pk2eg557fsk"
path.s3tc="res://.godot/imported/star_white02.png-5fa46207597e7b99da4ea801b2650b90.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}

[deps]

source_file="res://stars/sprites/star_white02.png"
dest_files=["res://.godot/imported/star_white02.png-5fa46207597e7b99da4ea801b2650b90.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
Binary file added stars/sprites/star_white03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions stars/sprites/star_white03.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://b6fx4rbbk627c"
path.s3tc="res://.godot/imported/star_white03.png-17cf163bae13cb4ee0a299f2492973d4.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}

[deps]

source_file="res://stars/sprites/star_white03.png"
dest_files=["res://.godot/imported/star_white03.png-17cf163bae13cb4ee0a299f2492973d4.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
14 changes: 14 additions & 0 deletions stars/star_class_a.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[gd_scene load_steps=3 format=3 uid="uid://dkq1xlrnnxrtr"]

[ext_resource type="PackedScene" uid="uid://cji43wyk7116p" path="res://stars/star_class_g.tscn" id="1_2ocmc"]
[ext_resource type="Texture2D" uid="uid://b6fx4rbbk627c" path="res://stars/sprites/star_white03.png" id="2_lrikb"]

[node name="Star Class A" instance=ExtResource("1_2ocmc")]

[node name="OmniLight3D" parent="." index="0"]
light_energy = 15.0
omni_range = 40.0

[node name="Sprite3D" parent="." index="2"]
pixel_size = 0.005
texture = ExtResource("2_lrikb")
2 changes: 1 addition & 1 deletion stars/star_class_k.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
light_energy = 8.0

[node name="Sprite3D" parent="." index="2"]
transform = Transform3D(0.775, 0, 0, 0, 0.775, 0, 0, 0, 0.775, 2.08165e-12, -1, 2.08165e-12)
transform = Transform3D(0.775, 0, 0, 0, 1, 0, 0, 0, 0.775, 2.08165e-12, -1, 2.08165e-12)
texture = ExtResource("2_s03sh")
2 changes: 1 addition & 1 deletion stars/star_class_m.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ light_energy = 5.0
omni_range = 10.0

[node name="Sprite3D" parent="." index="2"]
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 2.08165e-12, -1, 2.08165e-12)
transform = Transform3D(0.5, 0, 0, 0, 1, 0, 0, 0, 0.5, 2.08165e-12, -1, 2.08165e-12)
texture = ExtResource("2_bomy4")
14 changes: 14 additions & 0 deletions stars/star_white_dwarf.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[gd_scene load_steps=3 format=3 uid="uid://clmjmlce3ufwg"]

[ext_resource type="PackedScene" uid="uid://cji43wyk7116p" path="res://stars/star_class_g.tscn" id="1_ixvug"]
[ext_resource type="Texture2D" uid="uid://c8pk2eg557fsk" path="res://stars/sprites/star_white02.png" id="2_s1gx4"]

[node name="White Dwarf" instance=ExtResource("1_ixvug")]

[node name="OmniLight3D" parent="." index="0"]
light_energy = 5.0
omni_range = 5.0

[node name="Sprite3D" parent="." index="2"]
transform = Transform3D(0.5, 0, 0, 0, 1, 0, 0, 0, 0.5, 2.08165e-12, -1, 2.08165e-12)
texture = ExtResource("2_s1gx4")

0 comments on commit 7e30e5b

Please sign in to comment.