mirror of
https://github.com/thornAvery/jep-hack.git
synced 2026-02-07 16:45:24 +13:00
First Commit
Upload literally everything from the pokecrystal16 expand-move-ID branch
This commit is contained in:
commit
2f8a41f833
4618 changed files with 480386 additions and 0 deletions
48
engine/events/pokepic.asm
Normal file
48
engine/events/pokepic.asm
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
Pokepic::
|
||||
ld hl, PokepicMenuHeader
|
||||
call CopyMenuHeader
|
||||
call MenuBox
|
||||
call UpdateSprites
|
||||
call ApplyTilemap
|
||||
ld b, SCGB_POKEPIC
|
||||
call GetSGBLayout
|
||||
xor a
|
||||
ldh [hBGMapMode], a
|
||||
ld a, [wCurPartySpecies]
|
||||
ld [wCurSpecies], a
|
||||
call GetBaseData
|
||||
ld de, vTiles1
|
||||
predef GetMonFrontpic
|
||||
ld a, [wMenuBorderTopCoord]
|
||||
inc a
|
||||
ld b, a
|
||||
ld a, [wMenuBorderLeftCoord]
|
||||
inc a
|
||||
ld c, a
|
||||
call Coord2Tile
|
||||
ld a, $80
|
||||
ldh [hGraphicStartTile], a
|
||||
lb bc, 7, 7
|
||||
predef PlaceGraphic
|
||||
call WaitBGMap
|
||||
ret
|
||||
|
||||
ClosePokepic::
|
||||
ld hl, PokepicMenuHeader
|
||||
call CopyMenuHeader
|
||||
call ClearMenuBoxInterior
|
||||
call WaitBGMap
|
||||
call GetMemSGBLayout
|
||||
xor a
|
||||
ldh [hBGMapMode], a
|
||||
call OverworldTextModeSwitch
|
||||
call ApplyTilemap
|
||||
call UpdateSprites
|
||||
call LoadStandardFont
|
||||
ret
|
||||
|
||||
PokepicMenuHeader:
|
||||
db MENU_BACKUP_TILES ; flags
|
||||
menu_coords 6, 4, 14, 13
|
||||
dw NULL
|
||||
db 1 ; default option
|
||||
Loading…
Add table
Add a link
Reference in a new issue