A complete game in 3200 LOC (minimal dependencies)


“Chunk Miner” is a little game inspired by some old flash games. It is written almost entirely from scratch in just ~3200 LOC with the only major dependencies being stb_image and miniaudio (no SDL or raylib).

It has everything a game needs including, among other things, a D3D11 renderer, immediate mode UI, Saving/Loading, particle systems, minimal platform abstraction layer, OBJ parser etc. (more exhaustive list can be found on GitHub).

A lot of effort was put into the code structuring. I wanted it to be easy to understand, extensively commented, no cruft, so that it can be used as a codebase to learn from. Developing games without a third party game engine seems daunting, but it does not have to be. A lot can be achieved with little and this project is meant to show that.

You can find the source on GitHub

6 Likes