18 lines
416 B
GDScript3
18 lines
416 B
GDScript3
|
|
class_name Star
|
||
|
|
extends CelestialBody
|
||
|
|
|
||
|
|
func get_class_name() -> String:
|
||
|
|
return "Star"
|
||
|
|
|
||
|
|
# Called when the node enters the scene tree for the first time.
|
||
|
|
func _ready() -> void:
|
||
|
|
# A Star has no primary and a very large mass.
|
||
|
|
primary = null
|
||
|
|
mass = 100000.0
|
||
|
|
radius = 50.0
|
||
|
|
|
||
|
|
# You can set a default texture here, or assign it in the Inspector.
|
||
|
|
# texture = preload("res://assets/star_texture.png")
|
||
|
|
|
||
|
|
super._ready()
|