Minecraft4k (2023)

View source on GitHub

Screenshot of ray-traced Minecraft4k

Summary

In 2010, Notch remade Minecraft for a jam in a very limited form, using the now-defunct Java Applets framework.
Additionally, performance was limited by the single-threaded sequential CPU raymarcher which Notch implemented.

I fully reverse engineered the game, and multi-threaded the raymarcher. However, this was not fast enough to run at a reasonable resolution.
I decided to remake it fully in a fully custom GPU-accelerated ray-marched C++ engine.

My cross-platform engine uses a suite of methods to finagle a lower storage footprint, as was the objective of the original Java game.

However, this was not yet as small as the original. I made it my goal over several years to fit a playable, hardware-accelerated version of Minecraft into a QR code.
That gives me 2953 bytes to work with, which is smaller than the original Java app.

I have fully docummented the journey in a blog post, this was one of the projects I found the most fun.

Tech Used

Things Learned

My role

This project was made entirely by me, with support and ideas from friends.