Skip to content
master
Switch branches/tags
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
exp
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Python Minecraft Clone

Resources

License

Releases

No releases published

Packages

No packages published