summaryrefslogtreecommitdiff
path: root/engine/battle/link_battle_versus_text.asm
blob: d2dfe5c02f1df05f5a6d0d6d25f4c6b1b191fd88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
; display "[player] VS [enemy]" text box with pokeballs representing their parties next to the names
DisplayLinkBattleVersusTextBox: ; f41cf (3d:41cf)
	call LoadTextBoxTilePatterns
	hlCoord 3, 4
	ld b, $70c
	call TextBoxBorder
	hlCoord 4, 5
	ld de, wPlayerName
	call PlaceString
	hlCoord 4, 10
	ld de, wLinkEnemyTrainerName
	call PlaceString
; place bold "VS" tiles between the names
	hlCoord 9, 8
	ld a, $69
	ld [hli], a
	ld [hl], $6a
	xor a
	ld [wUpdateSpritesEnabled], a
	callab SetupPlayerAndEnemyPokeballs
	ld c, 150
	jp DelayFrames