Implement rig animation controls in the test harness

- Added a new animation specification document for Phase 9 Task 5 detailing the requirements for rig animation controls.
- Introduced a new `StickmanRig` script to manage the facing direction and joint bending for the rig.
- Implemented UI elements in the test harness for selecting animations, controlling playback (play/pause/resume/stop), and toggling loop mode.
- Enhanced the `test_harness.gd` script to handle animation playback state and UI interactions.
- Updated documentation in `AGENTS.md`, `README.md`, and `RIGGING.md` to reflect the new animation features.
This commit is contained in:
2026-08-24 23:41:23 -04:00
parent 273090993e
commit 07bef66703
12 changed files with 1695 additions and 283 deletions
+3 -3
View File
@@ -34,13 +34,13 @@ static func load_stk(path: String) -> Dictionary:
return parsed as Dictionary
static func spawn_from_data(stk_data: Dictionary) -> Node2D:
var rig := RIG_SCENE.instantiate() as Node2D
static func spawn_from_data(stk_data: Dictionary) -> StickmanRig:
var rig := RIG_SCENE.instantiate() as StickmanRig
StkRigAdapter.apply(stk_data, rig)
return rig
static func spawn(path: String) -> Node2D:
static func spawn(path: String) -> StickmanRig:
var data := load_stk(path)
if data.is_empty():
return null