I wish to keep a full scrolling PlanA (horizontal / vertical). I load all the tiles in PlanA for the scrolling and I want to show a HUD in top or bottom of the screen :
Code: Select all
u16 i,j;
for(i=0;i<32;i++)
{
for(j=0;j<64;j++)
{
VDP_setTileMapXY(VDP_PLAN_B, TILE_ATTR_FULL(PAL0, 0, 0, 0, 1 ), j, i); //fond
VDP_setTileMapXY(VDP_PLAN_A, TILE_ATTR_FULL(PAL0, 0, 0, 0, 80 ), j, i); //devant
}
}
VDP_setWindowAddress(0xB000);
for(i=0;i<4;i++)
{
for(j=0;j<40;j++)
{
VDP_setTileMapXY(VDP_WINDOW , TILE_ATTR_FULL(PAL0, 0, 0, 0, 2 ), j, i);
}
}
I look the source and find the 0xB000 default value for Window Plan but maybe the vdp_setTileMap is not the good way to use it.
The values of my tiles are good and upload in vram.