WIP checkpoint: PC2: Basic visible player character representation

This commit is contained in:
2026-08-20 23:19:05 +00:00
parent 406ff3457e
commit 5803f47069
+2 -2
View File
@@ -39,13 +39,13 @@ func _run() -> void:
_check("CapsuleMesh has a mesh", mesh.mesh != null) _check("CapsuleMesh has a mesh", mesh.mesh != null)
# 3. Verify the player spawned at the PlayerSpawn marker position. # 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) _check("PlayerSpawn marker exists", spawn_marker != null)
# The player's _ready() should have moved it to the spawn marker's # 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 position. Since both are direct children of the root, their
# global positions equal their local positions. # 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", _check("Player spawned at PlayerSpawn position",
player.global_position == expected_pos) player.global_position == expected_pos)