Play Simple

Advertise


100%

Your link show here

Advertise


Are you a Minecraft gamer? Cool, I got some very good news for you. Python developers have written a simple clone of the original MineCraft game and have made the source available to the public on github.

Almost anyone with basic knowledge of the python programming language and the git tool is able to run the game on their system.

In this tutorial I will guide you how to download the source code of this game from github and then play it on Ubuntu.

Play Simple MineCraft Python Clone In Ubuntu
Play Simple MineCraft Python Clone In Ubuntu

Download the game from github

The first step is to make sure that git is intalled on your system. If not, the following command will install it for you.

sudo apt-get install git

Once the installation of git is finished you can use it to clone github repositories on your local machine by using the following command.

git clone github_repo_link_here

In our case the following command will clone the repo we need in order to get the source code of the game.

git clone  https://github.com/fogleman/Minecraft.git

 Once the repo is cloned cd to it in order to make use of the source code.

Install the game requirements

The game depends on python and pyglet. Ubuntu ships with python by default so the only thing wee need to install is pyglet.

Use the following commands.

pip is a tool use by python developers to download, install and manage python packages.

sudo apt-get install pip
Then do the following.
pip install pyglet

Run the game

It is very easy to run this game. Just execute the main.py python script like shown below.

python main.py

How to play the game

The gameplay is not fun like in the original Minecraft, but you can move around, build stuff and even fly.

Moving

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

Selecting type of block to create:

1: brick
2: grass
3: sand
Mouse left-click: remove block
Mouse right-click: create block

Quit the game

To quit the game press Esc and then close the window.

Video

The following video is me playing this game. Have fun playing it yourself.