mirror of
https://github.com/pret/pokered.git
synced 2024-10-22 22:55:31 +00:00
Factor out data/tilesets/pair_collision_tile_ids.asm
This commit is contained in:
parent
b506214f68
commit
70eac3a1f7
2 changed files with 25 additions and 24 deletions
24
data/tilesets/pair_collision_tile_ids.asm
Normal file
24
data/tilesets/pair_collision_tile_ids.asm
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
; FORMAT: tileset number, tile 1, tile 2
|
||||||
|
; terminated by -1
|
||||||
|
; these entries indicate that the player may not cross between tile 1 and tile 2
|
||||||
|
; it's mainly used to simulate differences in elevation
|
||||||
|
|
||||||
|
TilePairCollisionsLand::
|
||||||
|
db CAVERN, $20, $05
|
||||||
|
db CAVERN, $41, $05
|
||||||
|
db FOREST, $30, $2E
|
||||||
|
db CAVERN, $2A, $05
|
||||||
|
db CAVERN, $05, $21
|
||||||
|
db FOREST, $52, $2E
|
||||||
|
db FOREST, $55, $2E
|
||||||
|
db FOREST, $56, $2E
|
||||||
|
db FOREST, $20, $2E
|
||||||
|
db FOREST, $5E, $2E
|
||||||
|
db FOREST, $5F, $2E
|
||||||
|
db -1 ; end
|
||||||
|
|
||||||
|
TilePairCollisionsWater::
|
||||||
|
db FOREST, $14, $2E
|
||||||
|
db FOREST, $48, $2E
|
||||||
|
db CAVERN, $14, $05
|
||||||
|
db -1 ; end
|
|
@ -1345,30 +1345,7 @@ CheckForTilePairCollisions::
|
||||||
and a
|
and a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
; FORMAT: tileset number, tile 1, tile 2
|
INCLUDE "data/tilesets/pair_collision_tile_ids.asm"
|
||||||
; terminated by 0xFF
|
|
||||||
; these entries indicate that the player may not cross between tile 1 and tile 2
|
|
||||||
; it's mainly used to simulate differences in elevation
|
|
||||||
|
|
||||||
TilePairCollisionsLand::
|
|
||||||
db CAVERN, $20, $05
|
|
||||||
db CAVERN, $41, $05
|
|
||||||
db FOREST, $30, $2E
|
|
||||||
db CAVERN, $2A, $05
|
|
||||||
db CAVERN, $05, $21
|
|
||||||
db FOREST, $52, $2E
|
|
||||||
db FOREST, $55, $2E
|
|
||||||
db FOREST, $56, $2E
|
|
||||||
db FOREST, $20, $2E
|
|
||||||
db FOREST, $5E, $2E
|
|
||||||
db FOREST, $5F, $2E
|
|
||||||
db $FF
|
|
||||||
|
|
||||||
TilePairCollisionsWater::
|
|
||||||
db FOREST, $14, $2E
|
|
||||||
db FOREST, $48, $2E
|
|
||||||
db CAVERN, $14, $05
|
|
||||||
db $FF
|
|
||||||
|
|
||||||
; this builds a tile map from the tile block map based on the current X/Y coordinates of the player's character
|
; this builds a tile map from the tile block map based on the current X/Y coordinates of the player's character
|
||||||
LoadCurrentMapView::
|
LoadCurrentMapView::
|
||||||
|
|
Loading…
Reference in a new issue