Use macros and defines in tileset_anims

This commit is contained in:
Diegoisawesome
2018-09-22 15:02:49 -05:00
parent f613176308
commit d50554bb8e
2 changed files with 31 additions and 27 deletions

View File

@@ -61,6 +61,9 @@
#define TILE_SIZE_4BPP 32
#define TILE_SIZE_8BPP 64
#define TILE_OFFSET_4BPP(n) ((n) * TILE_SIZE_4BPP)
#define TILE_OFFSET_8BPP(n) ((n) * TILE_SIZE_8BPP)
#define TOTAL_OBJ_TILE_COUNT 1024
#define WIN_RANGE(a, b) (((a) << 8) | (b))