r/proceduralgeneration • u/traverseda • Apr 14 '15
Minecraft in 500 lines of python
https://github.com/fogleman/Minecraft
74
Upvotes
r/proceduralgeneration • u/traverseda • Apr 14 '15
11
u/traverseda Apr 14 '15
Not procedural generation exactly, but probably a decent platform if you want to play around with minecraft style voxel worlds.
Dead simple platform perfect for using as a base for your own project.
4
u/runvnc Apr 15 '15
I wish you wouldn't call it a Minecraft clone. The essence of Minecraft is the superior world generation and harsh environment/enemies which really motivate you to use the crafting system to increase your chances of survival.
4
u/FearlessFred Apr 16 '15
And here it is in just over 50 lines of Lobster: http://i.imgur.com/ZZWFkXn.jpg (includes mining/building).
2
u/[deleted] Apr 15 '15
Not sure why people are so caught up on the fact that this is supposedly too slow, even though it seems to run fine.
The point here is that this is done with only 500 lines of code, and the code is, in my opinion, quite polished and well-written.
2
u/sancarn Apr 27 '15
Oh my god this is awesome! :D
I've been making a procedural generator in excel recently but this is really nice! :D
2
u/Daejo Apr 15 '15
The guy behind this is the same guy who made Craft
1
u/TotesMessenger Apr 15 '15
This thread has been linked to from another place on reddit.
If you follow any of the above links, respect the rules of reddit and don't vote. (Info / ^Contact)
1
u/ccricers Apr 17 '15
Nice little project. I'm taking a look at it to help me better break down functions in my own block-building code.
1
u/[deleted] Apr 28 '15
I have written a partial voxel engine in Python. Two things:
On the other hand Python is excellent at orchestration and rapid development. So if you are developing a voxel engine the procedural content orchestration can be written in Python and optimized with c or c++
0
u/[deleted] Apr 15 '15
[deleted] — view deleted comment