From 4cd1dcfbef66367315e2d22efbc939e4e77f1bcc Mon Sep 17 00:00:00 2001 From: blondie7575 Date: Sun, 22 Oct 2017 13:44:05 -0700 Subject: [PATCH] Fixed rendering issues with projectiles during scrolling --- gamemanager.s | 3 +++ gscats.2mg | Bin 819264 -> 819264 bytes projectile.s | 19 +++++++++++++++++++ 3 files changed, 22 insertions(+) diff --git a/gamemanager.s b/gamemanager.s index a769e2f..d295ada 100644 --- a/gamemanager.s +++ b/gamemanager.s @@ -44,6 +44,7 @@ beginGameplay: jsr renderPlayerHeader jsr protectPlayers + jsr protectProjectiles gameplayLoop: @@ -217,6 +218,7 @@ endGame: scrollMap: jsr unclipTerrain jsr unrenderPlayers + jsr unrenderProjectiles sta mapScrollPos asl @@ -230,6 +232,7 @@ scrollMap: sta mapScrollRequested jsr protectPlayers + jsr protectProjectiles lda #1 sta terrainDirty rts diff --git a/gscats.2mg b/gscats.2mg index b53e6e4b5809267a8502520194008bd8c0849961..3924a8c6d6a65e593c3b28b99d101d285fd773f2 100644 GIT binary patch delta 2545 zcmeH|VN6?96vyvvp=&#sb&I2guHG=LV>6}>V;D*VoRcAetz&+`EOao&YPk1-4IoU@ zx{YZTUp7a~gV1G2fC1Ud78ld>!y+Ne0*OnAelUT!kV!~pL_0T)TMYBu*PZ~M^n>5@ zrRUw>`@eI~z3n^yzKO`riO9~Y?(`?VYA0`P-H}Pi4@5%Gj`S@rtXyWA$mTZ=yjEIs zpscj&O`netVp%4XOd83?EGx`9*_j^eOsAeRv`yJhtB%bP(06#CQ4CZA$!Qzq(yv&uM38>8^|p z?tAuDCwJr)E_G5NX*ry=4j3uIR@FsO=~0# zGQF|rZQ8Yo7He6*(&BJVhiSwGAZ zX7(i48|0YF^+q`s@UxDIc@_(?&lT1XV(VMx!KBeY1XuCoWX_2>Y-(a!nr) z74qnI=|jTzl-|a})B8vwf7n%ccOSXc!5teTZcr0h!!BnK6!?WQhFx&4B7ga@TE_!A z=h@RHlE_p!zsxziR2yyLfhgyZd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x=$>5NYFOat+H49 zqQBL3OcMgtf_3`0jiyiNYmIT3i|?&_s`2v>PdQn0>k=V1OBa(0X}`G+-hb)KHX5bd zHksNsAhZ9%%B^)B1`^7^C*c+K&`6u(#fJlB@kR2$XGCpE;M|(xjC^+@kte1Ip^J+W z6a+hh17RBBJi-NpO9)jolcxru7U3YmZG<}j5v%H5lvWXPMVuZa2C25F=sU%7Z2-gsc@kAA?5=2XY)^qnfF0%ilV YgJpp^z_P)dU@kB>*tW}6&YU;@00+VJE&u=k diff --git a/projectile.s b/projectile.s index 7b57032..1953700 100644 --- a/projectile.s +++ b/projectile.s @@ -313,6 +313,25 @@ deleteProjectile: rts +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +; protectProjectiles +; +; +protectProjectiles: + SAVE_AXY + + lda projectileData + bmi protectProjectilesDone + + VRAM_PTR projectileData + lda #projectileData+GO_BACKGROUND + jsr protectGameObject + +protectProjectilesDone: + RESTORE_AXY + rts + + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; renderProjectiles ;