From: sparky4 Date: Sat, 22 Nov 2014 21:24:40 +0000 (-0600) Subject: modified: 16/modex16/scroll.c X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=d55b4f17a016ad04e99c3ba78d01a3403585deda;p=16.git modified: 16/modex16/scroll.c modified: 16/modex16/scroll.exe next step is animating the player and or loading the map~ --- diff --git a/16/modex16/scroll.c b/16/modex16/scroll.c index 418c3ee2..55ca2ced 100644 --- a/16/modex16/scroll.c +++ b/16/modex16/scroll.c @@ -117,8 +117,8 @@ void main() { { for(q=0; q<(TILEWH/SPEED); q++) { - mapScrollRight(draw, SPEED); modexDrawBmp(draw->page, player.x+((q+1)*SPEED), player.y, &bmp); + mapScrollRight(draw, SPEED); modexShowPage(draw->page); // mapScrollRight(draw, 1); // SWAP(draw, show); @@ -142,8 +142,8 @@ void main() { { for(q=0; q<(TILEWH/SPEED); q++) { - mapScrollLeft(draw, SPEED); modexDrawBmp(draw->page, player.x-((q+1)*SPEED), player.y, &bmp); + mapScrollLeft(draw, SPEED); modexShowPage(draw->page); // mapScrollLeft(show, 1); // SWAP(draw, show); @@ -168,8 +168,8 @@ void main() { { for(q=0; q<(TILEWH/SPEED); q++) { - mapScrollDown(draw, SPEED); modexDrawBmp(draw->page, player.x, player.y+((q+1)*SPEED), &bmp); + mapScrollDown(draw, SPEED); modexShowPage(draw->page); // mapScrollDown(show, 1); // SWAP(draw, show); @@ -194,8 +194,8 @@ void main() { { for(q=0; q<(TILEWH/SPEED); q++) { - mapScrollUp(draw, SPEED); modexDrawBmp(draw->page, player.x, player.y-((q+1)*SPEED), &bmp); + mapScrollUp(draw, SPEED); modexShowPage(draw->page); // mapScrollUp(show, 1); // SWAP(draw, show); @@ -213,7 +213,7 @@ void main() { player.ty--; } } - modexDrawBmp(draw->page, player.x, player.y, &bmp); + //modexDrawBmp(draw->page, player.x, player.y, &bmp); //modexShowPage(draw->page); } diff --git a/16/modex16/scroll.exe b/16/modex16/scroll.exe index 325f3b0e..3ff2034b 100755 Binary files a/16/modex16/scroll.exe and b/16/modex16/scroll.exe differ