summaryrefslogtreecommitdiff
path: root/de/engine/battle/link_battle_versus_text.asm
blob: 9e5f89cb6bec7d3067b418bcc7aaf44699218988 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
; 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, 13
	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, 9, 8
	ld a, "V"
	ldi [hl], a
	ld [hl], "S"
	xor a
	ld [wUpdateSpritesEnabled], a
	callab SetupPlayerAndEnemyPokeballs
	ld c, 150
	jp DelayFrames