freeminer/README.md

84 lines
2.3 KiB
Markdown
Raw Normal View History

2013-12-01 16:29:22 +03:00
# Freeminer
[![Build Status](https://travis-ci.org/freeminer/freeminer.png)](https://travis-ci.org/freeminer/freeminer)
Freeminer is an open source sandbox game inspired by [Minecraft](https://minecraft.net/).
Freeminer is based on Minetest which is developed by a [number of contributors](https://github.com/minetest/minetest/graphs/contributors) from all over the globe.
It aims to make the game fun while trading off some bits of perfectionism.
## Further documentation
- Website: http://freeminer.org/
- Forums: http://forum.freeminer.org/
## Default controls
- `WASD`: move
- `Space`: jump/climb
- `Shift`: sneak/go down
- `Q`: drop item
- `I`: inventory
- Mouse: turn/look
- Mouse left: dig/punch
- Mouse right: place/use
- Mouse wheel: select item
- `Esc`: pause menu
- `T`: chat
- `Z`: zoom
- `Tab`: player list
## Compiling
Install dependencies. Here's an example for
Debian/Ubuntu:
2014-12-17 09:30:18 +03:00
```bash
sudo apt-get install build-essential libirrlicht-dev cmake libbz2-dev \
libpng12-dev libjpeg8-dev libfreetype6-dev libxxf86vm-dev libgl1-mesa-dev \
libsqlite3-dev libvorbis-dev libopenal-dev libcurl4-openssl-dev libluajit-5.1-dev \
libleveldb-dev libsnappy-dev libgettextpo0 libmsgpack-dev
# optional:
sudo apt-get install libhiredis-dev cmake-curses-gui
2013-12-01 16:29:22 +03:00
```
2014-12-08 11:57:29 -06:00
___
Fedora:
2014-12-17 09:30:18 +03:00
```bash
# the first five is the closest to Debian/Ubuntu build-essential
sudo yum install make automake gcc gcc-c++ kernel-devel cmake irrlicht-devel \
bzip2-devel libpng-devel libjpeg-turbo-devel freetype-devel libXxf86vm-devel \
mesa-libGL-devel sqlite-devel libvorbis-devel openal-soft-devel libcurl-devel \
luajit-devel leveldb-devel snappy-devel gettext-devel msgpack msgpack-devel
```
2014-12-08 11:57:29 -06:00
___
Arch Linux:
2014-12-17 09:30:18 +03:00
```bash
2014-12-08 11:57:29 -06:00
sudo pacman -S curl irrlicht leveldb libvorbis luajit openal sqlite cmake
# From AUR
yaourt -S msgpack
```
2015-02-08 21:00:24 +03:00
Gentoo/Funtoo:
```bash
emerge -av media-libs/libvorbis media-libs/openal dev-games/irrlicht dev-libs/msgpack dev-libs/leveldb
```
2014-12-17 09:30:18 +03:00
<sup>Recommended irrlicht version: `1.8.1`</sup>
2014-11-05 22:05:32 +03:00
2013-12-01 16:29:22 +03:00
Download source code:
2014-12-17 09:30:18 +03:00
```bash
2013-12-06 20:26:15 +04:00
git clone --recursive https://github.com/freeminer/freeminer.git
2013-12-01 16:29:22 +03:00
cd freeminer
```
2014-12-17 09:30:18 +03:00
<sup>Recommended minimum compiler version: `gcc 4.8` or `clang 3.3`</sup>
2013-12-01 16:29:22 +03:00
Build it:
2014-12-17 09:30:18 +03:00
```bash
2014-01-16 16:51:49 +04:00
mkdir _build && cd _build
2014-06-10 20:32:51 +04:00
cmake ..
2014-12-14 20:08:30 +03:00
time nice make -j $(nproc || sysctl -n hw.ncpu || echo 2)
2013-12-01 16:29:22 +03:00
```
2014-12-17 09:30:18 +03:00
2013-12-01 16:29:22 +03:00
Play it!
```
cd ..
./bin/freeminer
```