$(GFXCONV) -gs16 -pc16 -po16 -n $<
char sprTiles[9]={0,2,4, 6,8,10, 12,14,32}; // Remeber that sprites are interleave with 128 pix width,
char sprTiles[9]={0,1,2, 3,4,5, 6,7,8};
char sprTiles[9]={0,4,8, 12,64,68, 72,76,128};
oamInitGfxSet(&gfxpsrite, (&gfxpsrite_end-&gfxpsrite), &palsprite, 0, 0x4000, OBJ_SIZE16);
oamInitGfxSet(&gfxpsrite, (&gfxpsrite_end-&gfxpsrite), &palsprite, 0, 0x4000, OBJ_SIZE8);
oamInitGfxSet(&gfxpsrite, (&gfxpsrite_end-&gfxpsrite), &palsprite, 0, 0x4000, OBJ_SIZE32);
sprites.pic: sprites.bmp
@echo convert bitmap ... $(notdir $@)
$(GFXCONV) -gs16 -pc16 -po16 -n $<
sprites.pic: sprites.bmp
@echo convert bitmap ... $(notdir $@)
$(GFXCONV) -gs8 -pc16 -po16 -n $<
sprites.pic: sprites.bmp
@echo convert bitmap ... $(notdir $@)
$(GFXCONV) -gs32 -pc16 -po16 -n $<
CitationX does not need to be multiply by height
//512 pixel width 512/8 = 64
u16 *ptrMap = (u16 *) &mapCol + (OBJY>>3)*64 + (OBJX>>3);
u16 checkMapCol(short OBJX, short OBJY, u8 *mapCol){
//512 pixel width 512/8 = 64
//768 pixel height -> 768/8 = 96
u16 *ptrMap = (u16 *) &mapCol + (OBJY>>3)*64 + (OBJX>>3)*96;
return (*ptrMap);
}