summaryrefslogtreecommitdiff
path: root/engine/pinball_game/extra_ball.asm
blob: c575e60bb0cb1abc68df8269db82c75fb15370d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
ShowExtraBallMessage: ; 0x30188
; Displays the extra ball scrolling message, if an extra ball has been granted.
	ld a, [wBottomTextEnabled]
	and a
	ret nz
	ld a, [wShowExtraBallText]
	and a
	ret z
	cp $1
	jr nz, .asm_301a7
	call FillBottomMessageBufferWithBlackTile
	call EnableBottomText
	ld hl, wScrollingText1
	ld de, ExtraBallText
	call LoadScrollingText
	jr .asm_301c9

.asm_301a7
	ld bc, $1000
	ld de, $0000
	push bc
	push de
	call FillBottomMessageBufferWithBlackTile
	call EnableBottomText
	ld hl, wScrollingText2
	ld de, DigitsText1to9
	call Func_32cc
	pop de
	pop bc
	ld hl, wScrollingText1
	ld de, ExtraBallSpecialBonusText
	call LoadScrollingText
.asm_301c9
	xor a
	ld [wShowExtraBallText], a
	ret