Rewriting star system complete

This commit is contained in:
2ndbeam 2024-04-30 20:08:07 +03:00
commit 350b9853f2
13 changed files with 118 additions and 70 deletions

View file

@ -1,7 +1,5 @@
extends Node
# TODO: this just doesn't work
## Star scene
@export var star : PackedScene
## Affects how many stars will be generated and places on whole system
@ -9,7 +7,7 @@ extends Node
## Affects how much space on borders of the star system will be empty
@export_range(0, 1) var compress_space_amount = 0.1
## Shortcut to get_parent()
@onready var star_system: StarSystem = get_parent()
@onready var star_system: = get_parent()
func _ready():
var compress_multiplier = 1.0 - compress_space_amount
@ -25,4 +23,3 @@ func _ready():
parallax_layers[distance].add_child(star_inst)
var position = Vector2(x, y)
star_inst.position = position
print(position)