]> 4ch.mooo.com Git - 16.git/commitdiff
modified: 16/modex16/scroll.c
authorsparky4 <sparky4@cock.li>
Sat, 22 Nov 2014 16:30:33 +0000 (10:30 -0600)
committersparky4 <sparky4@cock.li>
Sat, 22 Nov 2014 16:30:33 +0000 (10:30 -0600)
modified:   16/modex16/scroll.exe

finalizing that area of code~

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

index 49130bfc0449c2ea4b829875a9b99512b27531be..55e2fe9465d205d90c21a657d43cafd3c10281d1 100644 (file)
@@ -53,7 +53,7 @@ void mapDrawCol(map_view_t *mv, int tx, int ty, word x);
 \r
 #define TILEWH 16\r
 #define QUADWH (TILEWH/4)
-#define SPEED 1
+#define SPEED 2
 
 //place holder definitions
 #define MAPX 40
@@ -114,7 +114,7 @@ void main() {
        //when player.tx or player.ty == 0 or player.tx == 20 or player.ty == 15 then stop because that is edge of map and you do not want to walk of the map\r
        if(keyp(77)){
                if(draw->tx >= 0 && draw->tx+20 < MAPX)\r
-                       for(q=0; q<TILEWH; q++) {\r
+                       for(q=0; q<(TILEWH/SPEED); q++) {\r
                                mapScrollRight(draw, SPEED);\r
                                modexShowPage(draw->page);\r
 //             mapScrollRight(draw, 1);\r
@@ -125,7 +125,7 @@ void main() {
 \r
        if(keyp(75)){
                if(draw->tx > 0 && draw->tx+20 <= MAPX)\r
-                       for(q=0; q<TILEWH; q++) {\r
+                       for(q=0; q<(TILEWH/SPEED); q++) {\r
                                mapScrollLeft(draw, SPEED);\r
                                modexShowPage(draw->page);\r
 //             mapScrollLeft(show, 1);\r
@@ -136,7 +136,7 @@ void main() {
 \r
        if(keyp(80)){
                if(draw->ty >= 0 && draw->ty+15 < MAPY)\r
-                       for(q=0; q<TILEWH; q++) {\r
+                       for(q=0; q<(TILEWH/SPEED); q++) {\r
                                mapScrollDown(draw, SPEED);\r
                                modexShowPage(draw->page);\r
 //             mapScrollDown(show, 1);\r
@@ -147,7 +147,7 @@ void main() {
 \r
        if(keyp(72)){
                if(draw->ty > 0 && draw->ty+15 <= MAPY)\r
-                       for(q=0; q<TILEWH; q++) {\r
+                       for(q=0; q<(TILEWH/SPEED); q++) {\r
                                mapScrollUp(draw, SPEED);\r
                                modexShowPage(draw->page);\r
 //             mapScrollUp(show, 1);\r
index 603a936804aed171a429cccf6e60913515708492..7b65f2fe5ba4e7e60270ee9cff412a1624e6c84a 100755 (executable)
Binary files a/16/modex16/scroll.exe and b/16/modex16/scroll.exe differ