Add engine/gfx/mon_icons.asm
41
data/icon_pointers.asm
Executable file
@@ -0,0 +1,41 @@
|
||||
IconPointers:
|
||||
; entries correspond to ICON_* constants
|
||||
dw NullIcon
|
||||
dw PoliwagIcon
|
||||
dw JigglypuffIcon
|
||||
dw DiglettIcon
|
||||
dw PikachuIcon
|
||||
dw StaryuIcon
|
||||
dw FishIcon
|
||||
dw BirdIcon
|
||||
dw MonsterIcon
|
||||
dw ClefairyIcon
|
||||
dw OddishIcon
|
||||
dw BugIcon
|
||||
dw GhostIcon
|
||||
dw LaprasIcon
|
||||
dw HumanshapeIcon
|
||||
dw FoxIcon
|
||||
dw EquineIcon
|
||||
dw ShellIcon
|
||||
dw BlobIcon
|
||||
dw SerpentIcon
|
||||
dw VoltorbIcon
|
||||
dw SquirtleIcon
|
||||
dw BulbasaurIcon
|
||||
dw CharmanderIcon
|
||||
dw CaterpillarIcon
|
||||
dw UnownIcon
|
||||
dw GeodudeIcon
|
||||
dw FighterIcon
|
||||
dw EggIcon
|
||||
dw JellyfishIcon
|
||||
dw MothIcon
|
||||
dw BatIcon
|
||||
dw SnorlaxIcon
|
||||
dw HoOhIcon
|
||||
dw LugiaIcon
|
||||
dw GyaradosIcon
|
||||
dw SlowpokeIcon
|
||||
dw SudowoodoIcon
|
||||
dw BigmonIcon
|
||||
254
data/pokemon/menu_icons.asm
Executable file
@@ -0,0 +1,254 @@
|
||||
; party menu icons
|
||||
|
||||
MonMenuIcons:
|
||||
db ICON_BULBASAUR ; BULBASAUR
|
||||
db ICON_BULBASAUR ; IVYSAUR
|
||||
db ICON_BULBASAUR ; VENUSAUR
|
||||
db ICON_CHARMANDER ; CHARMANDER
|
||||
db ICON_CHARMANDER ; CHARMELEON
|
||||
db ICON_BIGMON ; CHARIZARD
|
||||
db ICON_SQUIRTLE ; SQUIRTLE
|
||||
db ICON_SQUIRTLE ; WARTORTLE
|
||||
db ICON_SQUIRTLE ; BLASTOISE
|
||||
db ICON_CATERPILLAR ; CATERPIE
|
||||
db ICON_CATERPILLAR ; METAPOD
|
||||
db ICON_MOTH ; BUTTERFREE
|
||||
db ICON_CATERPILLAR ; WEEDLE
|
||||
db ICON_CATERPILLAR ; KAKUNA
|
||||
db ICON_BUG ; BEEDRILL
|
||||
db ICON_BIRD ; PIDGEY
|
||||
db ICON_BIRD ; PIDGEOTTO
|
||||
db ICON_BIRD ; PIDGEOT
|
||||
db ICON_FOX ; RATTATA
|
||||
db ICON_FOX ; RATICATE
|
||||
db ICON_BIRD ; SPEAROW
|
||||
db ICON_BIRD ; FEAROW
|
||||
db ICON_SERPENT ; EKANS
|
||||
db ICON_SERPENT ; ARBOK
|
||||
db ICON_PIKACHU ; PIKACHU
|
||||
db ICON_PIKACHU ; RAICHU
|
||||
db ICON_MONSTER ; SANDSHREW
|
||||
db ICON_MONSTER ; SANDSLASH
|
||||
db ICON_FOX ; NIDORAN_F
|
||||
db ICON_FOX ; NIDORINA
|
||||
db ICON_MONSTER ; NIDOQUEEN
|
||||
db ICON_FOX ; NIDORAN_M
|
||||
db ICON_FOX ; NIDORINO
|
||||
db ICON_MONSTER ; NIDOKING
|
||||
db ICON_CLEFAIRY ; CLEFAIRY
|
||||
db ICON_CLEFAIRY ; CLEFABLE
|
||||
db ICON_FOX ; VULPIX
|
||||
db ICON_FOX ; NINETALES
|
||||
db ICON_JIGGLYPUFF ; JIGGLYPUFF
|
||||
db ICON_JIGGLYPUFF ; WIGGLYTUFF
|
||||
db ICON_BAT ; ZUBAT
|
||||
db ICON_BAT ; GOLBAT
|
||||
db ICON_ODDISH ; ODDISH
|
||||
db ICON_ODDISH ; GLOOM
|
||||
db ICON_ODDISH ; VILEPLUME
|
||||
db ICON_BUG ; PARAS
|
||||
db ICON_BUG ; PARASECT
|
||||
db ICON_CATERPILLAR ; VENONAT
|
||||
db ICON_MOTH ; VENOMOTH
|
||||
db ICON_DIGLETT ; DIGLETT
|
||||
db ICON_DIGLETT ; DUGTRIO
|
||||
db ICON_FOX ; MEOWTH
|
||||
db ICON_FOX ; PERSIAN
|
||||
db ICON_MONSTER ; PSYDUCK
|
||||
db ICON_MONSTER ; GOLDUCK
|
||||
db ICON_FIGHTER ; MANKEY
|
||||
db ICON_FIGHTER ; PRIMEAPE
|
||||
db ICON_FOX ; GROWLITHE
|
||||
db ICON_FOX ; ARCANINE
|
||||
db ICON_POLIWAG ; POLIWAG
|
||||
db ICON_POLIWAG ; POLIWHIRL
|
||||
db ICON_POLIWAG ; POLIWRATH
|
||||
db ICON_HUMANSHAPE ; ABRA
|
||||
db ICON_HUMANSHAPE ; KADABRA
|
||||
db ICON_HUMANSHAPE ; ALAKAZAM
|
||||
db ICON_FIGHTER ; MACHOP
|
||||
db ICON_FIGHTER ; MACHOKE
|
||||
db ICON_FIGHTER ; MACHAMP
|
||||
db ICON_ODDISH ; BELLSPROUT
|
||||
db ICON_ODDISH ; WEEPINBELL
|
||||
db ICON_ODDISH ; VICTREEBEL
|
||||
db ICON_JELLYFISH ; TENTACOOL
|
||||
db ICON_JELLYFISH ; TENTACRUEL
|
||||
db ICON_GEODUDE ; GEODUDE
|
||||
db ICON_GEODUDE ; GRAVELER
|
||||
db ICON_GEODUDE ; GOLEM
|
||||
db ICON_EQUINE ; PONYTA
|
||||
db ICON_EQUINE ; RAPIDASH
|
||||
db ICON_SLOWPOKE ; SLOWPOKE
|
||||
db ICON_SLOWPOKE ; SLOWBRO
|
||||
db ICON_VOLTORB ; MAGNEMITE
|
||||
db ICON_VOLTORB ; MAGNETON
|
||||
db ICON_BIRD ; FARFETCH_D
|
||||
db ICON_BIRD ; DODUO
|
||||
db ICON_BIRD ; DODRIO
|
||||
db ICON_LAPRAS ; SEEL
|
||||
db ICON_LAPRAS ; DEWGONG
|
||||
db ICON_BLOB ; GRIMER
|
||||
db ICON_BLOB ; MUK
|
||||
db ICON_SHELL ; SHELLDER
|
||||
db ICON_SHELL ; CLOYSTER
|
||||
db ICON_GHOST ; GASTLY
|
||||
db ICON_GHOST ; HAUNTER
|
||||
db ICON_GHOST ; GENGAR
|
||||
db ICON_SERPENT ; ONIX
|
||||
db ICON_HUMANSHAPE ; DROWZEE
|
||||
db ICON_HUMANSHAPE ; HYPNO
|
||||
db ICON_SHELL ; KRABBY
|
||||
db ICON_SHELL ; KINGLER
|
||||
db ICON_VOLTORB ; VOLTORB
|
||||
db ICON_VOLTORB ; ELECTRODE
|
||||
db ICON_ODDISH ; EXEGGCUTE
|
||||
db ICON_ODDISH ; EXEGGUTOR
|
||||
db ICON_MONSTER ; CUBONE
|
||||
db ICON_MONSTER ; MAROWAK
|
||||
db ICON_FIGHTER ; HITMONLEE
|
||||
db ICON_FIGHTER ; HITMONCHAN
|
||||
db ICON_MONSTER ; LICKITUNG
|
||||
db ICON_BLOB ; KOFFING
|
||||
db ICON_BLOB ; WEEZING
|
||||
db ICON_EQUINE ; RHYHORN
|
||||
db ICON_MONSTER ; RHYDON
|
||||
db ICON_CLEFAIRY ; CHANSEY
|
||||
db ICON_ODDISH ; TANGELA
|
||||
db ICON_MONSTER ; KANGASKHAN
|
||||
db ICON_FISH ; HORSEA
|
||||
db ICON_FISH ; SEADRA
|
||||
db ICON_FISH ; GOLDEEN
|
||||
db ICON_FISH ; SEAKING
|
||||
db ICON_STARYU ; STARYU
|
||||
db ICON_STARYU ; STARMIE
|
||||
db ICON_HUMANSHAPE ; MR__MIME
|
||||
db ICON_BUG ; SCYTHER
|
||||
db ICON_HUMANSHAPE ; JYNX
|
||||
db ICON_HUMANSHAPE ; ELECTABUZZ
|
||||
db ICON_HUMANSHAPE ; MAGMAR
|
||||
db ICON_BUG ; PINSIR
|
||||
db ICON_EQUINE ; TAUROS
|
||||
db ICON_FISH ; MAGIKARP
|
||||
db ICON_GYARADOS ; GYARADOS
|
||||
db ICON_LAPRAS ; LAPRAS
|
||||
db ICON_BLOB ; DITTO
|
||||
db ICON_FOX ; EEVEE
|
||||
db ICON_FOX ; VAPOREON
|
||||
db ICON_FOX ; JOLTEON
|
||||
db ICON_FOX ; FLAREON
|
||||
db ICON_VOLTORB ; PORYGON
|
||||
db ICON_SHELL ; OMANYTE
|
||||
db ICON_SHELL ; OMASTAR
|
||||
db ICON_SHELL ; KABUTO
|
||||
db ICON_SHELL ; KABUTOPS
|
||||
db ICON_BIRD ; AERODACTYL
|
||||
db ICON_SNORLAX ; SNORLAX
|
||||
db ICON_BIRD ; ARTICUNO
|
||||
db ICON_BIRD ; ZAPDOS
|
||||
db ICON_BIRD ; MOLTRES
|
||||
db ICON_SERPENT ; DRATINI
|
||||
db ICON_SERPENT ; DRAGONAIR
|
||||
db ICON_BIGMON ; DRAGONITE
|
||||
db ICON_HUMANSHAPE ; MEWTWO
|
||||
db ICON_HUMANSHAPE ; MEW
|
||||
db ICON_ODDISH ; CHIKORITA
|
||||
db ICON_ODDISH ; BAYLEEF
|
||||
db ICON_ODDISH ; MEGANIUM
|
||||
db ICON_FOX ; CYNDAQUIL
|
||||
db ICON_FOX ; QUILAVA
|
||||
db ICON_FOX ; TYPHLOSION
|
||||
db ICON_MONSTER ; TOTODILE
|
||||
db ICON_MONSTER ; CROCONAW
|
||||
db ICON_MONSTER ; FERALIGATR
|
||||
db ICON_FOX ; SENTRET
|
||||
db ICON_FOX ; FURRET
|
||||
db ICON_BIRD ; HOOTHOOT
|
||||
db ICON_BIRD ; NOCTOWL
|
||||
db ICON_BUG ; LEDYBA
|
||||
db ICON_BUG ; LEDIAN
|
||||
db ICON_BUG ; SPINARAK
|
||||
db ICON_BUG ; ARIADOS
|
||||
db ICON_BAT ; CROBAT
|
||||
db ICON_FISH ; CHINCHOU
|
||||
db ICON_FISH ; LANTURN
|
||||
db ICON_PIKACHU ; PICHU
|
||||
db ICON_CLEFAIRY ; CLEFFA
|
||||
db ICON_JIGGLYPUFF ; IGGLYBUFF
|
||||
db ICON_CLEFAIRY ; TOGEPI
|
||||
db ICON_BIRD ; TOGETIC
|
||||
db ICON_BIRD ; NATU
|
||||
db ICON_BIRD ; XATU
|
||||
db ICON_FOX ; MAREEP
|
||||
db ICON_MONSTER ; FLAAFFY
|
||||
db ICON_MONSTER ; AMPHAROS
|
||||
db ICON_ODDISH ; BELLOSSOM
|
||||
db ICON_JIGGLYPUFF ; MARILL
|
||||
db ICON_JIGGLYPUFF ; AZUMARILL
|
||||
db ICON_SUDOWOODO ; SUDOWOODO
|
||||
db ICON_POLIWAG ; POLITOED
|
||||
db ICON_ODDISH ; HOPPIP
|
||||
db ICON_ODDISH ; SKIPLOOM
|
||||
db ICON_ODDISH ; JUMPLUFF
|
||||
db ICON_MONSTER ; AIPOM
|
||||
db ICON_ODDISH ; SUNKERN
|
||||
db ICON_ODDISH ; SUNFLORA
|
||||
db ICON_BUG ; YANMA
|
||||
db ICON_MONSTER ; WOOPER
|
||||
db ICON_MONSTER ; QUAGSIRE
|
||||
db ICON_FOX ; ESPEON
|
||||
db ICON_FOX ; UMBREON
|
||||
db ICON_BIRD ; MURKROW
|
||||
db ICON_SLOWPOKE ; SLOWKING
|
||||
db ICON_GHOST ; MISDREAVUS
|
||||
db ICON_UNOWN ; UNOWN
|
||||
db ICON_GHOST ; WOBBUFFET
|
||||
db ICON_EQUINE ; GIRAFARIG
|
||||
db ICON_BUG ; PINECO
|
||||
db ICON_BUG ; FORRETRESS
|
||||
db ICON_SERPENT ; DUNSPARCE
|
||||
db ICON_BUG ; GLIGAR
|
||||
db ICON_SERPENT ; STEELIX
|
||||
db ICON_MONSTER ; SNUBBULL
|
||||
db ICON_MONSTER ; GRANBULL
|
||||
db ICON_FISH ; QWILFISH
|
||||
db ICON_BUG ; SCIZOR
|
||||
db ICON_BUG ; SHUCKLE
|
||||
db ICON_BUG ; HERACROSS
|
||||
db ICON_FOX ; SNEASEL
|
||||
db ICON_MONSTER ; TEDDIURSA
|
||||
db ICON_MONSTER ; URSARING
|
||||
db ICON_BLOB ; SLUGMA
|
||||
db ICON_BLOB ; MAGCARGO
|
||||
db ICON_EQUINE ; SWINUB
|
||||
db ICON_EQUINE ; PILOSWINE
|
||||
db ICON_SHELL ; CORSOLA
|
||||
db ICON_FISH ; REMORAID
|
||||
db ICON_FISH ; OCTILLERY
|
||||
db ICON_MONSTER ; DELIBIRD
|
||||
db ICON_FISH ; MANTINE
|
||||
db ICON_BIRD ; SKARMORY
|
||||
db ICON_FOX ; HOUNDOUR
|
||||
db ICON_FOX ; HOUNDOOM
|
||||
db ICON_BIGMON ; KINGDRA
|
||||
db ICON_EQUINE ; PHANPY
|
||||
db ICON_EQUINE ; DONPHAN
|
||||
db ICON_VOLTORB ; PORYGON2
|
||||
db ICON_EQUINE ; STANTLER
|
||||
db ICON_MONSTER ; SMEARGLE
|
||||
db ICON_FIGHTER ; TYROGUE
|
||||
db ICON_FIGHTER ; HITMONTOP
|
||||
db ICON_HUMANSHAPE ; SMOOCHUM
|
||||
db ICON_HUMANSHAPE ; ELEKID
|
||||
db ICON_HUMANSHAPE ; MAGBY
|
||||
db ICON_EQUINE ; MILTANK
|
||||
db ICON_CLEFAIRY ; BLISSEY
|
||||
db ICON_FOX ; RAIKOU
|
||||
db ICON_FOX ; ENTEI
|
||||
db ICON_FOX ; SUICUNE
|
||||
db ICON_MONSTER ; LARVITAR
|
||||
db ICON_MONSTER ; PUPITAR
|
||||
db ICON_MONSTER ; TYRANITAR
|
||||
db ICON_LUGIA ; LUGIA
|
||||
db ICON_HO_OH ; HO_OH
|
||||
db ICON_HUMANSHAPE ; CELEBI
|
||||
337
engine/gfx/mon_icons.asm
Executable file
@@ -0,0 +1,337 @@
|
||||
LoadOverworldMonIcon:
|
||||
ld a, e
|
||||
call ReadMonMenuIcon
|
||||
ld l, a
|
||||
ld h, 0
|
||||
add hl, hl
|
||||
ld de, IconPointers
|
||||
add hl, de
|
||||
ld a, [hli]
|
||||
ld e, a
|
||||
ld d, [hl]
|
||||
ld b, BANK(Icons)
|
||||
ld c, 8
|
||||
ret
|
||||
|
||||
LoadMenuMonIcon:
|
||||
push hl
|
||||
push de
|
||||
push bc
|
||||
call .LoadIcon
|
||||
pop bc
|
||||
pop de
|
||||
pop hl
|
||||
ret
|
||||
|
||||
.LoadIcon:
|
||||
ld d, 0
|
||||
ld hl, .Jumptable
|
||||
add hl, de
|
||||
add hl, de
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
ld l, a
|
||||
jp hl
|
||||
|
||||
.Jumptable:
|
||||
; entries correspond to MONICON_* constants
|
||||
dw PartyMenu_InitAnimatedMonIcon ; MONICON_PARTYMENU
|
||||
dw NamingScreen_InitAnimatedMonIcon ; MONICON_NAMINGSCREEN
|
||||
dw MoveList_InitAnimatedMonIcon ; MONICON_MOVES
|
||||
dw Trade_LoadMonIconGFX ; MONICON_TRADE
|
||||
|
||||
PartyMenu_InitAnimatedMonIcon:
|
||||
ld a, [wCurIconTile]
|
||||
push af
|
||||
ldh a, [hObjectStructIndexBuffer]
|
||||
ld hl, wPartySpecies
|
||||
ld e, a
|
||||
ld d, 0
|
||||
add hl, de
|
||||
ld a, [hl]
|
||||
call ReadMonMenuIcon
|
||||
ld [wCurIcon], a
|
||||
call GetMemIconGFX
|
||||
ldh a, [hObjectStructIndexBuffer]
|
||||
; y coord
|
||||
add a
|
||||
add a
|
||||
add a
|
||||
add a
|
||||
add $1c
|
||||
ld d, a
|
||||
; x coord
|
||||
ld e, $10
|
||||
; type is partymon icon
|
||||
ld a, SPRITE_ANIM_INDEX_PARTY_MON
|
||||
call _InitSpriteAnimStruct
|
||||
pop af
|
||||
ld hl, SPRITEANIMSTRUCT_TILE_ID
|
||||
add hl, bc
|
||||
ld [hl], a
|
||||
|
||||
call .SpawnItemIcon
|
||||
call SetPartyMonIconAnimSpeed
|
||||
ret
|
||||
|
||||
.SpawnItemIcon:
|
||||
push bc
|
||||
ldh a, [hObjectStructIndexBuffer]
|
||||
ld hl, wPartyMon1Item
|
||||
ld bc, PARTYMON_STRUCT_LENGTH
|
||||
call AddNTimes
|
||||
pop bc
|
||||
ld a, [hl]
|
||||
and a
|
||||
ret z
|
||||
push hl
|
||||
push bc
|
||||
ld d, a
|
||||
callfar ItemIsMail
|
||||
pop bc
|
||||
pop hl
|
||||
jr c, .mail
|
||||
ld a, SPRITE_ANIM_FRAMESET_PARTY_MON_WITH_ITEM
|
||||
jr .okay
|
||||
|
||||
.mail
|
||||
ld a, SPRITE_ANIM_FRAMESET_PARTY_MON_WITH_MAIL
|
||||
.okay
|
||||
ld hl, SPRITEANIMSTRUCT_FRAMESET_ID
|
||||
add hl, bc
|
||||
ld [hl], a
|
||||
ret
|
||||
|
||||
SetPartyMonIconAnimSpeed:
|
||||
push bc
|
||||
ldh a, [hObjectStructIndexBuffer]
|
||||
ld b, a
|
||||
call .getspeed
|
||||
ld a, b
|
||||
pop bc
|
||||
ld hl, SPRITEANIMSTRUCT_DURATIONOFFSET
|
||||
add hl, bc
|
||||
ld [hl], a
|
||||
rlca
|
||||
rlca
|
||||
ld hl, SPRITEANIMSTRUCT_0D
|
||||
add hl, bc
|
||||
ld [hl], a
|
||||
ret
|
||||
|
||||
.getspeed
|
||||
farcall PlacePartymonHPBar
|
||||
call GetHPPal
|
||||
ld e, d
|
||||
ld d, 0
|
||||
ld hl, .speeds
|
||||
add hl, de
|
||||
ld b, [hl]
|
||||
ret
|
||||
|
||||
.speeds
|
||||
db $00 ; HP_GREEN
|
||||
db $40 ; HP_YELLOW
|
||||
db $80 ; HP_RED
|
||||
|
||||
NamingScreen_InitAnimatedMonIcon:
|
||||
ld a, [wTempIconSpecies]
|
||||
call ReadMonMenuIcon
|
||||
ld [wCurIcon], a
|
||||
xor a
|
||||
call GetIconGFX
|
||||
depixel 4, 4, 4, 0
|
||||
ld a, SPRITE_ANIM_INDEX_PARTY_MON
|
||||
call _InitSpriteAnimStruct
|
||||
ld hl, SPRITEANIMSTRUCT_ANIM_SEQ_ID
|
||||
add hl, bc
|
||||
ld [hl], SPRITE_ANIM_SEQ_NULL
|
||||
ret
|
||||
|
||||
MoveList_InitAnimatedMonIcon:
|
||||
ld a, [wTempIconSpecies]
|
||||
call ReadMonMenuIcon
|
||||
ld [wCurIcon], a
|
||||
xor a
|
||||
call GetIconGFX
|
||||
ld d, 3 * 8 + 2 ; depixel 3, 4, 2, 4
|
||||
ld e, 4 * 8 + 4
|
||||
ld a, SPRITE_ANIM_INDEX_PARTY_MON
|
||||
call _InitSpriteAnimStruct
|
||||
ld hl, SPRITEANIMSTRUCT_ANIM_SEQ_ID
|
||||
add hl, bc
|
||||
ld [hl], SPRITE_ANIM_SEQ_NULL
|
||||
ret
|
||||
|
||||
Trade_LoadMonIconGFX:
|
||||
ld a, [wTempIconSpecies]
|
||||
call ReadMonMenuIcon
|
||||
ld [wCurIcon], a
|
||||
ld a, $62
|
||||
ld [wCurIconTile], a
|
||||
call GetMemIconGFX
|
||||
ret
|
||||
|
||||
GetSpeciesIcon:
|
||||
; Load species icon into VRAM at tile a
|
||||
push de
|
||||
ld a, [wTempIconSpecies]
|
||||
call ReadMonMenuIcon
|
||||
ld [wCurIcon], a
|
||||
pop de
|
||||
ld a, e
|
||||
call GetIconGFX
|
||||
ret
|
||||
|
||||
GetMemIconGFX:
|
||||
ld a, [wCurIconTile]
|
||||
GetIconGFX:
|
||||
; Load icon graphics into VRAM starting from tile a.
|
||||
ld l, a
|
||||
ld h, 0
|
||||
|
||||
; One tile is 16 bytes long.
|
||||
rept 4
|
||||
add hl, hl
|
||||
endr
|
||||
|
||||
ld de, vTiles0
|
||||
add hl, de
|
||||
push hl
|
||||
|
||||
; The icons are contiguous, in order and of the same
|
||||
; size, so the pointer table is somewhat redundant.
|
||||
ld a, [wCurIcon]
|
||||
push hl
|
||||
ld l, a
|
||||
ld h, 0
|
||||
add hl, hl
|
||||
ld de, IconPointers
|
||||
add hl, de
|
||||
ld a, [hli]
|
||||
ld e, a
|
||||
ld d, [hl]
|
||||
pop hl
|
||||
|
||||
lb bc, BANK(Icons), 8
|
||||
call Request2bpp
|
||||
|
||||
pop hl
|
||||
ld de, 8 tiles
|
||||
add hl, de
|
||||
ld de, HeldItemIcons
|
||||
lb bc, BANK(HeldItemIcons), 2
|
||||
call Request2bpp
|
||||
ld a, [wCurIconTile]
|
||||
add 10
|
||||
ld [wCurIconTile], a
|
||||
ret
|
||||
|
||||
HeldItemIcons:
|
||||
INCBIN "gfx/icons/mail.2bpp"
|
||||
INCBIN "gfx/icons/item.2bpp"
|
||||
|
||||
FreezeMonIcons:
|
||||
ld hl, wSpriteAnimationStructs
|
||||
ld e, PARTY_LENGTH
|
||||
ld a, [wMenuCursorY]
|
||||
ld d, a
|
||||
.loop
|
||||
ld a, [hl]
|
||||
and a
|
||||
jr z, .next
|
||||
cp d
|
||||
jr z, .loadwithtwo
|
||||
ld a, SPRITE_ANIM_SEQ_NULL
|
||||
jr .ok
|
||||
|
||||
.loadwithtwo
|
||||
ld a, SPRITE_ANIM_SEQ_PARTY_MON_SWITCH
|
||||
|
||||
.ok
|
||||
push hl
|
||||
ld c, l
|
||||
ld b, h
|
||||
ld hl, SPRITEANIMSTRUCT_ANIM_SEQ_ID
|
||||
add hl, bc
|
||||
ld [hl], a
|
||||
pop hl
|
||||
|
||||
.next
|
||||
ld bc, $10
|
||||
add hl, bc
|
||||
dec e
|
||||
jr nz, .loop
|
||||
ret
|
||||
|
||||
UnfreezeMonIcons:
|
||||
ld hl, wSpriteAnimationStructs
|
||||
ld e, PARTY_LENGTH
|
||||
.loop
|
||||
ld a, [hl]
|
||||
and a
|
||||
jr z, .next
|
||||
push hl
|
||||
ld c, l
|
||||
ld b, h
|
||||
ld hl, SPRITEANIMSTRUCT_ANIM_SEQ_ID
|
||||
add hl, bc
|
||||
ld [hl], SPRITE_ANIM_SEQ_PARTY_MON
|
||||
pop hl
|
||||
.next
|
||||
ld bc, $10
|
||||
add hl, bc
|
||||
dec e
|
||||
jr nz, .loop
|
||||
ret
|
||||
|
||||
HoldSwitchmonIcon:
|
||||
ld hl, wSpriteAnimationStructs
|
||||
ld e, PARTY_LENGTH
|
||||
ld a, [wSwitchMon]
|
||||
ld d, a
|
||||
.loop
|
||||
ld a, [hl]
|
||||
and a
|
||||
jr z, .next
|
||||
cp d
|
||||
jr z, .is_switchmon
|
||||
ld a, SPRITE_ANIM_SEQ_PARTY_MON_SELECTED
|
||||
jr .join_back
|
||||
|
||||
.is_switchmon
|
||||
ld a, SPRITE_ANIM_SEQ_PARTY_MON_SWITCH
|
||||
.join_back
|
||||
push hl
|
||||
ld c, l
|
||||
ld b, h
|
||||
ld hl, SPRITEANIMSTRUCT_ANIM_SEQ_ID
|
||||
add hl, bc
|
||||
ld [hl], a
|
||||
pop hl
|
||||
.next
|
||||
ld bc, $10
|
||||
add hl, bc
|
||||
dec e
|
||||
jr nz, .loop
|
||||
ret
|
||||
|
||||
ReadMonMenuIcon:
|
||||
cp EGG
|
||||
jr z, .egg
|
||||
dec a
|
||||
ld hl, MonMenuIcons
|
||||
ld e, a
|
||||
ld d, 0
|
||||
add hl, de
|
||||
ld a, [hl]
|
||||
ret
|
||||
.egg
|
||||
ld a, ICON_EGG
|
||||
ret
|
||||
|
||||
INCLUDE "data/pokemon/menu_icons.asm"
|
||||
|
||||
INCLUDE "data/icon_pointers.asm"
|
||||
|
||||
INCLUDE "gfx/icons.asm"
|
||||
41
gfx/icons.asm
Executable file
@@ -0,0 +1,41 @@
|
||||
Icons: ; used only for BANK(Icons)
|
||||
|
||||
NullIcon:
|
||||
PoliwagIcon: INCBIN "gfx/icons/poliwag.2bpp"
|
||||
JigglypuffIcon: INCBIN "gfx/icons/jigglypuff.2bpp"
|
||||
DiglettIcon: INCBIN "gfx/icons/diglett.2bpp"
|
||||
PikachuIcon: INCBIN "gfx/icons/pikachu.2bpp"
|
||||
StaryuIcon: INCBIN "gfx/icons/staryu.2bpp"
|
||||
FishIcon: INCBIN "gfx/icons/fish.2bpp"
|
||||
BirdIcon: INCBIN "gfx/icons/bird.2bpp"
|
||||
MonsterIcon: INCBIN "gfx/icons/monster.2bpp"
|
||||
ClefairyIcon: INCBIN "gfx/icons/clefairy.2bpp"
|
||||
OddishIcon: INCBIN "gfx/icons/oddish.2bpp"
|
||||
BugIcon: INCBIN "gfx/icons/bug.2bpp"
|
||||
GhostIcon: INCBIN "gfx/icons/ghost.2bpp"
|
||||
LaprasIcon: INCBIN "gfx/icons/lapras.2bpp"
|
||||
HumanshapeIcon: INCBIN "gfx/icons/humanshape.2bpp"
|
||||
FoxIcon: INCBIN "gfx/icons/fox.2bpp"
|
||||
EquineIcon: INCBIN "gfx/icons/equine.2bpp"
|
||||
ShellIcon: INCBIN "gfx/icons/shell.2bpp"
|
||||
BlobIcon: INCBIN "gfx/icons/blob.2bpp"
|
||||
SerpentIcon: INCBIN "gfx/icons/serpent.2bpp"
|
||||
VoltorbIcon: INCBIN "gfx/icons/voltorb.2bpp"
|
||||
SquirtleIcon: INCBIN "gfx/icons/squirtle.2bpp"
|
||||
BulbasaurIcon: INCBIN "gfx/icons/bulbasaur.2bpp"
|
||||
CharmanderIcon: INCBIN "gfx/icons/charmander.2bpp"
|
||||
CaterpillarIcon: INCBIN "gfx/icons/caterpillar.2bpp"
|
||||
UnownIcon: INCBIN "gfx/icons/unown.2bpp"
|
||||
GeodudeIcon: INCBIN "gfx/icons/geodude.2bpp"
|
||||
FighterIcon: INCBIN "gfx/icons/fighter.2bpp"
|
||||
EggIcon: INCBIN "gfx/icons/egg.2bpp"
|
||||
JellyfishIcon: INCBIN "gfx/icons/jellyfish.2bpp"
|
||||
MothIcon: INCBIN "gfx/icons/moth.2bpp"
|
||||
BatIcon: INCBIN "gfx/icons/bat.2bpp"
|
||||
SnorlaxIcon: INCBIN "gfx/icons/snorlax.2bpp"
|
||||
HoOhIcon: INCBIN "gfx/icons/ho_oh.2bpp"
|
||||
LugiaIcon: INCBIN "gfx/icons/lugia.2bpp"
|
||||
GyaradosIcon: INCBIN "gfx/icons/gyarados.2bpp"
|
||||
SlowpokeIcon: INCBIN "gfx/icons/slowpoke.2bpp"
|
||||
SudowoodoIcon: INCBIN "gfx/icons/sudowoodo.2bpp"
|
||||
BigmonIcon: INCBIN "gfx/icons/bigmon.2bpp"
|
||||
BIN
gfx/icons/bat.2bpp
Executable file
BIN
gfx/icons/bat.png
Executable file
|
After Width: | Height: | Size: 169 B |
BIN
gfx/icons/bigmon.2bpp
Executable file
BIN
gfx/icons/bigmon.png
Executable file
|
After Width: | Height: | Size: 185 B |
BIN
gfx/icons/bird.2bpp
Executable file
BIN
gfx/icons/bird.png
Executable file
|
After Width: | Height: | Size: 176 B |
BIN
gfx/icons/blob.2bpp
Executable file
BIN
gfx/icons/blob.png
Executable file
|
After Width: | Height: | Size: 174 B |
BIN
gfx/icons/bug.2bpp
Executable file
BIN
gfx/icons/bug.png
Executable file
|
After Width: | Height: | Size: 185 B |
BIN
gfx/icons/bulbasaur.2bpp
Executable file
BIN
gfx/icons/bulbasaur.png
Executable file
|
After Width: | Height: | Size: 166 B |
BIN
gfx/icons/caterpillar.2bpp
Executable file
BIN
gfx/icons/caterpillar.png
Executable file
|
After Width: | Height: | Size: 159 B |
BIN
gfx/icons/charmander.2bpp
Executable file
BIN
gfx/icons/charmander.png
Executable file
|
After Width: | Height: | Size: 166 B |
BIN
gfx/icons/clefairy.2bpp
Executable file
BIN
gfx/icons/clefairy.png
Executable file
|
After Width: | Height: | Size: 165 B |
BIN
gfx/icons/diglett.2bpp
Executable file
BIN
gfx/icons/diglett.png
Executable file
|
After Width: | Height: | Size: 129 B |
BIN
gfx/icons/egg.2bpp
Executable file
BIN
gfx/icons/egg.png
Executable file
|
After Width: | Height: | Size: 155 B |
BIN
gfx/icons/equine.2bpp
Executable file
BIN
gfx/icons/equine.png
Executable file
|
After Width: | Height: | Size: 159 B |
BIN
gfx/icons/fighter.2bpp
Executable file
BIN
gfx/icons/fighter.png
Executable file
|
After Width: | Height: | Size: 179 B |
BIN
gfx/icons/fish.2bpp
Executable file
BIN
gfx/icons/fish.png
Executable file
|
After Width: | Height: | Size: 173 B |
BIN
gfx/icons/fox.2bpp
Executable file
BIN
gfx/icons/fox.png
Executable file
|
After Width: | Height: | Size: 188 B |
BIN
gfx/icons/geodude.2bpp
Executable file
BIN
gfx/icons/geodude.png
Executable file
|
After Width: | Height: | Size: 173 B |
BIN
gfx/icons/ghost.2bpp
Executable file
BIN
gfx/icons/ghost.png
Executable file
|
After Width: | Height: | Size: 143 B |
BIN
gfx/icons/gyarados.2bpp
Executable file
BIN
gfx/icons/gyarados.png
Executable file
|
After Width: | Height: | Size: 208 B |
BIN
gfx/icons/ho_oh.2bpp
Executable file
BIN
gfx/icons/ho_oh.png
Executable file
|
After Width: | Height: | Size: 204 B |
BIN
gfx/icons/humanshape.2bpp
Executable file
BIN
gfx/icons/humanshape.png
Executable file
|
After Width: | Height: | Size: 161 B |
1
gfx/icons/item.2bpp
Executable file
@@ -0,0 +1 @@
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>½η½<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
BIN
gfx/icons/item.png
Executable file
|
After Width: | Height: | Size: 82 B |
BIN
gfx/icons/jellyfish.2bpp
Executable file
BIN
gfx/icons/jellyfish.png
Executable file
|
After Width: | Height: | Size: 172 B |
BIN
gfx/icons/jigglypuff.2bpp
Executable file
BIN
gfx/icons/jigglypuff.png
Executable file
|
After Width: | Height: | Size: 165 B |
BIN
gfx/icons/lapras.2bpp
Executable file
BIN
gfx/icons/lapras.png
Executable file
|
After Width: | Height: | Size: 165 B |
BIN
gfx/icons/lugia.2bpp
Executable file
BIN
gfx/icons/lugia.png
Executable file
|
After Width: | Height: | Size: 185 B |
1
gfx/icons/mail.2bpp
Executable file
@@ -0,0 +1 @@
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
BIN
gfx/icons/mail.png
Executable file
|
After Width: | Height: | Size: 85 B |
BIN
gfx/icons/monster.2bpp
Executable file
BIN
gfx/icons/monster.png
Executable file
|
After Width: | Height: | Size: 179 B |
BIN
gfx/icons/moth.2bpp
Executable file
BIN
gfx/icons/moth.png
Executable file
|
After Width: | Height: | Size: 185 B |
BIN
gfx/icons/oddish.2bpp
Executable file
BIN
gfx/icons/oddish.png
Executable file
|
After Width: | Height: | Size: 157 B |
BIN
gfx/icons/pikachu.2bpp
Executable file
BIN
gfx/icons/pikachu.png
Executable file
|
After Width: | Height: | Size: 172 B |
BIN
gfx/icons/poliwag.2bpp
Executable file
BIN
gfx/icons/poliwag.png
Executable file
|
After Width: | Height: | Size: 158 B |
BIN
gfx/icons/serpent.2bpp
Executable file
BIN
gfx/icons/serpent.png
Executable file
|
After Width: | Height: | Size: 145 B |
BIN
gfx/icons/shell.2bpp
Executable file
BIN
gfx/icons/shell.png
Executable file
|
After Width: | Height: | Size: 170 B |
2
gfx/icons/slowpoke.2bpp
Executable file
@@ -0,0 +1,2 @@
|
||||
88GP|c<+<#@O88ִ<38><14>|<7C>x¨xˆ<78><04>ה? ? ?רננרר<04><04>ˆרpp#?(?>1? ?'ג
|
||||
>ֶ<װ<ִע ? ?<0C>רררר<04><04>ˆרpp
|
||||
BIN
gfx/icons/slowpoke.png
Executable file
|
After Width: | Height: | Size: 183 B |
BIN
gfx/icons/snorlax.2bpp
Executable file
BIN
gfx/icons/snorlax.png
Executable file
|
After Width: | Height: | Size: 165 B |
BIN
gfx/icons/squirtle.2bpp
Executable file
BIN
gfx/icons/squirtle.png
Executable file
|
After Width: | Height: | Size: 170 B |
BIN
gfx/icons/staryu.2bpp
Executable file
BIN
gfx/icons/staryu.png
Executable file
|
After Width: | Height: | Size: 166 B |
BIN
gfx/icons/sudowoodo.2bpp
Executable file
BIN
gfx/icons/sudowoodo.png
Executable file
|
After Width: | Height: | Size: 195 B |
BIN
gfx/icons/unown.2bpp
Executable file
BIN
gfx/icons/unown.png
Executable file
|
After Width: | Height: | Size: 112 B |
BIN
gfx/icons/voltorb.2bpp
Executable file
BIN
gfx/icons/voltorb.png
Executable file
|
After Width: | Height: | Size: 127 B |
27
main.asm
@@ -238,38 +238,15 @@ INCLUDE "engine/battle/battle_transition.asm"
|
||||
INCLUDE "engine/events/field_moves.asm"
|
||||
INCLUDE "engine/events/magnet_train.asm"
|
||||
INCLUDE "engine/gfx/sprites.asm"
|
||||
INCLUDE "engine/gfx/mon_icons.asm"
|
||||
|
||||
LoadOverworldMonIcon::
|
||||
IF DEF(_GOLD)
|
||||
dr $8e78b, $8e79f
|
||||
LoadMenuMonIcon::
|
||||
dr $8e79f, $8e88f
|
||||
GetSpeciesIcon::
|
||||
dr $8e88f, $8e8fb
|
||||
FreezeMonIcons::
|
||||
dr $8e8fb, $8e922
|
||||
UnfreezeMonIcons::
|
||||
dr $8e922, $8e93d
|
||||
HoldSwitchmonIcon::
|
||||
dr $8e93d, $8fdbe
|
||||
InitDisplayForHallOfFame::
|
||||
IF DEF(_GOLD)
|
||||
dr $8fdbe, $8fdff
|
||||
InitDisplayForRedCredits::
|
||||
dr $8fdff, $8fe43
|
||||
|
||||
ELIF DEF(_SILVER)
|
||||
dr $8e771, $8e785
|
||||
LoadMenuMonIcon::
|
||||
dr $8e785, $8e875
|
||||
GetSpeciesIcon::
|
||||
dr $8e875, $8e8e1
|
||||
FreezeMonIcons::
|
||||
dr $8e8e1, $8e908
|
||||
UnfreezeMonIcons::
|
||||
dr $8e908, $8e923
|
||||
HoldSwitchmonIcon::
|
||||
dr $8e923, $8fda4
|
||||
InitDisplayForHallOfFame::
|
||||
dr $8fda4, $8fde5
|
||||
InitDisplayForRedCredits::
|
||||
dr $8fde5, $8fe43
|
||||
|
||||