From: sparky4 Date: Mon, 2 May 2016 21:13:45 +0000 (-0500) Subject: panning updated and stuff wwww X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=6925ca09eb13977c9d45441c47dac8ebf1de8330;p=16.git panning updated and stuff wwww --- diff --git a/src/scroll.c b/src/scroll.c index d262a24e..e6eda6fa 100755 --- a/src/scroll.c +++ b/src/scroll.c @@ -83,7 +83,7 @@ void main(int argc, char *argv[]) return; } - pan.pn=0; + pan.pn=1; //player[0].data = &pp; printf("starting timer "); @@ -160,7 +160,7 @@ void main(int argc, char *argv[]) /* setup camera and screen~ */ modexHiganbanaPageSetup(&gvar.video); - for(i=0;iwidth+TILEWH, mv[0].page->height+TILEWH, 15); + //TODO: put player in starting position of spot //default player position on the viewable map player[panswitch].tx = mv[0].tx + mv[0].page->tilemidposscreenx; player[panswitch].ty = mv[0].ty + mv[0].page->tilemidposscreeny; @@ -208,7 +208,7 @@ void main(int argc, char *argv[]) if(!panswitch){ walk(mv, player, panswitch); }else{ - panpagemanual(mv, player, panswitch); + panpagemanual(mv, player, pan.pn); //printf(" player[panswitch].q: %d", player[panswitch].q); printf(" player[panswitch].d: %d\n", player[panswitch].d); }