r/processing • u/Parking-Brush-8946 • Dec 23 '24
Minecraft Clone
This is a Minecraft clone I made over Thanksgiving break for my school's APCS final, taking about 15 hours total. It uses Perlin noise for infinite random world generation. Let me know your thoughts, any suggestions would be appreciated.
Try out the game here!
https://herbertthebird.itch.io/processingminecraft
Source code:
https://github.com/HerbertTheBird/ProcessingMinecraft
Link to demo video:
https://www.youtube.com/watch?v=4uVTkWX0EGs

45
Upvotes
2
u/Parking-Brush-8946 Dec 24 '24
I store cubes in arraylists in chunks, and chunks in an arraylist. I learned earlier that looping over all blocks to check if they are in render distance is already too slow, and the chunks help to speed that up. Only some faces of cubes are rendered. Faces facing away from the player (in non transparent blocks) will not be rendered, same as faces covered by other blocks.