mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 23:55: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 @@ PalletTown_h: ; 182a1 (6:42a1)
|
|||
db PALLET_TOWN_HEIGHT, PALLET_TOWN_WIDTH ; dimensions
|
||||
dw PalletTownBlocks, PalletTownTextPointers, PalletTownScript
|
||||
db NORTH | SOUTH ; connections
|
||||
NORTH_MAP_CONNECTION ROUTE_1, ROUTE_1_WIDTH, ROUTE_1_HEIGHT, 0, 0, ROUTE_1_WIDTH, Route1Blocks
|
||||
SOUTH_MAP_CONNECTION ROUTE_21, ROUTE_21_WIDTH, 0, 0, ROUTE_21_WIDTH, Route21Blocks, PALLET_TOWN_WIDTH, PALLET_TOWN_HEIGHT
|
||||
NORTH_MAP_CONNECTION PALLET_TOWN, ROUTE_1, 0, 0, Route1Blocks
|
||||
SOUTH_MAP_CONNECTION PALLET_TOWN, ROUTE_21, 0, 0, Route21Blocks, 1
|
||||
dw PalletTownObject
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue