+ //temp testing
+ /*if(bg->tx >= 0 && bg->tx+20 < MAPX && player.tx == bg->tx + 10)
+ {
+ for(q=1; q<=(TILEWH/SPEED); q++)
+ {
+ //INC_PER_FRAME;
+ //animatePlayer(bg, spri, mask, 1, 1, player.x, player.y, persist_aniframe, q, &ptmp);
+ //animatePlayer(bg, spri, 1, 1, player.x, player.y, persist_aniframe, q, &ptmp);
+ mapScrollRight(bg, SPEED);
+ //mapScrollRight(spri, SPEED);
+ //mapScrollRight(mask, SPEED);
+ modexShowPage(bg->page);
+ }
+ player.tx++;
+ }
+ else if(player.tx < MAPX)
+ {
+ for(q=1; q<=(TILEWH/SPEED); q++)
+ {
+ INC_PER_FRAME;
+ player.x+=SPEED;
+ //animatePlayer(bg, spri, mask, 1, 0, player.x, player.y, persist_aniframe, q, &ptmp);
+ animatePlayer(bg, spri, 1, 0, player.x, player.y, persist_aniframe, q, &ptmp);
+ modexShowPage(spri->page);
+ }
+ player.tx++;
+ }
+ else
+ {
+break;
+ }*/