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 b53e6e4..3924a8c 100644 Binary files a/gscats.2mg and b/gscats.2mg differ 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 ;