X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Fscroll.c;h=af5c48f429cf839e2ea40fb16b61a63861e4a5be;hb=d280f25c9633d068fd3e106f2418e59ace6da2f1;hp=df52dd7aa34294df88071be0b5402dd2c759034f;hpb=0f1f17dc05c1f9530651580fc5c23b121b8969ab;p=16.git diff --git a/src/scroll.c b/src/scroll.c index df52dd7a..af5c48f4 100755 --- a/src/scroll.c +++ b/src/scroll.c @@ -48,6 +48,7 @@ void main() //static int persist_aniframe = 0; /* gonna be increased to 1 before being used, so 0 is ok for default */ //map_view_db_t pgid[4]; + word pg; #ifdef FADE byte *dpal, *gpal; #endif @@ -185,7 +186,6 @@ void main() #endif modexShowPage(spri->page); -// printf("Total used @ before loop: %zu\n", oldfreemem-GetFreeSize()); modexClearRegion(mv[2].page, 0, 0, mv[2].page->width, mv[2].page->height, 1); #ifdef MODEX #ifdef FADE @@ -194,7 +194,7 @@ void main() #endif while(!IN_KeyDown(sc_Escape) && player[0].hp>0) { - shinku(mv[1].page, &gvar); + shinku(mv, &gvar); IN_ReadControl(0,&player); //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 @@ -372,6 +372,13 @@ void main() } IN_Ack(); } + //TODO fmemtest into page + if(IN_KeyDown(4+1)) //4 + { + pg=1; + SELECT_ALL_PLANES(); + _fmemset(((mv[pg].page->data+4)+(16*(mv[pg].page->width/4))), 15, 4); + } if((player[0].q==1) && !(player[0].x%TILEWH==0 && player[0].y%TILEWH==0)) break; //incase things go out of sync! }