pete286/tiles.h

15 lines
435 B
C
Executable file

/*** T I L E S ***/
void tile_init();
void loadTiles(unsigned int tilesOffset, unsigned int *memTiles);
void loadMap(unsigned char *map, unsigned int w, unsigned int h);
void drawSprite(unsigned int *sprite, int x, int y);
void scroll(int newX, int newY);
void drawScreen();
#define PAGE_TILES_W 21
#define PAGE_TILES_H 14
#define PAGE_TILES_COUNT (PAGE_TILES_H * PAGE_TILES_W)
#define PAGE_STRIDE (PAGE_TILES_W << 1)