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

20 lines
424 B
GDScript

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