mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-21 06:39:40 +02:00
Cyborg's battery SFX and optimization
This commit is contained in:
@@ -219,18 +219,12 @@ AngleTable ; 16 bytes ;ba w $348b L$3350
|
|||||||
lda Energy,x
|
lda Energy,x
|
||||||
cmp #60
|
cmp #60
|
||||||
bcs EnoughEnergy
|
bcs EnoughEnergy
|
||||||
; lower than 30 units - check battery
|
; lower than 60 units - check battery
|
||||||
ldy #ind_Battery
|
ldy #ind_Battery
|
||||||
lda (temp),y ; has address of TanksWeaponsTable
|
lda (temp),y ; has address of TanksWeaponsTable
|
||||||
cmp #2
|
cmp #2
|
||||||
bcc LowBatteries
|
|
||||||
; we have more than 2 batteries - use one
|
; we have more than 2 batteries - use one
|
||||||
sec
|
bcs UseBattery.UseIt
|
||||||
sbc #1
|
|
||||||
sta (temp),y
|
|
||||||
lda #99
|
|
||||||
sta Energy,x
|
|
||||||
jsr MaxForceCalculate
|
|
||||||
EnoughEnergy
|
EnoughEnergy
|
||||||
LowBatteries
|
LowBatteries
|
||||||
; if low energy ten use battery (no RTS :) )
|
; if low energy ten use battery (no RTS :) )
|
||||||
@@ -262,6 +256,7 @@ EnoughEnergy
|
|||||||
lda (temp),y ; has address of TanksWeaponsTable
|
lda (temp),y ; has address of TanksWeaponsTable
|
||||||
beq NoBatteries
|
beq NoBatteries
|
||||||
; we have batteries - use one
|
; we have batteries - use one
|
||||||
|
UseIt
|
||||||
sec
|
sec
|
||||||
sbc #1
|
sbc #1
|
||||||
sta (temp),y
|
sta (temp),y
|
||||||
|
|||||||
+1
-1
@@ -639,7 +639,7 @@ CreditsStart
|
|||||||
dta d" "*
|
dta d" "*
|
||||||
dta d"Ideas, help and QA"^
|
dta d"Ideas, help and QA"^
|
||||||
dta d"Bocianu, Probabilitydragon,"^
|
dta d"Bocianu, Probabilitydragon,"^
|
||||||
dta d"EnderDude, Dracon, TDC,"^
|
dta d"EnderDude, Dracon, Jakub Husak, TDC,"^
|
||||||
dta d"Beeblebrox, KrzysRog, lopezpb,"^
|
dta d"Beeblebrox, KrzysRog, lopezpb,"^
|
||||||
dta d"brad-colbert, archon800, nowy80,"^
|
dta d"brad-colbert, archon800, nowy80,"^
|
||||||
dta d"Shaggy the Atarian, RetroBorsuk, ZPH"
|
dta d"Shaggy the Atarian, RetroBorsuk, ZPH"
|
||||||
|
|||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Reference in New Issue
Block a user