Enhance animation and control tests; improve rendering and shape loading validation

- Added tests for player animations in animation_archive_tests to ensure all animations are loaded correctly.
- Updated entity_dispatch_entry_tests to validate animation direction updates and added tests for sixteen-direction animations.
- Expanded isometric_controls_tests with comprehensive key event handling and action requests for various controller states.
- Improved map_renderer_tests by adding viewport rendering tests to compare unbounded and bounded views.
- Enhanced shape_archive_tests to validate shape frame loading and decoding consistency.
This commit is contained in:
Maddo 2026-10-07 00:18:08 +02:00
commit a76b071049
28 changed files with 1608 additions and 154 deletions

View file

@ -18,4 +18,4 @@ applyTo: '**'
- Keep read-only analysis separate from any explicit writable workflow.
- For authored map-placement or link investigation in Crusader-Map-Viewer, prefer decompressed `.cache/scene-cache/<game>/map-*/<hash>/scene.json` over `site/data`; the cache scenes preserve direct item objects and world coordinates.
- Never write documentation into `k:\ghidra\crusader_map_viewer` unless the user explicitly asks for documentation changes in that repo.
- If the shell becomes stuck on multiline input or otherwise unhealthy, you could try to press esc in the shell to see if it gets unstuck, otherwise immediately use `vscode_askQuestions` to ask the user to fix the terminal state, then continue the task once the user confirms it is fixed.
- If the shell becomes stuck on multiline input or otherwise unhealthy, you could try to press esc in the shell to see if it gets unstuck, otherwise immediately use `vscode_askQuestions` to ask the user to fix the terminal state, then continue the task once the user confirms it is fixed.

View file

@ -43,4 +43,16 @@ Use these rules when running shell commands from this workspace.
- Prefer explicit PowerShell cmdlets over aliases in reusable commands.
- Avoid commands that rely on interactive input.
- Prefer one focused command per terminal invocation so failures are easier to attribute.
- When posting HTTP form data from PowerShell, prefer compact one-line request bodies over multiline literal blocks in the shared shell.
- When posting HTTP form data from PowerShell, prefer compact one-line request bodies over multiline literal blocks in the shared shell.
# GitHub Copilot Instructions for PowerShell
**Environment:** I am using **Windows** and all terminal commands *must* be compatible with **PowerShell** (or **PowerShell Core/PS7**).
**CRITICAL COMMAND SYNTAX:**
* **NEVER** use `&&` for command chaining.
* **ALWAYS** use the **semicolon (`;`)** for chaining or separating multiple commands on a single line.
* **Good Example:** `npm install; npm start`
* **Bad Example (Avoid):** `npm install && npm start`
* Prefer built-in PowerShell cmdlets (e.g., `Get-ChildItem` instead of `ls` or `dir`) whenever possible, or use common aliases like `ls` if they are working.
* Use Windows-style backslashes for paths and quote paths with spaces.