github

traverseda / pycraft

  • среда, 20 апреля 2016 г. в 03:11:59
https://github.com/traverseda/pycraft

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



https://travis-ci.org/traverseda/pycraft.svg?branch=master https://coveralls.io/repos/github/traverseda/pycraft/badge.svg?branch=master:target:https://coveralls.io/github/traverseda/pycraft?branch=master

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

Virtual Environment (Recommended)

# 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.