SkillAgentSearch skills...

PythonCraft

Python Minecraft Clone

Install / Use

/learn @zzh8829/PythonCraft
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

View on GitHub
GitHub Stars49
CategoryDevelopment
Updated5mo ago
Forks4

Languages

C++

Security Score

87/100

Audited on Oct 29, 2025

No findings