mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-20 22:33:43 +02:00
Better Auto Defense symbol on status line.
This commit is contained in:
+2
-1
@@ -228,7 +228,8 @@ TanksNamesDefault
|
|||||||
dta d"4th.Tank"
|
dta d"4th.Tank"
|
||||||
dta d"5th.Tank"
|
dta d"5th.Tank"
|
||||||
dta d"6th.Tank"
|
dta d"6th.Tank"
|
||||||
|
CheatName
|
||||||
|
dta d" 008.T"
|
||||||
WeaponPriceH ; weapons prices (tables with prices of weapons)
|
WeaponPriceH ; weapons prices (tables with prices of weapons)
|
||||||
.by >price_Baby_Missile___
|
.by >price_Baby_Missile___
|
||||||
.by >price_Missile________
|
.by >price_Missile________
|
||||||
|
|||||||
+3
-1
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
;---------------------------------------------------
|
;---------------------------------------------------
|
||||||
.macro build
|
.macro build
|
||||||
dta d"1.19" ; number of this build (4 bytes)
|
dta d"1.20" ; number of this build (4 bytes)
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
.macro RMTSong
|
.macro RMTSong
|
||||||
@@ -1909,7 +1909,9 @@ font4x4
|
|||||||
;----------------------------------------------
|
;----------------------------------------------
|
||||||
;RMT PLAYER and song loading shenaningans
|
;RMT PLAYER and song loading shenaningans
|
||||||
icl 'artwork/sfx/rmtplayr_modified.asm'
|
icl 'artwork/sfx/rmtplayr_modified.asm'
|
||||||
|
;----------------------------------------------
|
||||||
.IF * > MODUL-1
|
.IF * > MODUL-1
|
||||||
|
.ECHO *
|
||||||
.ERROR 'Code and data too long'
|
.ERROR 'Code and data too long'
|
||||||
.ENDIF
|
.ENDIF
|
||||||
.ECHO "Bytes left: ",$b000-*
|
.ECHO "Bytes left: ",$b000-*
|
||||||
|
|||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
+35
-1
@@ -1088,6 +1088,7 @@ NoArrowDown
|
|||||||
jsr EnterPlayerName
|
jsr EnterPlayerName
|
||||||
bit escFlag
|
bit escFlag
|
||||||
spl:rts
|
spl:rts
|
||||||
|
jsr CheckTankCheat
|
||||||
inc TankNr
|
inc TankNr
|
||||||
lda TankNr
|
lda TankNr
|
||||||
cmp NumberOfPlayers
|
cmp NumberOfPlayers
|
||||||
@@ -2357,6 +2358,9 @@ EndOfCredits
|
|||||||
;displaying name of the defence weapon (if active)
|
;displaying name of the defence weapon (if active)
|
||||||
;---------------------
|
;---------------------
|
||||||
lda AutoDefenseFlag,x ; Auto Defense symbol (space or "A" in inverse)
|
lda AutoDefenseFlag,x ; Auto Defense symbol (space or "A" in inverse)
|
||||||
|
bpl @+
|
||||||
|
lda #$5e ; Auto Defense symbol
|
||||||
|
@
|
||||||
sta statusBuffer+80+21
|
sta statusBuffer+80+21
|
||||||
lda #$08 ; (
|
lda #$08 ; (
|
||||||
sta statusBuffer+80+22
|
sta statusBuffer+80+22
|
||||||
@@ -2518,7 +2522,7 @@ AngleDisplay
|
|||||||
.proc PutTankNameOnScreen
|
.proc PutTankNameOnScreen
|
||||||
; puts name of the tank on the screen
|
; puts name of the tank on the screen
|
||||||
ldy #$00
|
ldy #$00
|
||||||
lda tanknr
|
lda TankNr
|
||||||
asl
|
asl
|
||||||
asl
|
asl
|
||||||
asl ; 8 chars per name
|
asl ; 8 chars per name
|
||||||
@@ -2533,6 +2537,36 @@ NextChar02
|
|||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
;-------------------------------------------------
|
;-------------------------------------------------
|
||||||
|
.proc CheckTankCheat
|
||||||
|
; puts name of the tank on the screen
|
||||||
|
ldy #$07
|
||||||
|
lda TankNr
|
||||||
|
asl
|
||||||
|
asl
|
||||||
|
asl ; 8 chars per name
|
||||||
|
tax
|
||||||
|
@
|
||||||
|
lda tanksnames,x
|
||||||
|
cmp CheatName,y
|
||||||
|
bne NoCheat
|
||||||
|
inx
|
||||||
|
dey
|
||||||
|
bpl @-
|
||||||
|
YesCheat
|
||||||
|
ldx TankNr
|
||||||
|
lda TanksWeaponsTableL,x
|
||||||
|
sta temp
|
||||||
|
lda TanksWeaponsTableH,x
|
||||||
|
sta temp+1
|
||||||
|
lda #99
|
||||||
|
@ iny
|
||||||
|
sta (temp),y
|
||||||
|
cpy #(last_defensive_____ - first_offensive____)
|
||||||
|
bne @-
|
||||||
|
NoCheat
|
||||||
|
rts
|
||||||
|
.endp
|
||||||
|
;-------------------------------------------------
|
||||||
.proc RoundOverSprites
|
.proc RoundOverSprites
|
||||||
; fill sprites with bytes
|
; fill sprites with bytes
|
||||||
ldy numberOfPlayers
|
ldy numberOfPlayers
|
||||||
|
|||||||
Reference in New Issue
Block a user