mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-21 21:34:20 +02:00
RoboTank indicator on status line
This commit is contained in:
+28
-26
@@ -2030,6 +2030,34 @@ EndOfCredits
|
||||
rts
|
||||
.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
|
||||
;-------------------------------------------------
|
||||
|
||||
@@ -2242,32 +2270,6 @@ AngleDisplay
|
||||
rts
|
||||
.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
|
||||
; fill sprites with bytes
|
||||
ldy numberOfPlayers
|
||||
|
||||
Reference in New Issue
Block a user