//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<16; q++) {\r
+ for(q=0; q<TILEWH; 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<16; q++) {\r
+ for(q=0; q<TILEWH; 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<16; q++) {\r
+ for(q=0; q<TILEWH; 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<16; q++) {\r
+ for(q=0; q<TILEWH; q++) {\r
mapScrollUp(draw, SPEED);\r
modexShowPage(draw->page);\r
// mapScrollUp(show, 1);\r