15 lines
316 B
GDScript
15 lines
316 B
GDScript
extends Node2D
|
|
class_name PlanetRun
|
|
|
|
@export var planet : Planet
|
|
@export var game_data : GameData
|
|
|
|
func _ready():
|
|
if not game_data:
|
|
game_data = GameData.new()
|
|
|
|
if not game_data.current_terrain_data:
|
|
game_data.current_terrain_data = TerrainData.new()
|
|
|
|
if planet:
|
|
planet.instant |