]> 4ch.mooo.com Git - 16.git/commitdiff
~~~~ collision detection is good! ~~~~
authorsparky4 <sparky4@cock.li>
Sun, 19 Apr 2015 23:05:02 +0000 (18:05 -0500)
committersparky4 <sparky4@cock.li>
Sun, 19 Apr 2015 23:05:02 +0000 (18:05 -0500)
modified:   scroll.exe
modified:   src/scroll.c

scroll.exe
src/scroll.c

index db1e57709fb9d6b9aa00ea4141dc4ad9d3b7b638..2724e750b06cef97ea035f925b3914fa9b4d00ee 100644 (file)
Binary files a/scroll.exe and b/scroll.exe differ
index 7e04266a478e5f0c607a71100c59bc199f1aca2c..5933a249dca00ccdefe60b8fd46ffe53236a2208 100644 (file)
@@ -249,7 +249,9 @@ void main() {
        //top left corner & bottem right corner of map veiw be set as map edge trigger since maps are actually square\r
        //to stop scrolling and have the player position data move to the edge of the screen with respect to the direction\r
        //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\r
-       #define INC_PER_FRAME if(player.q&1) persist_aniframe++; if(persist_aniframe>4) persist_aniframe = 1;\r
+       #define INC_PER_FRAME if(player.q&1) persist_aniframe++; if(persist_aniframe>4) persist_aniframe = 1;
+
+       //modexClearRegion(bg->page, player.x, player.y, 16, 16, 4); //currently the over scan color!\r
        /*#define INC_PER_FRAME_NPC if(npc0.q&1) persist_aniframe++; if(persist_aniframe>4) persist_aniframe = 1;\r
 \r
        if(npc0.d == 0 && npc0.q == 1) npc0.d =rand()%8;\r