|
| 1 | +# BUILD_PR_LEVEL_10_12_ASSET_FILE_NAMING_NORMALIZATION_GLOBAL |
| 2 | + |
| 3 | +## Problem |
| 4 | +Asset files redundantly include game and asset context in filenames: |
| 5 | +- asteroids-*.json |
| 6 | +- asteroids-*.data.json |
| 7 | + |
| 8 | +Directory structure already provides: |
| 9 | +games/<gameId>/assets/<type>/ |
| 10 | + |
| 11 | +This creates duplication and coupling. |
| 12 | + |
| 13 | +## Purpose |
| 14 | +Normalize ALL asset filenames to be context-driven by directory only. |
| 15 | + |
| 16 | +## Scope |
| 17 | + |
| 18 | +Apply to ALL files under: |
| 19 | +games/Asteroids/assets/** |
| 20 | + |
| 21 | +### Rename Rules |
| 22 | + |
| 23 | +Remove: |
| 24 | +- game prefix (asteroids-) |
| 25 | +- redundant asset descriptors already in folder path |
| 26 | + |
| 27 | +Examples: |
| 28 | + |
| 29 | +sprites/data/asteroids-demo.sprite.data.json |
| 30 | +→ sprites/data/demo.data.json |
| 31 | + |
| 32 | +tilemaps/data/asteroids-stage.tilemap.data.json |
| 33 | +→ tilemaps/data/stage.data.json |
| 34 | + |
| 35 | +parallax/data/asteroids-title.parallax.data.json |
| 36 | +→ parallax/data/title.data.json |
| 37 | + |
| 38 | +vectors/data/asteroids-vectors.library.data.json |
| 39 | +→ vectors/data/library.data.json |
| 40 | + |
| 41 | +manifest: |
| 42 | +asteroids.asset.manifest.json |
| 43 | +→ tools.manifest.json |
| 44 | + |
| 45 | +### Rules |
| 46 | + |
| 47 | +- File names must be minimal and local-context only |
| 48 | +- No game name in file |
| 49 | +- No type duplication (folder defines type) |
| 50 | +- Preserve uniqueness within folder only |
| 51 | + |
| 52 | +## Loader Impact |
| 53 | + |
| 54 | +Loader must: |
| 55 | +- NOT rely on filename patterns containing gameId |
| 56 | +- Use directory + manifest references only |
| 57 | + |
| 58 | +## Testable Outcome |
| 59 | + |
| 60 | +- All asset files renamed consistently |
| 61 | +- Loader resolves via manifest + directory, not naming |
| 62 | +- No "asteroids" in filenames |
| 63 | + |
| 64 | +## Non-Goals |
| 65 | +- No engine modification |
0 commit comments