With the popularity of the game Minecraft a wave of games pursuing a similar type of block-based imagery have followed.
Presented here is a suitable starting point for creating tracts of block-based geometry utilizing the mesh creation classes discussed in Chapter 3, Procedural Modeling.
It also highlights one possible method of incorporating sprite sheets into your game.
We're going to need a sprite sheet image containing all of the textures intended for use on the blocks, along with a text file providing the mapping details for each texture.
For example, here is a sprite sheet:
Along with ...