I'm trying to load my road on plane b and my sky on plane a. When I load each of them separately it works fine but when I try to load both, I get bits of the road across the top of the screen. What could cause this? Here are some shots and the code I'm using to get the images on screen. I'm a total noob at this so have probably done something really stupid...
Code: Select all
// DRAW SKY
u16 ind_tileset;
ind_tileset = TILE_USERINDEX;
VDP_loadTileSet(sky.tileset, ind_tileset, FALSE);
Map *map = unpackMap(sky.map, NULL);
VDP_setMapEx(APLAN, map, TILE_ATTR_FULL(PAL1, FALSE, FALSE, FALSE, ind_tileset), 0, 0, 0, 0, 40, 12);
// DRAW ROAD
u16 ind_tileset2;
ind_tileset2 = TILE_USERINDEX;
VDP_loadTileSet(road.tileset, ind_tileset2, FALSE);
Map *map2 = unpackMap(road.map, NULL);
VDP_setMapEx(BPLAN, map2, TILE_ATTR_FULL(PAL2, FALSE, FALSE, FALSE, ind_tileset2), 0, 12, 0, 0, 40, 16);