for(q=0; q<(TILEWH/SPEED); q++)
{\r
// modexDrawBmp(draw->page, &bmp);
- animatePlayer(draw, 1, 1, player.x, player.y, q, &ptmp);
+ animatePlayer(show, 1, 1, player.x, player.y, q, &ptmp);
mapScrollRight(draw, SPEED);
modexShowPage(draw->page);\r
-// mapScrollRight(draw, SPEED);\r
-// SWAP(draw, show);\r
+ mapScrollRight(show, SPEED);\r
+ SWAP(draw, show);\r
}
player.tx++;
}
{
player.x+=SPEED;
// modexDrawBmp(draw->page, player.x, player.y, &bmp);
- animatePlayer(draw, 1, 0, player.x, player.y, q, &ptmp);
+ animatePlayer(show, 1, 0, player.x, player.y, q, &ptmp);
modexShowPage(draw->page);
}
player.tx++;
for(q=0; q<(TILEWH/SPEED); q++)
{
// modexDrawBmp(draw->page, player.x-((q+1)*SPEED), player.y, &bmp);
- animatePlayer(draw, 3, 1, player.x, player.y, q, &ptmp);
+ animatePlayer(show, 3, 1, player.x, player.y, q, &ptmp);
mapScrollLeft(draw, SPEED);
modexShowPage(draw->page);\r
-// mapScrollLeft(show, SPEED);\r
-// SWAP(draw, show);\r
+ mapScrollLeft(show, SPEED);\r
+ SWAP(draw, show);\r
}
player.tx--;\r
}
{
player.x-=SPEED;
// modexDrawBmp(draw->page, player.x, player.y, &bmp);
- animatePlayer(draw, 3, 0, player.x, player.y, q, &ptmp);
+ animatePlayer(show, 3, 0, player.x, player.y, q, &ptmp);
modexShowPage(draw->page);
}
player.tx--;
for(q=0; q<(TILEWH/SPEED); q++)
{
// modexDrawBmp(draw->page, player.x, player.y+((q+1)*SPEED), &bmp);
- animatePlayer(draw, 2, 1, player.x, player.y, q, &ptmp);
+ animatePlayer(show, 2, 1, player.x, player.y, q, &ptmp);
mapScrollDown(draw, SPEED);
modexShowPage(draw->page);\r
-// mapScrollDown(show, SPEED);\r
-// SWAP(draw, show);\r
+ mapScrollDown(show, SPEED);\r
+ SWAP(draw, show);\r
}
player.ty++;
}
{
player.y+=SPEED;
// modexDrawBmp(draw->page, player.x, player.y, &bmp);
- animatePlayer(draw, 2, 0, player.x, player.y, q, &ptmp);
+ animatePlayer(show, 2, 0, player.x, player.y, q, &ptmp);
modexShowPage(draw->page);
}
player.ty++;
for(q=0; q<(TILEWH/SPEED); q++)
{\r
// modexDrawBmp(draw->page, player.x, player.y-((q+1)*SPEED), &bmp);
- animatePlayer(draw, 0, 1, player.x, player.y, q, &ptmp);
+ animatePlayer(show, 0, 1, player.x, player.y, q, &ptmp);
mapScrollUp(draw, SPEED);
modexShowPage(draw->page);
-// mapScrollUp(show, SPEED);\r
-// SWAP(draw, show);\r
+ mapScrollUp(show, SPEED);\r
+ SWAP(draw, show);\r
}
player.ty--;
}
{
player.y-=SPEED;
// modexDrawBmp(draw->page, player.x, player.y, &bmp);
- animatePlayer(draw, 0, 0, player.x, player.y, q, &ptmp);
+ animatePlayer(show, 0, 0, player.x, player.y, q, &ptmp);
modexShowPage(draw->page);
}
player.ty--;