20 lines
433 B
GDScript
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()
|