O mnie

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

Simple Minecraft-inspired demo written in Python and Pyglet.

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

You like this project?

You might also enjoy my other Minecraft clone written using C and modern OpenGL (GL Shader Language). It is faster, generates better terrain and saves state to a sqlite table. See 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 language for children to learn. This is a good opportunity to get children excited about programming.

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

It would be great to see the project become more of an API/library... a Python package that can be imported and used / configured to create a world, and then run it. These are some ideas...

The API could contain functionality for the following:

- Parameters that can be easily set up, such as gravity, jumping velocity, and walking speed. - Hooks for terrain generation.

How to Run

Mac

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

If that fails, set Python 32-bit mode as default.
Welcome To My Blog

This assumes that you are using the default Python in OS X. This works on Lion 10.7 with default Python 2.7. Other versions may also work. If not, please raise a problem.

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

You don't need pip or git if you don't have them.

For pip

- Mac, Linux or both: install with sudoeasy_install pip. (Mac or Linux). – or (Linux), look for a package titled something like 'python_pip. Windows: Install Distribute and then Pip using the linked.MSI installers.

For git

- Mac: first install Homebrew and then brew to install git. - Windows or Linux: Refer to Installing Git From the Pro Git Book.