make Octorock_ShootEmUp use rand for 4way or single

This commit is contained in:
scawful
2024-07-27 15:56:32 -04:00
parent fe334be8b5
commit b7674a4c95

View File

@@ -189,27 +189,14 @@ Sprite_Octorok_Move:
} }
; TODO: Make this randomized behavior to free up Sprite 0A
Octorock_ShootEmUp: Octorock_ShootEmUp:
{ {
LDA.w SprType,X : SEC : SBC.b #$08 JSL GetRandomInt : AND.b #$01 : BEQ .single_shot
JSR Octorok_Shoot4Ways
REP #$30 RTS
.single_shot
AND.w #$00FF JSR Octorok_ShootSingle
ASL A
TAY
LDA.w .vectors, Y : DEC A : PHA
SEP #$30
RTS RTS
.vectors
dw Octorok_ShootSingle ; Sprite 08
dw $0000
dw Octorok_Shoot4Ways ; Sprite 0A
} }
; ========================================================= ; =========================================================