To permit fixing the tiles used in game, permit easy tweaking without adding hard-coded workarounds in the code, and later permit the addition of biomes, here is a solution I'd like to get permission to start developping:
Add a configuration file that will tell which mesh file and which material file to use according to the tile type and neighborhood.
Example: Let's say config/tileset.cfg:
- {l Code}: {l Select All Code}
# Tile neighborhood: 1 means same tile type and fullness > 1.0
# Type, North, northeast, east, south-east, south, south-west, west, mesh file, material file (none if default one)
#The biome:
[Default]
Dirt, 0, 0, 0, 0, 0, 0, 0, Dirt_00000000.mesh, none
Gold, 0, 0, 0, 0, 0, 0, 0, Dirt_00000000.mesh, Gold.material
...
#And later, e.g.:
[Jungle]
Dirt, 0, 0, 0, 0, 0, 0, 0, Jungle_Dirt_00000000.mesh, none
Gold, 0, 0, 0, 0, 0, 0, 0, Jungle_Gold_00000000.mesh, none
...
To me, this solution would be perfect to fix every glitches we currently have for the given tileset, and make it a no brainer to change a tile.
What do you think?
Regards,