Files
tmc/include/beanstalkSubtask.h
T
octorock aced0bef69 Rename metaTiles
Now the 16x16 tiles are just called tiles and the 8x8 tiles are called subTiles.
2024-01-06 15:01:44 +01:00

32 lines
755 B
C

#ifndef BEANSTALKSUBTASK_H
#define BEANSTALKSUBTASK_H
#include "global.h"
#include "map.h"
/*
tiles 0x4000 and above create an entry here
*/
#define MAX_SPECIAL_TILES 0x100
typedef struct {
u16 tilePosAndLayer; // (layer << 12) | position
u16 tileIndex;
} SpecialTileEntry;
extern SpecialTileEntry gTilesForSpecialTiles[MAX_SPECIAL_TILES];
typedef struct {
u16 collision;
u16 tileIndex;
} struct_080B44D0;
void LoadMapData(MapDataDefinition* dataDefinition);
/**
* Renders a tileMap with 16x16 tiles into a subTileMap with 8x8 tiles.
*
* Takes into account the special tile indicess >= 0x4000 using GetTileSetIndexForSpecialTile.
*/
void RenderMapLayerToSubTileMap(u16* tileMap, MapLayer* mapLayer);
#endif // BEANSTALKSUBTASK_H