From: sparky4 Date: Sat, 22 Nov 2014 21:43:31 +0000 (-0600) Subject: modified: 16/modex16/scroll.c X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=ce8b533f6fb0b8437e41ac9b711223f6ac4daf2a;p=16.git modified: 16/modex16/scroll.c modified: 16/modex16/scroll.exe --- diff --git a/16/modex16/scroll.c b/16/modex16/scroll.c index 6f44f399..33965008 100644 --- a/16/modex16/scroll.c +++ b/16/modex16/scroll.c @@ -111,6 +111,8 @@ void main() { //top left corner & bottem right corner of map veiw be set as map edge trigger since maps are actually square //to stop scrolling and have the player position data move to the edge of the screen with respect to the direction //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 + + //TODO: render the player properly with animation and sprite sheet if(keyp(77)) { if(draw->tx >= 0 && draw->tx+20 < MAPX && player.tx == draw->tx + 10) @@ -213,7 +215,7 @@ void main() { player.ty--; } } - //modexDrawBmp(draw->page, player.x, player.y, &bmp); + modexDrawBmp(draw->page, player.x, player.y, &bmp); //modexShowPage(draw->page); } diff --git a/16/modex16/scroll.exe b/16/modex16/scroll.exe index fff217e5..9539ab01 100755 Binary files a/16/modex16/scroll.exe and b/16/modex16/scroll.exe differ