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

Expires in 5 months

11 July 2022

Views: 7

Simple Minecraft-inspired demo written in Python and Pyglet.

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

Like this project?

You might also like my other Minecraft clone written in C using modern OpenGL (GL shader language). It performs better, has better terrain generation and saves state to a sqlite database. See here:

https://github.com/fogleman/Craft

Goals and Vision

I would like to see this project turn into an educational tool. Kids love Minecraft and Python is a great first language. my cms is a good opportunity to get children excited about programming.

The code should become well commented and more easily configurable. It should be easy to make some simple changes and see 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. Something along these lines...

The API could contain functionality for the following:

- Easily configurable parameters like gravity, jump velocity, walking speed, etc.

- Hooks for terrain generation.

How to Run

Mac

On Mac OS X, you may have an issue with running Pyglet in 64-bit mode. Try running Python in 32-bit mode first:

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

This assumes you are using the OS X default Python. Works on Lion 10.7 with the default Python 2.7, and may work on other versions too. Please raise an issue if not.

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 called 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 or Linux: see Installing Git from the Pro Git book.

Here's my website: https://mycms.org/

Share