shithub: pokered

ref: ca6b4348c2486a09b92023e9b9f10cfd4d3bdd06
dir: /engine/battle/d.asm/

View raw version
; display "[player] VS [enemy]" text box with pokeballs representing their parties next to the names
DisplayLinkBattleVersusTextBox: ; 372d6 (d:72d6)
	call LoadTextBoxTilePatterns
	hlCoord 3, 4
	ld b, $7
	ld c, $c
	call TextBoxBorder
	hlCoord 4, 5
	ld de, wPlayerName
	call PlaceString
	hlCoord 4, 10
	ld de, W_GRASSRATE ; enemy name
	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