Path: blob/master/engine/battle/scroll_draw_trainer_pic.asm
1271 views
_ScrollTrainerPicAfterBattle:1; Load the enemy trainer's pic and scrolls it into2; the screen from the right.3xor a4ld [wEnemyMonSpecies2], a5ld b, SET_PAL_BATTLE6call RunPaletteCommand7callfar _LoadTrainerPic8hlcoord 19, 09ld c, $010.scrollLoop11inc c12ld a, c13cp 714ret z15ld d, $016push bc17push hl18.drawTrainerPicLoop19call DrawTrainerPicColumn20inc hl21ld a, 722add d23ld d, a24dec c25jr nz, .drawTrainerPicLoop26ld c, 427call DelayFrames28pop hl29pop bc30dec hl31jr .scrollLoop3233; write one 7-tile column of the trainer pic to the tilemap34DrawTrainerPicColumn:35push hl36push de37push bc38ld e, 739.loop40ld [hl], d41ld bc, SCREEN_WIDTH42add hl, bc43inc d44dec e45jr nz, .loop46pop bc47pop de48pop hl49ret505152