]> 4ch.mooo.com Git - 16.git/commitdiff
modified: scroll.c
authorsparky4 <sparky4@cock.li>
Mon, 24 Nov 2014 02:13:54 +0000 (20:13 -0600)
committersparky4 <sparky4@cock.li>
Mon, 24 Nov 2014 02:13:54 +0000 (20:13 -0600)
modified:   scroll.exe

scroll.c
scroll.exe

index 38240627431524cc05ecd980670d8150f207bf0f..ecbab564761bbb3e2db764213219bae5d29e50db 100644 (file)
--- 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)
                {
index 3d167c87f8f84006672bd51d65a87da98f43b430..151d21bad8f267127e4b3ab48d1ef94f9b220c63 100644 (file)
Binary files a/scroll.exe and b/scroll.exe differ