Optimized Minecraft Clone in Processing



I made a Minecraft clone in processing java. It has basic functions like placing/breaking blocks, sprinting, flying, ambient music, sound effects, and random world generation. The whole thing is about 1000 lines long and took about 10 hours. It’s somewhat optimized (backface/occlusion culling) so it can render 25k blocks at 30 fps.

Any suggestions or feedback would be appreciated.

3 Likes

Hi and welcome to the forum.

Amazing what can be done with just 1000 lines of code. :smile:

If you make the sketch code available it might be possible to provide suggestions or feedback.

1 Like

I’d be interested in code

Did you make a sky sphere?

How do you steer the player, with the mouse?

I don’t understand what you mean by ‘sky sphere’, I just set the background color, and anything not covered by blocks will be the sky. For steering, wasd for movement and mouse is for looking around. I used java.awt.Robot to lock the mouse to the center of the screen.

1 Like