AI battery with SFX

This commit is contained in:
Pecusx
2023-06-19 09:56:31 +02:00
parent e201bf6fe0
commit b156b301f9
5 changed files with 4 additions and 1 deletions
+3
View File
@@ -268,6 +268,9 @@ EnoughEnergy
lda #99
sta Energy,x
jsr MaxForceCalculate
mva #sfx_battery sfx_effect
ldy #7
jsr PauseYFrames ; wait 14 frames (Battery SFX)
EnoughEnergy
NoBatteries
rts
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -3046,7 +3046,7 @@ CheckCollisionWithTankLoop
lda ActiveDefenceWeapon,x
cmp #ind_Mag_Deflector ; first shielded weapon
bcc CheckCollisionWithNotShieldedTank
cmp #ind_Bouncy_Castle +1 ; last shielded weapon
cmp #ind_Bouncy_Castle+1 ; last shielded weapon
bcc CheckCollisionWithShieldedTank ; tank with shield is bigger :)
;lda ShieldEnergy,x ; there is wrong method to check shield :)