]> 4ch.mooo.com Git - 16.git/commitdiff
modified: 16/modex16/scroll.c
authorsparky4 <sparky4@cock.li>
Sun, 23 Nov 2014 18:26:43 +0000 (12:26 -0600)
committersparky4 <sparky4@cock.li>
Sun, 23 Nov 2014 18:26:43 +0000 (12:26 -0600)
modified:   16/modex16/scroll.exe

16/modex16/scroll.c
16/modex16/scroll.exe

index dff1410c73e138172093352b79e140af1ef7f832..c64c810be7e9757c602835ae69b8b889e35a63b7 100644 (file)
@@ -122,11 +122,11 @@ void main() {
                        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++;
                }
@@ -136,7 +136,7 @@ void main() {
                        {
                                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++;
@@ -151,11 +151,11 @@ void main() {
                        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
                }
@@ -165,7 +165,7 @@ void main() {
                        {
                                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--;
@@ -180,11 +180,11 @@ void main() {
                        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++;
                }
@@ -194,7 +194,7 @@ void main() {
                        {
                                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++;
@@ -208,11 +208,11 @@ void main() {
                        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--;
                }
@@ -222,7 +222,7 @@ void main() {
                        {
                                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--;
index 3f3b8d78ee79cf6c86bcb4c425ff33ed58bbaafa..d4150b748afaa8fa8b94285b7d6437ba0b4d2cef 100755 (executable)
Binary files a/16/modex16/scroll.exe and b/16/modex16/scroll.exe differ