From: sparky4 Date: Mon, 24 Nov 2014 00:39:45 +0000 (-0600) Subject: modified: scroll.c X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=838f0512c4cc6c3c79241fcc971490c8f6eac5f3;p=16.git modified: scroll.c modified: scroll.exe --- diff --git a/scroll.c b/scroll.c index 0a6a8c33..24198a9f 100644 --- a/scroll.c +++ b/scroll.c @@ -138,6 +138,12 @@ void main() { } player.tx++; } + else + { + modexCopyPageRegion(bg->page, spri->page, player.x-4, player.y-TILEWH-2, player.x-4, player.y-TILEWH-2, 24, 36); + modexDrawSpriteRegion(spri->page, player.x-4, player.y-TILEWH, 24, 32, 24, 32, &ptmp); + modexShowPage(spri->page); + } } if(keyp(75)) @@ -164,6 +170,12 @@ void main() { } player.tx--; } + else + { + modexCopyPageRegion(bg->page, spri->page, player.x-4, player.y-TILEWH-2, player.x-4, player.y-TILEWH-2, 24, 36); + modexDrawSpriteRegion(spri->page, player.x-4, player.y-TILEWH, 24, 96, 24, 32, &ptmp); + modexShowPage(spri->page); + } } if(keyp(80)) @@ -189,6 +201,12 @@ void main() { } player.ty++; } + else + { + modexCopyPageRegion(bg->page, spri->page, player.x-4, player.y-TILEWH-2, player.x-4, player.y-TILEWH-2, 24, 36); + modexDrawSpriteRegion(spri->page, player.x-4, player.y-TILEWH, 24, 64, 24, 32, &ptmp); + modexShowPage(spri->page); + } } if(keyp(72)) @@ -214,6 +232,12 @@ void main() { } player.ty--; } + else + { + modexCopyPageRegion(bg->page, spri->page, player.x-4, player.y-TILEWH-2, player.x-4, player.y-TILEWH-2, 24, 36); + modexDrawSpriteRegion(spri->page, player.x-4, player.y-TILEWH, 24, 0, 24, 32, &ptmp); + modexShowPage(spri->page); + } } } diff --git a/scroll.exe b/scroll.exe index a57e9dde..2bc2e623 100644 Binary files a/scroll.exe and b/scroll.exe differ