Purchase/Inventory titles added

This commit is contained in:
Pecusx
2022-08-14 17:37:06 +02:00
parent 045bdacf65
commit b6bf1532d7
3 changed files with 14 additions and 2 deletions
+10 -2
View File
@@ -6,7 +6,11 @@
;-------------display-lists--------------------------- ;-------------display-lists---------------------------
;----------------------------------------------------- ;-----------------------------------------------------
PurchaseDL PurchaseDL
.byte $70,$70,$20 .byte $70
.byte $47
DLPurTitleAddr
.word PurchaseTitle
.byte $70
.byte $42+$80 .byte $42+$80
.word textbuffer2 .word textbuffer2
.byte $02,$10,$42 .byte $02,$10,$42
@@ -151,7 +155,7 @@ purchaseActivate
EmptyLine EmptyLine
dta d" " dta d" "
; ------------------------------------------------- ; -------------------------------------------------
.ALIGN $1000 ; WARNING!!!! 4KiB barrier crossing here, might need reassignment!!! ; .ALIGN $1000 ; WARNING!!!! 4KiB barrier crossing here, might need reassignment!!!
;----------------------------------------------- ;-----------------------------------------------
GameOverResults = display+$0ff0 ; reuse after game GameOverResults = display+$0ff0 ; reuse after game
Credits = GameOverResults +(6*40) Credits = GameOverResults +(6*40)
@@ -222,6 +226,10 @@ purchaseText
purchaseTextEnd purchaseTextEnd
GameOverTitle GameOverTitle
dta d" game over "* dta d" game over "*
PurchaseTitle
dta d" weapons purchase "
InventoryTitle
dta d" weapons activate "*
GameOverTitle2 GameOverTitle2
dta d" Player Points Hits Earned Money " dta d" Player Points Hits Earned Money "
.endif .endif
BIN
View File
Binary file not shown.
+4
View File
@@ -362,6 +362,8 @@ CreateList
sta purchaseActivate,x sta purchaseActivate,x
dex dex
bpl @- bpl @-
; and Title
mwa #PurchaseTitle DLPurTitleAddr
; checking if we can afford buying this weapon ; checking if we can afford buying this weapon
ldx temp ldx temp
@@ -418,6 +420,8 @@ itIsInventory
sta purchaseActivate,x sta purchaseActivate,x
dex dex
bpl @- bpl @-
; and Title
mwa #InventoryTitle DLPurTitleAddr
ldx temp ldx temp
lda TanksWeaponsTableL,y lda TanksWeaponsTableL,y