aboutsummaryrefslogtreecommitdiffstats
path: root/engine/battle/link_battle_versus_text.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2015-04-01 12:56:42 -0400
committeryenatch <yenatch@gmail.com>2015-04-01 12:56:42 -0400
commitc2efe700ac1c5cca88bac710b98388a99665741e (patch)
treeb30d2f676d5ad0d78b959c8ffcf0f8dcfca13943 /engine/battle/link_battle_versus_text.asm
parentMerge pull request #88 from YamaArashi/master (diff)
parentFurther split bank e stuff (diff)
downloadpokeyellow-c2efe700ac1c5cca88bac710b98388a99665741e.tar.gz
pokeyellow-c2efe700ac1c5cca88bac710b98388a99665741e.tar.xz
pokeyellow-c2efe700ac1c5cca88bac710b98388a99665741e.zip
Merge pull request #90 from xCrystal/master
Rename/split battle and move effect files. Battle functions, AI, and attack animations
Diffstat (limited to 'engine/battle/link_battle_versus_text.asm')
-rw-r--r--engine/battle/link_battle_versus_text.asm23
1 files changed, 23 insertions, 0 deletions
diff --git a/engine/battle/link_battle_versus_text.asm b/engine/battle/link_battle_versus_text.asm
new file mode 100644
index 00000000..7320da29
--- /dev/null
+++ b/engine/battle/link_battle_versus_text.asm
@@ -0,0 +1,23 @@
+; 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, wLinkEnemyTrainerName
+ 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