Files
millimeters-of-aluminum/scripts/star.gd

18 lines
416 B
GDScript3
Raw Normal View History

2025-09-12 15:54:10 +02:00
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()