feat: add dust2 level builder, player movement controller, and UI menu components
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user