Files
millimeters-of-aluminum/scenes/celestial_bodies/moon.gd

18 lines
395 B
GDScript

class_name Moon
extends OrbitalBody2D
# 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.
# You can set a default texture here.
# texture = preload("res://assets/moon_texture.png")
super._ready()