Fix kodongo ai slightly better.

Introduce a flag for the FixPrizeOnTheEyes bug
This commit is contained in:
aerinon
2023-03-30 15:00:39 -06:00
parent 0f541ad069
commit 67f22ab602
6 changed files with 32 additions and 20 deletions

View File

@@ -1,9 +1,18 @@
pushpc
org $9EC147
JSL NewKodongoCollision
NOP #$05
org $9EC152
Kodongo_SetDirection:
pullpc
NewKodongoCollision:
{
LDA $0DE0, X : INC A : AND.b #$03 : STA $0DE0, X
;If they collide more than 32time then kill them !
LDA $0DA0, X : INC A : STA $0DA0, X : CMP #$20 : BCC .continue
STZ $0DD0, X
;If they collide more than 4 times just set direction
LDA $0DA0, X : INC A : STA $0DA0, X : CMP #$04 : BCC .continue
PLA : PLA : PEA.w Kodongo_SetDirection-1
.continue
RTL
}
RTL