Files
millimeters-of-aluminum/scripts/planet.gd
olof.pettersson 99e032f303 initial commit
2025-09-12 15:54:10 +02:00

20 lines
433 B
GDScript

class_name Planet
extends CelestialBody
# The orbital radius for this planet.
var orbital_radius: float
func get_class_name() -> String:
return "Planet"
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
# A Planet has a smaller mass than a star.
mass = 1000.0
radius = 25.0
# You can set a default texture here.
# texture = preload("res://assets/planet_texture.png")
super._ready()