diff --git a/scripts/smoke_test_player.gd b/scripts/smoke_test_player.gd index 04d63b2..adec01f 100644 --- a/scripts/smoke_test_player.gd +++ b/scripts/smoke_test_player.gd @@ -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)