mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Simplify map connections
let the macros calculate the connection strip length instead of passing it as an arg don't pass map dimensions since they can be inferred from map ids todo: figure out why certain south and east connections get an extra 3 added to the connection strip length
This commit is contained in:
parent
54c1893d57
commit
0ad1153f16
37 changed files with 155 additions and 138 deletions
|
|
@ -3,6 +3,6 @@ Route23_h: ; 0x5033f to 0x50361 (34 bytes) (id=34)
|
|||
db ROUTE_23_HEIGHT, ROUTE_23_WIDTH ; dimensions (y, x)
|
||||
dw Route23Blocks, Route23TextPointers, Route23Script ; blocks, texts, scripts
|
||||
db NORTH | SOUTH ; connections
|
||||
NORTH_MAP_CONNECTION INDIGO_PLATEAU, INDIGO_PLATEAU_WIDTH, INDIGO_PLATEAU_HEIGHT, 0, 0, INDIGO_PLATEAU_WIDTH, IndigoPlateauBlocks
|
||||
SOUTH_MAP_CONNECTION ROUTE_22, ROUTE_22_WIDTH, 0, 0, ROUTE_23_WIDTH + 3, Route22Blocks, ROUTE_23_WIDTH, ROUTE_23_HEIGHT
|
||||
NORTH_MAP_CONNECTION ROUTE_23, INDIGO_PLATEAU, 0, 0, IndigoPlateauBlocks
|
||||
SOUTH_MAP_CONNECTION ROUTE_23, ROUTE_22, 0, 0, Route22Blocks, 1
|
||||
dw Route23Object ; objects
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue