mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
163f3e0c3f
Separate 1bpp font tiles from gfx/mobile/phone_tiles.png
32 lines
910 B
NASM
32 lines
910 B
NASM
TILE_WIDTH EQU 8 ; pixels
|
|
LEN_1BPP_TILE EQU 1 * TILE_WIDTH ; bytes
|
|
LEN_2BPP_TILE EQU 2 * TILE_WIDTH ; bytes
|
|
|
|
NUM_PAL_COLORS EQU 4
|
|
|
|
SCREEN_WIDTH EQU 20 ; tiles
|
|
SCREEN_HEIGHT EQU 18 ; tiles
|
|
SCREEN_WIDTH_PX EQU SCREEN_WIDTH * TILE_WIDTH ; pixels
|
|
SCREEN_HEIGHT_PX EQU SCREEN_HEIGHT * TILE_WIDTH ; pixels
|
|
|
|
BG_MAP_WIDTH EQU 32 ; tiles
|
|
BG_MAP_HEIGHT EQU 32 ; tiles
|
|
WMISC_WIDTH EQU 6 * 4
|
|
WMISC_HEIGHT EQU 5 * 4
|
|
|
|
HP_BAR_LENGTH EQU 6 ; tiles
|
|
EXP_BAR_LENGTH EQU 8 ; tiles
|
|
HP_BAR_LENGTH_PX EQU HP_BAR_LENGTH * TILE_WIDTH ; pixels
|
|
EXP_BAR_LENGTH_PX EQU EXP_BAR_LENGTH * TILE_WIDTH ; pixels
|
|
|
|
PALPACKET_LENGTH EQU $10
|
|
|
|
; sprite_oam_struct members (see macros/wram.asm)
|
|
const_def
|
|
const SPRITEOAMSTRUCT_YCOORD ; 0
|
|
const SPRITEOAMSTRUCT_XCOORD ; 1
|
|
const SPRITEOAMSTRUCT_TILE_ID ; 2
|
|
const SPRITEOAMSTRUCT_ATTRIBUTES ; 3
|
|
SPRITEOAMSTRUCT_LENGTH EQU const_value
|
|
NUM_SPRITE_OAM_STRUCTS EQU 40 ; see Sprites
|