grunt-lucas / porytiles

Overworld tileset compiler for Pokémon Generation 3 decompilation projects
MIT License
35 stars 3 forks source link

Create a way to handle multiple shared primary tilesets between a single secondary tileset #55

Open grunt-lucas opened 3 months ago

grunt-lucas commented 3 months ago

I am thinking of a case where a secondary metatile, on say the bottom layer, references a fixed tile/rotation/palette in the primary set. And depending on which primary set is in place, that tile might be grey stone, or brown stone, or whatever. So you could have a secondary set called e.g. SecondaryCaveDetails that has e.g. a sign where the background tile of the sign changes depending on if it's paired with PrimaryGreyCave or PrimaryBrownCave, just as an e.g.

This provides a really cool way for users to have a lot of primary tileset variety without having to create tons of duplicate secondary sets. It can be used for more than just caves. E.g. you could do seasons with it too. You could have e.g. PrimaryGeneralSummer and PrimaryGeneralWinter, and then all your secondary tilesets would automatically index in to the correct place, no matter if the game is using the summer or winter primary set.

Josh mentioned that this is done in FireRed for some of the cave tilesets.