Better gifts (Buy me!)

This commit is contained in:
Pecusx
2022-11-15 16:37:00 +01:00
parent a33d7d541d
commit 22fc555f8e
7 changed files with 25 additions and 7 deletions
+1 -1
View File
@@ -510,7 +510,7 @@ NamesOfWeapons ;the comment is an index in the tables
dta d"Ton of Dirt " ; 27 dta d"Ton of Dirt " ; 27
dta d"Liquid Dirt " ; 28 dta d"Liquid Dirt " ; 28
dta d"Dirt Charge " ; 29 dta d"Dirt Charge " ; 29
dta d"Buy me! " ; 30 dta d"Best F...g Gifts" ; 30
dta d"Laser " ; 31 dta d"Laser " ; 31
;------defensives ;------defensives
dta d"White Flag " ; 32 dta d"White Flag " ; 32
+5
View File
@@ -484,6 +484,7 @@ NoGameOverYet
jsr SetPMWidth jsr SetPMWidth
lda #0 lda #0
sta AfterBFGflag ; reset BFG flag
sta COLOR2 ; status line "off" sta COLOR2 ; status line "off"
sta COLOR1 sta COLOR1
@@ -836,8 +837,12 @@ NoPlayerNoDeath
inc CurrentResult inc CurrentResult
mva #sfx_death_begin sfx_effect mva #sfx_death_begin sfx_effect
lda #77 ; mumber of defensive text after BFG!
bit AfterBFGflag
bmi TextAfterBFG
; RandomizeDeffensiveText ; RandomizeDeffensiveText
randomize talk.NumberOfOffensiveTexts (talk.NumberOfDeffensiveTexts+talk.NumberOfOffensiveTexts-1) randomize talk.NumberOfOffensiveTexts (talk.NumberOfDeffensiveTexts+talk.NumberOfOffensiveTexts-1)
TextAfterBFG
sta TextNumberOff sta TextNumberOff
ldy TankTempY ldy TankTempY
mva #$ff plot4x4color mva #$ff plot4x4color
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+2 -4
View File
@@ -795,11 +795,9 @@ Suprise ; get a random weapon
bcc GetRandomDefensive bcc GetRandomDefensive
GetRandomOffensive GetRandomOffensive
randomize ind_Missile________ last_offensive_____ randomize ind_Missile________ last_offensive_____
cmp #ind_Buy_me_________ ;cmp #ind_Buy_me_________ ; buy me do not buy buy me :)
beq GetRandomOffensive ;beq GetRandomOffensive
tay tay
; lda WeaponUnits,y ; check if weapon exist
; beq GetRandomOffensive
bne NoSuprise ; Y always <> 0 bne NoSuprise ; Y always <> 0
GetRandomDefensive GetRandomDefensive
randomize ind_Battery________ last_defensive_____ randomize ind_Battery________ last_defensive_____
+1
View File
@@ -279,6 +279,7 @@ UpNdown .DS 1
temptankX .DS 2 temptankX .DS 2
temptankNr .DS 1 temptankNr .DS 1
AfterBFGflag .DS 1
;---------------------------------------------------- ;----------------------------------------------------
;Variables from textproc.s65 ;Variables from textproc.s65
+16 -2
View File
@@ -49,7 +49,7 @@ ExplosionRoutines
.word tonofdirt-1 ;Ton_of_Dirt____;_27 .word tonofdirt-1 ;Ton_of_Dirt____;_27
.word liquiddirt-1 ;Liquid_Dirt____;_28 .word liquiddirt-1 ;Liquid_Dirt____;_28
.word dirtcharge-1 ;Dirt_Charge____;_29 .word dirtcharge-1 ;Dirt_Charge____;_29
.word VOID-1 ;Buy_me_________;_30 .word BFG-1 ;Buy_me_________;_30
.word laser-1 ;Laser__________;_31 .word laser-1 ;Laser__________;_31
VOID VOID
@@ -57,7 +57,20 @@ tracer
rts rts
.endp .endp
; ------------------------ ; ------------------------
.proc BFG
; Kill all :)
ldx NumberOfPlayers
dex
lda #$00
CheckNextTankBFG
cpx TankNr ; not me!
beq @+
sta Energy,x
@ dex
bpl CheckNextTankBFG
stx AfterBFGflag ; $ff
rts
.endp
; ------------------------ ; ------------------------
.proc babymissile .proc babymissile
mva #sfx_baby_missile sfx_effect mva #sfx_baby_missile sfx_effect
@@ -1396,6 +1409,7 @@ pressedTAB
jmp BeforeFire jmp BeforeFire
CTRLpressedTAB CTRLpressedTAB
mva #sfx_purchase sfx_effect
ldx TankNr ldx TankNr
lda ActiveWeapon,x lda ActiveWeapon,x
cmp #first_offensive____ ; #0 cmp #first_offensive____ ; #0