From 6925ca09eb13977c9d45441c47dac8ebf1de8330 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Mon, 2 May 2016 16:13:45 -0500 Subject: [PATCH] panning updated and stuff wwww --- src/scroll.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); } -- 2.39.5