1#ifndef YAZE_ZELDA3_SPRITE_SPRITE_SHEET_SLOTS_H
2#define YAZE_ZELDA3_SPRITE_SPRITE_SHEET_SLOTS_H
26 return spriteset >= 0x40;
31 const std::array<uint8_t, 4>& spriteset_values,
bool underworld);
35 return (tile & 0x1FF) / 0x40;
54 const Rom& rom,
const std::vector<int>& tiles,
55 const std::array<uint8_t, 8>& slots,
56 const std::set<uint16_t>& reserved_sheets = {});
The Rom class is used to load, save, and modify Rom data. This is a generic SNES ROM container and do...
Zelda 3 specific classes and functions.
constexpr bool IsUnderworldSpriteset(int spriteset)
Dungeon rooms use spritesets 0x40-0x8F (room header value + 0x40).
constexpr int SpriteSlotForTile(int tile)
Slot (0-7) holding 8x8 OAM tile tile (name-table bit included).
std::array< uint8_t, 8 > SpriteSheetSlots(const std::array< uint8_t, 4 > &spriteset_values, bool underworld)
The eight sheets for a spriteset's four values.
std::vector< SpriteTileIssue > CheckSpriteTiles(const Rom &rom, const std::vector< int > &tiles, const std::array< uint8_t, 8 > &slots, const std::set< uint16_t > &reserved_sheets)