Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

zzh8829/PythonCraft

Open more actions menu

Repository files navigation

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

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.