\r
#define TILEWH 16\r
#define QUADWH (TILEWH/4)
-#define SPEED 1
+#define SPEED 2
//place holder definitions
#define MAPX 40
//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
\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
\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
\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