T2D2 ​

td2d2 2D game inspired by Terraria and Starbound. I dreamed of creating my own game with giant open world and easy modding. This is my first big project. With current state is impossible to compile it due to breaking changes in FastNoise2 library. I don't plan to develop its further.

Terrain ​

td2d2 Terrain generation used combination of perlin noise and simplex noise to create uneven surface and simplex noise to generate caves. TO create biomes cellular noise was used. Large world was stored in chunks to optimize loading and render.every

Entities ​

Game had entity manager allowing to move entity around map and trigger behaviors also working collisions and gravitation and movement controller.

Lighting ​

td2d2

Lighting was raytraced. TRacing was handled by cpu or by openGL compute shader.

Modding ​

Blocks in game were registered through lua api