From: sparky4 Date: Mon, 24 Nov 2014 02:13:54 +0000 (-0600) Subject: modified: scroll.c X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=3475e3aaac07233e0ff303da947d4781d08b8f94;p=16.git modified: scroll.c modified: scroll.exe --- diff --git a/scroll.c b/scroll.c index 38240627..ecbab564 100644 --- a/scroll.c +++ b/scroll.c @@ -115,7 +115,7 @@ void main() { //TODO: render the player properly with animation and sprite sheet //TODO: fexible speeds - if(keyp(77)) + if(keyp(77) && !keyp(75)) { if(bg->tx >= 0 && bg->tx+20 < MAPX && player.tx == bg->tx + 10) { @@ -146,7 +146,7 @@ void main() { } } - if(keyp(75)) + if(keyp(75) && !keyp(77)) { if(bg->tx > 0 && bg->tx+20 <= MAPX && player.tx == bg->tx + 10) { @@ -178,7 +178,7 @@ void main() { } } - if(keyp(80)) + if(keyp(80) && !keyp(72)) { if(bg->ty >= 0 && bg->ty+15 < MAPY && player.ty == bg->ty + 8) { @@ -209,7 +209,7 @@ void main() { } } - if(keyp(72)) + if(keyp(72) && !keyp(80)) { if(bg->ty > 0 && bg->ty+15 <= MAPY && player.ty == bg->ty + 8) { diff --git a/scroll.exe b/scroll.exe index 3d167c87..151d21ba 100644 Binary files a/scroll.exe and b/scroll.exe differ