pokered/engine/battle/link_battle_versus_text.asm

24 lines
553 B
NASM
Raw Normal View History

2014-08-09 05:39:13 +00:00
; display "[player] VS [enemy]" text box with pokeballs representing their parties next to the names
DisplayLinkBattleVersusTextBox: ; 372d6 (d:72d6)
2014-05-22 22:13:20 +00:00
call LoadTextBoxTilePatterns
2015-07-18 20:52:03 +00:00
coord hl, 3, 4
2014-05-22 22:13:20 +00:00
ld b, $7
ld c, $c
call TextBoxBorder
2015-07-18 20:52:03 +00:00
coord hl, 4, 5
2014-08-09 05:39:13 +00:00
ld de, wPlayerName
2014-05-22 22:13:20 +00:00
call PlaceString
2015-07-18 20:52:03 +00:00
coord hl, 4, 10
2015-02-07 10:43:08 +00:00
ld de, wLinkEnemyTrainerName
2014-05-22 22:13:20 +00:00
call PlaceString
2014-08-09 05:39:13 +00:00
; place bold "VS" tiles between the names
2015-07-18 20:52:03 +00:00
coord hl, 9, 8
2014-05-22 22:13:20 +00:00
ld a, $69
ld [hli], a
ld [hl], $6a
xor a
2014-09-13 07:50:56 +00:00
ld [wUpdateSpritesEnabled], a
2014-05-22 22:13:20 +00:00
callab SetupPlayerAndEnemyPokeballs
2014-08-09 05:39:13 +00:00
ld c, 150
2014-05-22 22:13:20 +00:00
jp DelayFrames