mirror of
https://github.com/blondie7575/GSCats.git
synced 2024-11-24 19:32:33 +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
|
||||
;
|
||||
processTerrainImpact:
|
||||
ldy #0 ; Assume projectile 0
|
||||
PROJECTILEPTR_Y
|
||||
ldy projectileActive
|
||||
|
||||
; Shift impact point to forward bottom corner according to V
|
||||
lda projectileData+JD_VX,y
|
||||
bmi processTerrainImpactNegative
|
||||
|
||||
lda projectileData+GO_POSX,y
|
||||
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
|
||||
lda projectileData+GO_POSY,y
|
||||
sec
|
||||
|
Loading…
Reference in New Issue
Block a user