]> 4ch.mooo.com Git - 16.git/commitdiff
modified: 16/modex16/scroll.c
authorsparky4 <sparky4@cock.li>
Sat, 22 Nov 2014 21:24:40 +0000 (15:24 -0600)
committersparky4 <sparky4@cock.li>
Sat, 22 Nov 2014 21:24:40 +0000 (15:24 -0600)
modified:   16/modex16/scroll.exe
next step is animating the player and or loading the map~

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

index 418c3ee2a9ffe7557b0e47310b1fb326abace386..55ca2cedc07bab235cc820f4f0500a1c2b104e1d 100644 (file)
@@ -117,8 +117,8 @@ void main() {
                {
                        for(q=0; q<(TILEWH/SPEED); q++)
                        {\r
-                               mapScrollRight(draw, SPEED);
                                modexDrawBmp(draw->page, player.x+((q+1)*SPEED), player.y, &bmp);
+                               mapScrollRight(draw, SPEED);
                                modexShowPage(draw->page);\r
 //             mapScrollRight(draw, 1);\r
 //             SWAP(draw, show);\r
@@ -142,8 +142,8 @@ void main() {
                {\r
                        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);\r
 //             mapScrollLeft(show, 1);\r
 //             SWAP(draw, show);\r
@@ -168,8 +168,8 @@ void main() {
                {\r
                        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);\r
 //             mapScrollDown(show, 1);\r
 //             SWAP(draw, show);\r
@@ -194,8 +194,8 @@ void main() {
                {\r
                        for(q=0; q<(TILEWH/SPEED); q++)
                        {\r
-                               mapScrollUp(draw, SPEED);
                                modexDrawBmp(draw->page, player.x, player.y-((q+1)*SPEED), &bmp);
+                               mapScrollUp(draw, SPEED);
                                modexShowPage(draw->page);
 //             mapScrollUp(show, 1);\r
 //             SWAP(draw, show);\r
@@ -213,7 +213,7 @@ void main() {
                        player.ty--;
                }\r
        }\r
-       modexDrawBmp(draw->page, player.x, player.y, &bmp);\r
+       //modexDrawBmp(draw->page, player.x, player.y, &bmp);\r
        //modexShowPage(draw->page);\r
 \r
        }\r
index 325f3b0ed3fe942f3af089dfe14dc725f691e3e1..3ff2034bbd348f0e0d51be264170846ab6d17334 100755 (executable)
Binary files a/16/modex16/scroll.exe and b/16/modex16/scroll.exe differ