feat: add dust2 level builder, player movement controller, and UI menu components

This commit is contained in:
DottsGit
2026-06-06 15:17:54 -04:00
parent 31336fe870
commit cd034d1aea
5 changed files with 130 additions and 64 deletions
+7 -6
View File
@@ -28,12 +28,13 @@ func _build_geometry() -> void:
fill.light_energy = 0.3
_build_dust2_layout()
_build_player()
# Override player spawn point for Dust 2
if _player:
_player.global_position = Vector3(0, 1, 50)
_player.look_at(Vector3(0, 1, 0), Vector3.UP)
func _spawn_player(pid: int) -> CharacterBody3D:
var player = super._spawn_player(pid)
player.position = Vector3(randf_range(-2, 2), 1, 50 + randf_range(-2, 2))
# Looking at (0,1,0) from (0,1,50) is facing straight down the -Z axis, which is rotation = 0,0,0
player.rotation = Vector3.ZERO
return player
func _build_dust2_layout() -> void:
# Materials