mirror of
https://github.com/pret/pokered.git
synced 2024-10-22 22:55:31 +00:00
Identify remaining tilemap IDs
This commit is contained in:
parent
30ecbf6ea3
commit
3c1cdbc4d0
11 changed files with 45 additions and 56 deletions
|
@ -29,3 +29,14 @@ TRANSFERBOTTOM EQU 2
|
||||||
; hRedrawRowOrColumnMode
|
; hRedrawRowOrColumnMode
|
||||||
REDRAW_COL EQU 1
|
REDRAW_COL EQU 1
|
||||||
REDRAW_ROW EQU 2
|
REDRAW_ROW EQU 2
|
||||||
|
|
||||||
|
; tile list ids
|
||||||
|
const_def
|
||||||
|
const TILEMAP_MON_PIC
|
||||||
|
const TILEMAP_SLIDE_DOWN_MON_PIC_7X5
|
||||||
|
const TILEMAP_SLIDE_DOWN_MON_PIC_7X3
|
||||||
|
const TILEMAP_GENGAR_INTRO_1
|
||||||
|
const TILEMAP_GENGAR_INTRO_2
|
||||||
|
const TILEMAP_GENGAR_INTRO_3
|
||||||
|
const TILEMAP_GAME_BOY
|
||||||
|
const TILEMAP_LINK_CABLE
|
||||||
|
|
|
@ -4,48 +4,31 @@ tile_ids: MACRO
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
TileIDListPointerTable:
|
TileIDListPointerTable:
|
||||||
|
; entries correspond to TILEMAP_* constants (see constants/gfx_constants.asm)
|
||||||
; tilemap pointer, width, height
|
; tilemap pointer, width, height
|
||||||
tile_ids Unknown_79b24, 7, 7
|
tile_ids MonTiles, 7, 7
|
||||||
tile_ids Unknown_79b55, 7, 5
|
tile_ids SlideDownMonTiles_7x5, 7, 5
|
||||||
tile_ids Unknown_79b78, 7, 3
|
tile_ids SlideDownMonTiles_7x3, 7, 3
|
||||||
tile_ids GengarIntroTiles1, 7, 7
|
tile_ids GengarIntroTiles1, 7, 7
|
||||||
tile_ids GengarIntroTiles2, 7, 7
|
tile_ids GengarIntroTiles2, 7, 7
|
||||||
tile_ids GengarIntroTiles3, 7, 7
|
tile_ids GengarIntroTiles3, 7, 7
|
||||||
tile_ids GameBoyTiles, 6, 8
|
tile_ids GameBoyTiles, 6, 8
|
||||||
tile_ids LinkCableTiles, 12, 3
|
tile_ids LinkCableTiles, 12, 3
|
||||||
|
|
||||||
DownscaledMonTiles_5x5:
|
DownscaledMonTiles_5x5:
|
||||||
db $31,$38,$46,$54,$5B
|
INCBIN "gfx/pokemon/downscaled_5x5.tilemap"
|
||||||
db $32,$39,$47,$55,$5C
|
|
||||||
db $34,$3B,$49,$57,$5E
|
|
||||||
db $36,$3D,$4B,$59,$60
|
|
||||||
db $37,$3E,$4C,$5A,$61
|
|
||||||
|
|
||||||
DownscaledMonTiles_3x3:
|
DownscaledMonTiles_3x3:
|
||||||
db $31,$46,$5B
|
INCBIN "gfx/pokemon/downscaled_3x3.tilemap"
|
||||||
db $34,$49,$5E
|
|
||||||
db $37,$4C,$61
|
|
||||||
|
|
||||||
Unknown_79b24:
|
MonTiles:
|
||||||
db $00,$07,$0E,$15,$1C,$23,$2A
|
INCBIN "gfx/pokemon/front.tilemap"
|
||||||
db $01,$08,$0F,$16,$1D,$24,$2B
|
|
||||||
db $02,$09,$10,$17,$1E,$25,$2C
|
|
||||||
db $03,$0A,$11,$18,$1F,$26,$2D
|
|
||||||
db $04,$0B,$12,$19,$20,$27,$2E
|
|
||||||
db $05,$0C,$13,$1A,$21,$28,$2F
|
|
||||||
db $06,$0D,$14,$1B,$22,$29,$30
|
|
||||||
|
|
||||||
Unknown_79b55:
|
SlideDownMonTiles_7x5:
|
||||||
db $00,$07,$0E,$15,$1C,$23,$2A
|
INCBIN "gfx/pokemon/slide_down_7x5.tilemap"
|
||||||
db $01,$08,$0F,$16,$1D,$24,$2B
|
|
||||||
db $03,$0A,$11,$18,$1F,$26,$2D
|
|
||||||
db $04,$0B,$12,$19,$20,$27,$2E
|
|
||||||
db $05,$0C,$13,$1A,$21,$28,$2F
|
|
||||||
|
|
||||||
Unknown_79b78:
|
SlideDownMonTiles_7x3:
|
||||||
db $00,$07,$0E,$15,$1C,$23,$2A
|
INCBIN "gfx/pokemon/slide_down_7x3.tilemap"
|
||||||
db $02,$09,$10,$17,$1E,$25,$2C
|
|
||||||
db $04,$0B,$12,$19,$20,$27,$2E
|
|
||||||
|
|
||||||
GengarIntroTiles1:
|
GengarIntroTiles1:
|
||||||
INCBIN "gfx/intro_credits/gengar_1.tilemap"
|
INCBIN "gfx/intro_credits/gengar_1.tilemap"
|
||||||
|
|
|
@ -1148,7 +1148,7 @@ AnimationSlideMonUp:
|
||||||
|
|
||||||
AnimationSlideMonDown:
|
AnimationSlideMonDown:
|
||||||
; Slides the mon's sprite down out of the screen.
|
; Slides the mon's sprite down out of the screen.
|
||||||
xor a
|
xor a ; TILEMAP_MON_PIC
|
||||||
call GetTileIDList
|
call GetTileIDList
|
||||||
.loop
|
.loop
|
||||||
call GetMonSpriteTileMapPointerFromRowCount
|
call GetMonSpriteTileMapPointerFromRowCount
|
||||||
|
@ -1355,7 +1355,7 @@ AnimationFlashEnemyMonPic:
|
||||||
jp CallWithTurnFlipped
|
jp CallWithTurnFlipped
|
||||||
|
|
||||||
AnimationShowMonPic:
|
AnimationShowMonPic:
|
||||||
xor a
|
xor a ; TILEMAP_MON_PIC
|
||||||
call GetTileIDList
|
call GetTileIDList
|
||||||
call GetMonSpriteTileMapPointerFromRowCount
|
call GetMonSpriteTileMapPointerFromRowCount
|
||||||
call CopyPicTiles
|
call CopyPicTiles
|
||||||
|
@ -1379,7 +1379,7 @@ AnimationShakeBackAndForth:
|
||||||
decoord 13, 0
|
decoord 13, 0
|
||||||
|
|
||||||
.next
|
.next
|
||||||
xor a
|
xor a ; TILEMAP_MON_PIC
|
||||||
ld c, $10
|
ld c, $10
|
||||||
.loop
|
.loop
|
||||||
push af
|
push af
|
||||||
|
@ -1424,7 +1424,7 @@ AnimationMoveMonHorizontally:
|
||||||
jr z, .next
|
jr z, .next
|
||||||
hlcoord 11, 0
|
hlcoord 11, 0
|
||||||
.next
|
.next
|
||||||
xor a
|
xor a ; TILEMAP_MON_PIC
|
||||||
push hl
|
push hl
|
||||||
call GetTileIDList
|
call GetTileIDList
|
||||||
pop hl
|
pop hl
|
||||||
|
@ -1715,8 +1715,8 @@ MinimizedMonSpriteEnd:
|
||||||
|
|
||||||
AnimationSlideMonDownAndHide:
|
AnimationSlideMonDownAndHide:
|
||||||
; Slides the mon's sprite down and disappears. Used in Acid Armor.
|
; Slides the mon's sprite down and disappears. Used in Acid Armor.
|
||||||
ld a, $1
|
ld a, TILEMAP_SLIDE_DOWN_MON_PIC_7X5
|
||||||
ld c, $2
|
ld c, 2
|
||||||
.loop
|
.loop
|
||||||
push bc
|
push bc
|
||||||
push af
|
push af
|
||||||
|
@ -1735,7 +1735,7 @@ AnimationSlideMonDownAndHide:
|
||||||
jr nz, .loop
|
jr nz, .loop
|
||||||
call AnimationHideMonPic
|
call AnimationHideMonPic
|
||||||
ld hl, wTempPic
|
ld hl, wTempPic
|
||||||
ld bc, $310
|
ld bc, 7 * 7 tiles
|
||||||
xor a
|
xor a
|
||||||
call FillMemory
|
call FillMemory
|
||||||
jp CopyTempPicToMonPic
|
jp CopyTempPicToMonPic
|
||||||
|
@ -2007,7 +2007,7 @@ ChangeMonPic:
|
||||||
ld [wd0b5], a
|
ld [wd0b5], a
|
||||||
call GetMonHeader
|
call GetMonHeader
|
||||||
predef LoadMonBackPic
|
predef LoadMonBackPic
|
||||||
xor a
|
xor a ; TILEMAP_MON_PIC
|
||||||
call GetTileIDList
|
call GetTileIDList
|
||||||
call GetMonSpriteTileMapPointerFromRowCount
|
call GetMonSpriteTileMapPointerFromRowCount
|
||||||
call CopyPicTiles
|
call CopyPicTiles
|
||||||
|
|
|
@ -202,7 +202,7 @@ HoFLoadPlayerPics:
|
||||||
|
|
||||||
HoFLoadMonPlayerPicTileIDs:
|
HoFLoadMonPlayerPicTileIDs:
|
||||||
; c = base tile ID
|
; c = base tile ID
|
||||||
ld b, 0
|
ld b, TILEMAP_MON_PIC
|
||||||
hlcoord 12, 5
|
hlcoord 12, 5
|
||||||
predef_jump CopyTileIDsFromList
|
predef_jump CopyTileIDsFromList
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,10 @@
|
||||||
const_value = -1
|
const_def -1
|
||||||
const MOVE_NIDORINO_RIGHT
|
const MOVE_NIDORINO_RIGHT
|
||||||
const MOVE_GENGAR_RIGHT
|
const MOVE_GENGAR_RIGHT
|
||||||
const MOVE_GENGAR_LEFT
|
const MOVE_GENGAR_LEFT
|
||||||
|
|
||||||
ANIMATION_END EQU 80
|
ANIMATION_END EQU 80
|
||||||
|
|
||||||
const_value = 3
|
|
||||||
const GENGAR_INTRO_TILES1
|
|
||||||
const GENGAR_INTRO_TILES2
|
|
||||||
const GENGAR_INTRO_TILES3
|
|
||||||
|
|
||||||
PlayIntro:
|
PlayIntro:
|
||||||
xor a
|
xor a
|
||||||
ldh [hJoyHeld], a
|
ldh [hJoyHeld], a
|
||||||
|
@ -34,7 +29,7 @@ PlayIntroScene:
|
||||||
ldh [rOBP1], a
|
ldh [rOBP1], a
|
||||||
xor a
|
xor a
|
||||||
ldh [hSCX], a
|
ldh [hSCX], a
|
||||||
ld b, GENGAR_INTRO_TILES1
|
ld b, TILEMAP_GENGAR_INTRO_1
|
||||||
call IntroCopyTiles
|
call IntroCopyTiles
|
||||||
ld a, 0
|
ld a, 0
|
||||||
ld [wBaseCoordX], a
|
ld [wBaseCoordX], a
|
||||||
|
@ -77,7 +72,7 @@ PlayIntroScene:
|
||||||
ret c
|
ret c
|
||||||
|
|
||||||
; raise
|
; raise
|
||||||
ld b, GENGAR_INTRO_TILES2
|
ld b, TILEMAP_GENGAR_INTRO_2
|
||||||
call IntroCopyTiles
|
call IntroCopyTiles
|
||||||
ld a, SFX_INTRO_RAISE
|
ld a, SFX_INTRO_RAISE
|
||||||
call PlaySound
|
call PlaySound
|
||||||
|
@ -88,7 +83,7 @@ PlayIntroScene:
|
||||||
ret c
|
ret c
|
||||||
|
|
||||||
; slash
|
; slash
|
||||||
ld b, GENGAR_INTRO_TILES3
|
ld b, TILEMAP_GENGAR_INTRO_3
|
||||||
call IntroCopyTiles
|
call IntroCopyTiles
|
||||||
ld a, SFX_INTRO_CRASH
|
ld a, SFX_INTRO_CRASH
|
||||||
call PlaySound
|
call PlaySound
|
||||||
|
@ -107,7 +102,7 @@ PlayIntroScene:
|
||||||
|
|
||||||
lb de, 8 / 2, MOVE_GENGAR_LEFT
|
lb de, 8 / 2, MOVE_GENGAR_LEFT
|
||||||
call IntroMoveMon
|
call IntroMoveMon
|
||||||
ld b, GENGAR_INTRO_TILES1
|
ld b, TILEMAP_GENGAR_INTRO_1
|
||||||
call IntroCopyTiles
|
call IntroCopyTiles
|
||||||
ld c, 60
|
ld c, 60
|
||||||
call CheckForUserInterruption
|
call CheckForUserInterruption
|
||||||
|
|
|
@ -282,7 +282,7 @@ Trade_DrawOpenEndOfLinkCable:
|
||||||
ld a, %10001011
|
ld a, %10001011
|
||||||
ldh [rLCDC], a
|
ldh [rLCDC], a
|
||||||
hlcoord 6, 2
|
hlcoord 6, 2
|
||||||
ld b, $7 ; open end of link cable tile ID list index
|
ld b, TILEMAP_LINK_CABLE
|
||||||
call CopyTileIDsFromList_ZeroBaseTileID
|
call CopyTileIDsFromList_ZeroBaseTileID
|
||||||
call Trade_CopyTileMapToVRAM
|
call Trade_CopyTileMapToVRAM
|
||||||
ld a, SFX_HEAL_HP
|
ld a, SFX_HEAL_HP
|
||||||
|
@ -474,7 +474,7 @@ Trade_DrawLeftGameboy:
|
||||||
|
|
||||||
; draw gameboy pic
|
; draw gameboy pic
|
||||||
hlcoord 5, 3
|
hlcoord 5, 3
|
||||||
ld b, $6
|
ld b, TILEMAP_GAME_BOY
|
||||||
call CopyTileIDsFromList_ZeroBaseTileID
|
call CopyTileIDsFromList_ZeroBaseTileID
|
||||||
|
|
||||||
; draw text box with player name below gameboy pic
|
; draw text box with player name below gameboy pic
|
||||||
|
@ -521,7 +521,7 @@ Trade_DrawRightGameboy:
|
||||||
|
|
||||||
; draw gameboy pic
|
; draw gameboy pic
|
||||||
hlcoord 7, 8
|
hlcoord 7, 8
|
||||||
ld b, $6
|
ld b, TILEMAP_GAME_BOY
|
||||||
call CopyTileIDsFromList_ZeroBaseTileID
|
call CopyTileIDsFromList_ZeroBaseTileID
|
||||||
|
|
||||||
; draw text box with enemy name above link cable
|
; draw text box with enemy name above link cable
|
||||||
|
|
BIN
gfx/pokemon/downscaled_3x3.tilemap
Normal file
BIN
gfx/pokemon/downscaled_3x3.tilemap
Normal file
Binary file not shown.
BIN
gfx/pokemon/downscaled_5x5.tilemap
Normal file
BIN
gfx/pokemon/downscaled_5x5.tilemap
Normal file
Binary file not shown.
BIN
gfx/pokemon/front.tilemap
Normal file
BIN
gfx/pokemon/front.tilemap
Normal file
Binary file not shown.
BIN
gfx/pokemon/slide_down_7x3.tilemap
Normal file
BIN
gfx/pokemon/slide_down_7x3.tilemap
Normal file
Binary file not shown.
BIN
gfx/pokemon/slide_down_7x5.tilemap
Normal file
BIN
gfx/pokemon/slide_down_7x5.tilemap
Normal file
Binary file not shown.
Loading…
Reference in a new issue