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

scroll.c
scroll.exe

index 0a6a8c332da8e3ef9e4a4aaaad132da4ca6debd6..24198a9f7021c21de7bf52c5506af7c61fb8ccab 100644 (file)
--- 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);
+               }
        }
        
        }
index a57e9dde17221231b80b6f945d20d25375bec60f..2bc2e623dc3b8470149270bfeee218945a34def7 100644 (file)
Binary files a/scroll.exe and b/scroll.exe differ