mirror of
https://github.com/blondie7575/GSCats.git
synced 2025-02-20 06:28:58 +00:00
Crater tuning by projectile direction
This commit is contained in:
parent
b9a6f06270
commit
28c2cbae54
16
projectile.s
16
projectile.s
@ -880,11 +880,21 @@ processPlayerImpactDeath:
|
|||||||
; Trashes A,Y
|
; Trashes A,Y
|
||||||
;
|
;
|
||||||
processTerrainImpact:
|
processTerrainImpact:
|
||||||
ldy #0 ; Assume projectile 0
|
ldy projectileActive
|
||||||
PROJECTILEPTR_Y
|
|
||||||
|
; Shift impact point to forward bottom corner according to V
|
||||||
|
lda projectileData+JD_VX,y
|
||||||
|
bmi processTerrainImpactNegative
|
||||||
|
|
||||||
lda projectileData+GO_POSX,y
|
lda projectileData+GO_POSX,y
|
||||||
clc
|
clc
|
||||||
adc #GAMEOBJECTWIDTH/2
|
adc #GAMEOBJECTWIDTH/2 ; /2 is a fudge that makes crater location look better in this direction
|
||||||
|
bra processTerrainStoreContinue
|
||||||
|
|
||||||
|
processTerrainImpactNegative:
|
||||||
|
lda projectileData+GO_POSX,y
|
||||||
|
|
||||||
|
processTerrainStoreContinue:
|
||||||
sta PARAML0
|
sta PARAML0
|
||||||
lda projectileData+GO_POSY,y
|
lda projectileData+GO_POSY,y
|
||||||
sec
|
sec
|
||||||
|
Loading…
x
Reference in New Issue
Block a user