mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-20 22:34:21 +02:00
RoboTank indicator on status line
This commit is contained in:
+1
-1
@@ -737,7 +737,7 @@ CheckNextTankAD
|
|||||||
lda TankStatusColoursTable,x
|
lda TankStatusColoursTable,x
|
||||||
sta COLOR2 ; set color of status line
|
sta COLOR2 ; set color of status line
|
||||||
jsr PutTankNameOnScreen
|
jsr PutTankNameOnScreen
|
||||||
jsr DisplayStatus
|
; jsr DisplayStatus ; There is no need anymore, it is always after PutTankNameOnScreen
|
||||||
|
|
||||||
lda SkillTable,x
|
lda SkillTable,x
|
||||||
beq ManualShooting
|
beq ManualShooting
|
||||||
|
|||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
+28
-26
@@ -2030,6 +2030,34 @@ EndOfCredits
|
|||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
;-------------------------------------------------
|
;-------------------------------------------------
|
||||||
|
.proc PutTankNameOnScreen
|
||||||
|
;-------------------------------------------------
|
||||||
|
; puts name of the tank on the screen
|
||||||
|
ldy #$00
|
||||||
|
; lda TankNr
|
||||||
|
txa ; TankNr in X !
|
||||||
|
asl
|
||||||
|
asl
|
||||||
|
asl ; 8 chars per name
|
||||||
|
tax
|
||||||
|
NextChar02
|
||||||
|
lda tanksnames,x
|
||||||
|
sta statusBuffer+7,y
|
||||||
|
inx
|
||||||
|
iny
|
||||||
|
cpy #$08
|
||||||
|
bne NextChar02
|
||||||
|
; memory !!!!
|
||||||
|
ldx TankNr
|
||||||
|
ldy #$5e ; Computer symbol
|
||||||
|
lda SkillTable,x
|
||||||
|
bne ThisIsAI
|
||||||
|
ldy #$0a ; Joystick symbol
|
||||||
|
ThisIsAI
|
||||||
|
sty statusBuffer+16
|
||||||
|
; rts
|
||||||
|
.endp
|
||||||
|
;-------------------------------------------------
|
||||||
.proc DisplayStatus
|
.proc DisplayStatus
|
||||||
;-------------------------------------------------
|
;-------------------------------------------------
|
||||||
|
|
||||||
@@ -2242,32 +2270,6 @@ AngleDisplay
|
|||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
;-------------------------------------------------
|
;-------------------------------------------------
|
||||||
.proc PutTankNameOnScreen
|
|
||||||
; puts name of the tank on the screen
|
|
||||||
ldy #$00
|
|
||||||
lda TankNr
|
|
||||||
asl
|
|
||||||
asl
|
|
||||||
asl ; 8 chars per name
|
|
||||||
tax
|
|
||||||
NextChar02
|
|
||||||
lda tanksnames,x
|
|
||||||
sta statusBuffer+7,y
|
|
||||||
inx
|
|
||||||
iny
|
|
||||||
cpy #$08
|
|
||||||
bne NextChar02
|
|
||||||
; memory !!!!
|
|
||||||
; ldx TankNr
|
|
||||||
; ldy #$5e ; Computer symbol
|
|
||||||
; lda SkillTable,x
|
|
||||||
; bne ThisIsAI
|
|
||||||
; ldy #$0a ; Joystick symbol
|
|
||||||
;ThisIsAI
|
|
||||||
; sty statusBuffer+16
|
|
||||||
rts
|
|
||||||
.endp
|
|
||||||
;-------------------------------------------------
|
|
||||||
.proc RoundOverSprites
|
.proc RoundOverSprites
|
||||||
; fill sprites with bytes
|
; fill sprites with bytes
|
||||||
ldy numberOfPlayers
|
ldy numberOfPlayers
|
||||||
|
|||||||
+2
-2
@@ -1082,8 +1082,8 @@ ContinueToCheckMaxForce2
|
|||||||
sta ForceTableL,x
|
sta ForceTableL,x
|
||||||
@
|
@
|
||||||
mva #0 Erase
|
mva #0 Erase
|
||||||
jsr DisplayStatus ;all digital values like force, angle, wind, etc.
|
|
||||||
jsr PutTankNameOnScreen
|
jsr PutTankNameOnScreen
|
||||||
|
; jsr DisplayStatus ; There is no need anymore, it is always after PutTankNameOnScreen
|
||||||
|
|
||||||
jsr DrawTankNr
|
jsr DrawTankNr
|
||||||
|
|
||||||
@@ -2534,7 +2534,7 @@ SpyHardEnd
|
|||||||
lda TankStatusColoursTable,x
|
lda TankStatusColoursTable,x
|
||||||
sta COLOR2 ; set color of status line
|
sta COLOR2 ; set color of status line
|
||||||
jsr PutTankNameOnScreen
|
jsr PutTankNameOnScreen
|
||||||
jsr DisplayStatus
|
; jsr DisplayStatus ; There is no need anymore, it is always after PutTankNameOnScreen
|
||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
; -------------------------------------------------
|
; -------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user