link_battle_versus_text.asm 535 B

123456789101112131415161718192021222324
  1. ; display "[player] VS [enemy]" text box with pokeballs representing their parties next to the names
  2. DisplayLinkBattleVersusTextBox:
  3. call LoadTextBoxTilePatterns
  4. coord hl, 3, 4
  5. ld b, 7
  6. ld c, 12
  7. call TextBoxBorder
  8. coord hl, 4, 5
  9. ld de, wPlayerName
  10. call PlaceString
  11. coord hl, 4, 10
  12. ld de, wLinkEnemyTrainerName
  13. call PlaceString
  14. ; place bold "VS" tiles between the names
  15. coord hl, 9, 8
  16. ld a, $69
  17. ld [hli], a
  18. ld [hl], $6a
  19. xor a
  20. ld [wUpdateSpritesEnabled], a
  21. callab SetupPlayerAndEnemyPokeballs
  22. ld c, 150
  23. jp DelayFrames