GodotSectors/Scripts/Main.gd

14 lines
234 B
GDScript

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