Skip to content
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
@mkwong98

Description

@mkwong98

Allow HD pack to define additional tiles to be rendered when a matching sprite tile is found.

  1. 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.
  2. The emulator has an array similar to the OAM for storing the additional tiles.
  3. The emulator reads the OAM once before rendering the screen to see if there is a match.
  4. 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.
  5. 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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions