WIP checkpoint: PC2: Basic visible player character representation
This commit is contained in:
@@ -39,13 +39,13 @@ func _run() -> void:
|
||||
_check("CapsuleMesh has a mesh", mesh.mesh != null)
|
||||
|
||||
# 3. Verify the player spawned at the PlayerSpawn marker position.
|
||||
var spawn_marker := level.get_node("PlayerSpawn")
|
||||
var spawn_marker: Marker3D = level.get_node("PlayerSpawn")
|
||||
_check("PlayerSpawn marker exists", spawn_marker != null)
|
||||
|
||||
# The player's _ready() should have moved it to the spawn marker's
|
||||
# global position. Since both are direct children of the root, their
|
||||
# global positions equal their local positions.
|
||||
var expected_pos := spawn_marker.global_position
|
||||
var expected_pos: Vector3 = spawn_marker.global_position
|
||||
_check("Player spawned at PlayerSpawn position",
|
||||
player.global_position == expected_pos)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user