Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pret
GitHub Repository: pret/pokered
Path: blob/master/engine/battle/link_battle_versus_text.asm
1271 views
1
; display "[player] VS [enemy]" text box with pokeballs representing their parties next to the names
2
DisplayLinkBattleVersusTextBox:
3
call LoadTextBoxTilePatterns
4
hlcoord 3, 4
5
ld b, 7
6
ld c, 12
7
call TextBoxBorder
8
hlcoord 4, 5
9
ld de, wPlayerName
10
call PlaceString
11
hlcoord 4, 10
12
ld de, wLinkEnemyTrainerName
13
call PlaceString
14
; place bold "VS" tiles between the names
15
hlcoord 9, 8
16
ld a, "<BOLD_V>"
17
ld [hli], a
18
ld [hl], "<BOLD_S>"
19
xor a
20
ld [wUpdateSpritesEnabled], a
21
callfar SetupPlayerAndEnemyPokeballs
22
ld c, 150
23
jp DelayFrames
24
25