mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-20 22:34:21 +02:00
Propaganda works
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
dta d"TAKE A HIKE!"^
|
||||
dta d"MAKE MY DAY."^
|
||||
dta d"KNOCK, KNOCK."^
|
||||
; end of Propaganda :)
|
||||
dta d"FROM HELL'S HEART I STAB AT THEE..."^
|
||||
dta d"DO YOU FEEL LUCKY, TANK?"^
|
||||
dta d"YOU'RE OUTTA HERE."^
|
||||
|
||||
+7
-5
@@ -1648,7 +1648,12 @@ notZero
|
||||
sta temp
|
||||
lda xtankstableH,y
|
||||
sta temp+1
|
||||
AboveTemp
|
||||
jsr Calculate4x4TextPosition
|
||||
jmp TypeLine4x4.noLengthNoColor ; rts
|
||||
|
||||
.endp
|
||||
;--------------------------------------------------------
|
||||
.proc Calculate4x4TextPosition
|
||||
; we have X coordinate of center of text in temp
|
||||
; now we should substract length of the text-1
|
||||
; temp2 = (fx-1)*2
|
||||
@@ -1746,11 +1751,8 @@ DOTOldLowestValue
|
||||
lda temp2
|
||||
sbc #(4+9) ;9 pixels above ground (and tanks...)
|
||||
sta LineYdraw
|
||||
|
||||
jmp TypeLine4x4.noLengthNoColor ; rts
|
||||
|
||||
rts
|
||||
.endp
|
||||
|
||||
;--------------------------------------------------------
|
||||
.proc DisplayTankNameAbove ; TankNr in X
|
||||
txa ; TankNr
|
||||
|
||||
BIN
Binary file not shown.
+12
-2
@@ -382,7 +382,10 @@ GoRiotBomb
|
||||
; ------------------------
|
||||
.proc propaganda
|
||||
; propaganda
|
||||
jsr SetFullScreenSoilRange ; to change
|
||||
lda #36 ; (max propaganda text lenght [17+1] * 4 pixels) / 2
|
||||
sta ExplosionRadius
|
||||
jsr CalculateExplosionRange
|
||||
|
||||
mwa xdraw tempXROLLER ; save X coordinate of texts
|
||||
; all text start from `talk` and end with an inverse.
|
||||
; we go through the `talk`, count number of inverses.
|
||||
@@ -408,7 +411,14 @@ nexttext
|
||||
sty fx
|
||||
mwa tempXROLLER temp
|
||||
|
||||
jsr Display4x4AboveTank.AboveTemp
|
||||
jsr Calculate4x4TextPosition
|
||||
lda random
|
||||
and #%00001111
|
||||
adc LineYdraw
|
||||
sbc #8
|
||||
sta LineYdraw
|
||||
jsr TypeLine4x4.noLengthNoColor
|
||||
|
||||
ldy #15
|
||||
jsr PauseYFrames
|
||||
|
||||
|
||||
Reference in New Issue
Block a user