GitHub - Fogleman/Minecraft: Simple Minecraft-inspired Program Using Python And Pyglet


Simple Minecraft-inspired demo written in Python and Pyglet.
MY CMS



http://www.youtube.com/watch?v=kC3lwK631X8



Do you like this idea?



You might also enjoy my other Minecraft clone written using C and modern OpenGL (GL Shader Language). It performs better and generates better terrain. You can see it here:



https://github.com/fogleman/Craft



Goals and Vision



I would love to see this project be used as an educational tool. Python is a great programming language and Minecraft is a favorite of children. This is a great opportunity to get children excited for programming.



The code should become well commented and more easily configurable. It should be simple to make a few changes and get the results quickly.



I think it would be great to turn the project into more of a library / API... a Python package that you import and then use / configure to setup a world and run it. This is what I''d like to see...



The API could have the following functionality:



- Easily configurable parameters like gravity, jump velocity, walking speed, etc. - Hooks for terrain generation.



How to Run



Mac



You may experience problems running Pyglet 64-bit on Mac OS X. Try Python in 32bit mode first.



If that doesn''t work, set Python to run in 32-bit mode by default:



This assumes that the default Python version of OS X is used. This works on Lion 10.7 using the default Python 2.7.1, but may not work on other versions. If not, please raise an issue.



Or try Pyglet 1.2 alpha, which supports 64-bit mode:



If you don''t have pip or git



For pip:



- Mac or Linux: Install with sudo easy_install Pip (Mac or Linux). - Or (Linux), find a package named something like "python-pip" in your package manager. - Windows: install Distribute then Pip using the linked .MSI installers.



For git:



- Mac: install Homebrew first, then brew install git. - Windows, Linux: refer to Installing Git in the Pro Git book.