From 7967c77f796905e1cddfdd50e5f071484dcb5ca4 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Sat, 22 Nov 2014 13:35:15 -0600 Subject: [PATCH] modified: 16/modex16/scroll.c modified: 16/modex16/scroll.exe --- 16/modex16/scroll.c | 22 ++++++++++++++-------- 16/modex16/scroll.exe | Bin 19140 -> 19296 bytes 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/16/modex16/scroll.c b/16/modex16/scroll.c index ece6edfb..418c3ee2 100644 --- a/16/modex16/scroll.c +++ b/16/modex16/scroll.c @@ -114,10 +114,11 @@ void main() { if(keyp(77)) { if(draw->tx >= 0 && draw->tx+20 < MAPX && player.tx == draw->tx + 10) - { + { for(q=0; q<(TILEWH/SPEED); q++) { - mapScrollRight(draw, SPEED); + mapScrollRight(draw, SPEED); + modexDrawBmp(draw->page, player.x+((q+1)*SPEED), player.y, &bmp); modexShowPage(draw->page); // mapScrollRight(draw, 1); // SWAP(draw, show); @@ -140,8 +141,9 @@ void main() { if(draw->tx > 0 && draw->tx+20 <= MAPX && player.tx == draw->tx + 10) { for(q=0; q<(TILEWH/SPEED); q++) - { - mapScrollLeft(draw, SPEED); + { + mapScrollLeft(draw, SPEED); + modexDrawBmp(draw->page, player.x-((q+1)*SPEED), player.y, &bmp); modexShowPage(draw->page); // mapScrollLeft(show, 1); // SWAP(draw, show); @@ -165,8 +167,9 @@ void main() { if(draw->ty >= 0 && draw->ty+15 < MAPY && player.ty == draw->ty + 8) { for(q=0; q<(TILEWH/SPEED); q++) - { - mapScrollDown(draw, SPEED); + { + mapScrollDown(draw, SPEED); + modexDrawBmp(draw->page, player.x, player.y+((q+1)*SPEED), &bmp); modexShowPage(draw->page); // mapScrollDown(show, 1); // SWAP(draw, show); @@ -191,8 +194,9 @@ void main() { { for(q=0; q<(TILEWH/SPEED); q++) { - mapScrollUp(draw, SPEED); - modexShowPage(draw->page); + mapScrollUp(draw, SPEED); + modexDrawBmp(draw->page, player.x, player.y-((q+1)*SPEED), &bmp); + modexShowPage(draw->page); // mapScrollUp(show, 1); // SWAP(draw, show); } @@ -219,6 +223,8 @@ void main() { printf("Project 16 scroll.exe\n"); printf("tx: %d\n", draw->tx); printf("ty: %d\n", draw->ty); + printf("player.x: %d\n", player.x); + printf("player.y: %d\n", player.y); printf("player.tx: %d\n", player.tx); printf("player.ty: %d\n", player.ty); } diff --git a/16/modex16/scroll.exe b/16/modex16/scroll.exe index 0b089452463d1112ada45a50d35dd87beb527eec..325f3b0ed3fe942f3af089dfe14dc725f691e3e1 100755 GIT binary patch delta 3761 zcmZu!3sh4_8lIV($K{m-i~&Jnq!K{{!L8H~!Jrr)wJpl3_(J<~d#rsdCbI1+i6@7a z=>>M%aocWRrzvgE+19OAdU~#~Es=PNwre*aYa><{A8iMt)oM#scFF!Xpl#1?a_-Fh z|NM_{{`u#hdk_8z4?K^{?pm`ETak!Vs2@e6iE0?4^zjH;(CDw;fKW{`LVpFG&4kb% zc%ty!mWt5I)Mv{~p6lbPmMveoY6bnucOgf{h<6&=%}CBc&D$>XWTDx4nLCu0I?u^j zz`VxOQzYjIZ`1RY+U9LxZWNoHVe0(4x&EBbIbbO|QPkV)Jjb)tl9Q|BQEQ(dInS#_ z)Ot+t_X+Q-jt;bj1phGs`d&fuIKSq<6&1gKH#7v?E9AQn?}Cx*ZfSw4A+UY1+K5VX z(2jB-!J1vuC%9)74YdkFRQAMFxHhJ8Dhh7oI}x}2grt59iRb?!S@d%x z{*aIxqFrN_SHvv0j9TuAzN2lBJf$*zjj8kB zeh%$OQ@AD2T+cr~&wScFT4myUKX0>%A7SGN5ZsRlb)NSVXfOCxq%A&vl3>)tcw&qf z5AC=9MABB8l!tE%3v=i197e*{RQfqS^^7Vf)cAB*nB&3D>=H9OAQdMS)fwX*H0@vQmuPOZ^~Y0-0WSIUp%5I#C!Hv!I0q zdeQbvidupWlqkq`q$1gYS^`$@)IYouHS0*nqlWzmDKh;@YgVrfR>~^GUnA93jX|&e ztfw&g%+uA{cm-2unAwvpQ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