X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Fscroll.c;h=5933a249dca00ccdefe60b8fd46ffe53236a2208;hb=88a70251309902e450052de212343e9d1835d834;hp=7e04266a478e5f0c607a71100c59bc199f1aca2c;hpb=94578d5f17e7c074bd39ffe9d5f869b0f2915ad0;p=16.git diff --git a/src/scroll.c b/src/scroll.c index 7e04266a..5933a249 100644 --- a/src/scroll.c +++ b/src/scroll.c @@ -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 //to stop scrolling and have the player position data move to the edge of the screen with respect to the direction //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 - #define INC_PER_FRAME if(player.q&1) persist_aniframe++; if(persist_aniframe>4) persist_aniframe = 1; + #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! /*#define INC_PER_FRAME_NPC if(npc0.q&1) persist_aniframe++; if(persist_aniframe>4) persist_aniframe = 1; if(npc0.d == 0 && npc0.q == 1) npc0.d =rand()%8;