pokered/engine/battle/link_battle_versus_text.asm
Rangi 308189b638
Some checks failed
CI / build (push) Has been cancelled
Use ld_hli_a_string macro to make byte-by-byte strings more obvious (#540)
2025-11-23 21:19:21 -06:00

22 lines
526 B
NASM

; display "[player] VS [enemy]" text box with pokeballs representing their parties next to the names
DisplayLinkBattleVersusTextBox:
call LoadTextBoxTilePatterns
hlcoord 3, 4
ld b, 7
ld c, 12
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_hli_a_string "<BOLD_V><BOLD_S>"
xor a
ld [wUpdateSpritesEnabled], a
callfar SetupPlayerAndEnemyPokeballs
ld c, 150
jp DelayFrames