GodotSectors/Scripts/Main.gd

14 lines
251 B
GDScript

extends Node3D
func _ready():
add_child($Dungeon.generate_geometry())
var spawn: SpaceSpawn.Desc = $Dungeon.get_spawn()
$Player.position = spawn.position
$Player.position.y += 0.5
$Player.rotation = spawn.rotation
func _process(delta):
pass