Phase 14 - Organized directories.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
extends SceneTree
|
||||
|
||||
const IO := preload("res://scripts/stage_scene_io.gd")
|
||||
const STAGE_SCENE := preload("res://scenes/sandbox_stage.tscn")
|
||||
const MISSING_PLACEHOLDER := preload("res://scripts/missing_stickman_placeholder.gd")
|
||||
const IO := preload("res://scripts/stage/stage_scene_io.gd")
|
||||
const STAGE_SCENE := preload("res://scenes/stage/sandbox_stage.tscn")
|
||||
const MISSING_PLACEHOLDER := preload("res://scripts/characters/stickman/missing_stickman_placeholder.gd")
|
||||
|
||||
var _checks := 0
|
||||
var _failures := 0
|
||||
@@ -145,7 +145,7 @@ func _test_stage_round_trip_and_file_state() -> void:
|
||||
area.size = Vector2(160.0, 80.0)
|
||||
area.scale = Vector2(1.2, 0.8)
|
||||
stage._finalize_placed_node(area)
|
||||
var rig: StickmanRig = stage._spawner.spawn_stickman_asset("res://stickmen/test.stk", Vector2(-100.0, -385.0))
|
||||
var rig: StickmanRig = stage._spawner.spawn_stickman_asset("res://content/stickmen/test.stk", Vector2(-100.0, -385.0))
|
||||
rig.set_facing_profile(StickmanRig.FacingProfile.LEFT)
|
||||
rig.queue_action({"type": "wait", "duration": 0.25})
|
||||
stage._finalize_placed_node(rig)
|
||||
@@ -180,7 +180,7 @@ func _test_stage_round_trip_and_file_state() -> void:
|
||||
var loaded_area := stage._world.get_child(2) as TriggerArea
|
||||
_expect(loaded_area != null and loaded_area.size == Vector2(160.0, 80.0) and loaded_area.scale.is_equal_approx(Vector2(1.2, 0.8)), "area size and scale survive")
|
||||
var loaded_rig := stage._world.get_child(3) as StickmanRig
|
||||
_expect(loaded_rig != null and loaded_rig.source_stk_path == "res://stickmen/test.stk" and loaded_rig.get_facing_profile() == StickmanRig.FacingProfile.LEFT, "stickman provenance and facing survive")
|
||||
_expect(loaded_rig != null and loaded_rig.source_stk_path == "res://content/stickmen/test.stk" and loaded_rig.get_facing_profile() == StickmanRig.FacingProfile.LEFT, "stickman provenance and facing survive")
|
||||
_expect(absf((loaded_rig.global_transform * Transform2D.FLIP_X).get_rotation()) < 0.01, "LEFT-facing rig loads with one mirror and canonical rotation")
|
||||
_expect(loaded_rig.get_queue().size() == 1 and stage._event_rules.size() == 1, "queue and rule survive")
|
||||
var loaded_trigger: Dictionary = stage._event_rules[0]["trigger"]
|
||||
|
||||
Reference in New Issue
Block a user