#include "mode7bg.inc"
u16 pad0;
u8 angle;
u16 zscale;
extern u16 m7sx, m7sy;
int main(void)
{
bgInitMapTileSet7lz(&mode7bg_til, &mode7bg_map, &mode7bg_pal, (&mode7bg_tilend - &mode7bg_til), 0x0000);
angle = 0; zscale=0x200;
while (1)
{
if (pad0)
{
switch (pad0)
{
angle++;
break;
angle--;
break;
if (zscale>16) zscale-=16;
break;
if (zscale<0xF00) zscale+=16;
break;
}
}
}
return 0;
}
void bgInitMapTileSet7lz(u8 *tileSource, u8 *mapSource, u8 *tilePalette, u16 tileSize, u16 address)
Initializes a Tile & Map Set and Loads the Tiles compressed with LZ algo into VRAM & Map GFX into VRA...
void WaitForVBlank(void)
Waits for a VBlank interrupt.
the master include file for snes applications.
void setMode7Rot(u8 angle)
Change angle view in mode 7 with matrix transformation.
void setScreenOn(void)
Put screen On.
void setMode7(u8 mode)
Put screen in mode 7 with generic init.