summaryrefslogtreecommitdiff
path: root/engine/battle/link_battle_versus_text.asm
blob: cc98239d25f5073c0c388400f3a0f4368cf87b2a (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
; display "[player] VS [enemy]" text box with pokeballs representing their parties next to the names
DisplayLinkBattleVersusTextBox:
	call LoadTextBoxTilePatterns
	coord hl, 3, 4
	ld b, 7
	ld c, 12
	call TextBoxBorder
	coord hl, 4, 5
	ld de, wPlayerName
	call PlaceString
	coord hl, 4, 10
	ld de, wLinkEnemyTrainerName
	call PlaceString
; place bold "VS" tiles between the names
	coord hl, 7, 8
	ld a, "C"
	ldi [hl], a
	ld a, "O"
	ldi [hl], a
	ld a, "N"
	ldi [hl], a
	ld a, "T"
	ldi [hl], a
	ld a, "R"
	ldi [hl], a
	ld [hl], "E"
	xor a
	ld [wUpdateSpritesEnabled], a
	callab SetupPlayerAndEnemyPokeballs
	ld c, 150
	jp DelayFrames