16 lines
357 B
GDScript
16 lines
357 B
GDScript
class_name Planet
|
|
extends OrbitalBody2D
|
|
|
|
# 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:
|
|
# You can set a default texture here.
|
|
# texture = preload("res://assets/planet_texture.png")
|
|
|
|
super._ready()
|