Skip to content

TristanTrim/pycraft

 
 

Repository files navigation

image

image

PyCraft

A community driven fork of foglemans "Minecraft" repo.

#pycraft on freenode

Motivation

The original project had great ideas and implemented really cool things, but it was primarily designed around teaching. This project is intended to create a community-driven engine for complicated voxel/roguelike games which ultimately can use and extend GURPS

The Generic Universal RolePlaying System, or GURPS, is a tabletop role-playing game system designed to allow for play in any game setting.

This project will be very permissive in accepting pull-requests.

Screenshot

# create a virtual environment
virtualenv -p python3 ~/.venv/pycraft # (or wherever)
# you may need to add execute permissions
chmod -R a+x ~/.venv
# activate
. ~/.venv/pycraft/bin/activate # on mac
. ~/.venv/pycraft/Scripts/activate # on windows
# deactivate (when you're done)
deactivate

Installing

pip install -e .

option 1:

pip install -e .[dev]
# or: python3 setup.py develop
pycraft

option 2:

python -m pycraft
# or: python3 -m pycraft

Features

  • Support for python 3.5
  • Simple Perlin Noise terrain generator
  • Object-oriented blocks system

How to Play

Moving

  • W: forward
  • S: back
  • A: strafe left
  • D: strafe right
  • Mouse: look around
  • Space: jump
  • Tab: toggle flying mode

Building

  • Selecting the type of block to create:
    • 1: brick
    • 2: grass
    • 3: sand
  • Mouse left-click: remove block
  • Mouse right-click: create block

Quitting

  • ESC: release mouse, then close window

Contributing

We support and encourage contributions.

About

A fork of "Minecraft in 500 lines of python" intended to be used as a real engine, instead of as a learning example.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.2%
  • Shell 2.0%
  • GLSL 0.8%