Skip to content

Textures

Sasha Koshka edited this page May 10, 2021 · 2 revisions

Textures

Textures in this game are retained from the original java version, and are procedurally generated to save space. Because of their procedural nature, textures will not be exactly identical on different seeds.

The textures are stored on after another in a 1 dimensional integer array containing color values, and are arranged by block ID. Each block has three textures - a top texture, a side texture, and a bottom texture (which is darkened). textures array is currently global.

Textures are procedurally generated when the game launches with the function genTextures(unsigned int seed).

Future plans

Eventually, there will be a system of functions to procedurally generate and move texture data around, allowing for far more blocks to be generated. A block set similar to that of minecraft alpha is planned.

Images

These textures were generated from the original java version:

Textures

Clone this wiki locally