This repository was archived by the owner on Dec 18, 2024. It is now read-only.
This repository was archived by the owner on Dec 18, 2024. It is now read-only.
HD Pack Feature Request: Attach additional tiles to a sprite tile #565
Open
Description
Allow HD pack to define additional tiles to be rendered when a matching sprite tile is found.
- In the hires.txt, add lines which define the tile data and palette of a sprite tile, relative location of the additional tile and the replacement graphics of that tile.
- The emulator has an array similar to the OAM for storing the additional tiles.
- The emulator reads the OAM once before rendering the screen to see if there is a match.
- If a match is found, the emulator adds the additional tile to the array. The flip and priority will be the same as the sprite. The location of the tile will be calculated from the location and flip of the sprite.
- When rendering, the emulator will read the array and render the additional tile in the same way as HD sprite but the additional tiles do not count towards the 8 sprites per scanline limit
This is the easiest way of expending sprite graphics that I can think of.