Skip to content
Python Minecraft Clone
Branch: master
Clone or download
zzh8829 Merge pull request #3 from quantumjim/patch-1
fix cmake command to work with current version
Latest commit daeb9b4 Mar 1, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmake Works on mac Apr 21, 2016
exp gitignore Apr 20, 2016
saves Works on mac Apr 21, 2016
src Works on mac Apr 21, 2016
textures gitignore Apr 20, 2016
.gitignore Save Apr 20, 2016
AABB.py init May 14, 2015
CMakeLists.txt Works on mac Apr 21, 2016
Camera.py init May 14, 2015
GpuProgram.py
GpuShader.py init May 14, 2015
LICENSE Initial commit May 13, 2015
MCRender.py init May 14, 2015
Makefile Works on mac Apr 21, 2016
NBT.py init May 14, 2015
PythonCraft.py final mac Apr 21, 2016
README.md fix cmake command to work with current version Feb 25, 2019
Renderer.py init May 14, 2015
Skybox.py init May 14, 2015
Tessellator.py init May 14, 2015
Texture.py init May 14, 2015
Utility.py init May 14, 2015
ZMath.py init May 14, 2015
click.zip Compiled Apr 20, 2016
cmake_install.cmake Compiled Apr 20, 2016
demo1.png init May 14, 2015
demo2.png init May 14, 2015
main Works on mac Apr 21, 2016
oldpc.py init May 14, 2015

README.md

PythonCraft

Python Minecraft Clone

Demo

Features

Reading original minecraft map file

Putting/removing blocks

Build

Recommand Python 3 on Mac OS (Windows or Python 2 are not supported)

Required python library: pygame pyopengl

Required c++ library: libsdl libpng libpython libopengl

Installing Library on Mac

brew install libpng
brew install python3
brew install sdl sdl_ttf sdl_image sdl_mixer
pip install hg+http://bitbucket.org/pygame/pygame
pip install pyopengl

Boost will be installed with make script

Build Project

cmake -G "Unix Makefiles" .
make
python PythonCraft.py

Architecture

Python:

  • Create windows with PyGame

  • Create OpenGL context with PyOpenGL

  • Render environment and GUI

C++:

  • Read map data

  • Render map

You can’t perform that action at this time.