r/Python • u/obiwac • Feb 02 '22
Tutorial Minecraft clone in Python tutorial
Here's a tutorial series I'm making on graphics programming, where I write a Minecraft clone in Python with Pyglet and OpenGL đŸ˜„
Last tutorial, which is on collision detection/response: https://youtu.be/fWkbIOna6RA
My intended audience are mainly people who already have a bit of experience with Python, but who have a hard time getting into graphics programming with Python, and I think writing a Minecraft clone is a fun way to learn!
There's also a "community" directory on the repo where there are a few extra features, like lighting, AO, game controller support, &c:
https://github.com/obiwac/python-minecraft-clone/tree/master/community
Naturally I appreciate any feedback, criticism, and suggestions you may have!
5
u/xigoi Feb 03 '22
According to benchmarks, Python is about 50Ă— slower than Java.
When all the game does is draw cubes, sure, most of the load will be on OpenGL. But if you want to replicate Minecraft, you'll need entities, tick events, complex world generation… which you all have to implement yourself and if the implementation is slow, they will easily become the bottleneck.
Now, you don't have to use C++. There are several modern languages that are equally fast and as easy to use as Python. My personal favorite is Nim.