mv->dyThresh = mv->map->tiles->tileHeight * 2;
/* draw the tiles */
- modexClearRegion(mv->page, 0, 0, mv->page->width, mv->page->height, 0);
+ modexClearRegion(mv->page, 0, 0, mv->page->width+mv->map->tiles->tileWidth, mv->page->height+mv->map->tiles->tileHeight, 0);
py=0;
i=mv->ty * mv->map->width + mv->tx;
for(ty=mv->ty-1; py < mv->page->sh+mv->dyThresh && ty < mv->map->height; ty++, py+=mv->map->tiles->tileHeight) {
mv[i].pan = &pan;
/* set up paging */
//TODO: LOAD map data and position the map in the middle of the screen if smaller then screen
- mapGoTo(&mv[i], -1, -1);
+ mapGoTo(&mv[i], 0, 0);
//TODO: put player in starting position of spot
}
+ //modexClearRegion(mv[0].page, 0, 0, mv[0].page->width+TILEWH, mv[0].page->height+TILEWH, 15);
+
//default player position on the viewable map
player[panswitch].tx = mv[0].tx + mv[0].page->tilemidposscreenx;
player[panswitch].ty = mv[0].ty + mv[0].page->tilemidposscreeny;