freeminer/README.md

146 lines
4.2 KiB
Markdown
Raw Normal View History

2013-12-01 16:29:22 +03:00
# Freeminer
[![Build Status](https://img.shields.io/travis/freeminer/freeminer.svg?style=flat-square)](https://travis-ci.org/freeminer/freeminer) [![Latest Stable Version](https://img.shields.io/github/release/freeminer/freeminer.svg?style=flat-square&label=stable)](https://github.com/freeminer/freeminer/releases/latest) [![Total Downloads](https://img.shields.io/github/downloads/freeminer/freeminer/latest/total.svg?style=flat-square)](https://github.com/freeminer/freeminer/releases) [![License](https://img.shields.io/github/license/freeminer/freeminer.svg?style=flat-square)](https://raw.githubusercontent.com/freeminer/freeminer/master/COPYING)
2013-12-01 16:29:22 +03:00
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.
2015-03-24 01:19:49 +03:00
## Installing
- **Android**:
* Google Play - https://play.google.com/store/apps/details?id=org.freeminer.freeminer
* F-droid - https://f-droid.org/repository/browse/?fdid=org.freeminer.freeminer
- **Windows**: https://github.com/freeminer/freeminer/releases
- **Ubuntu**: Install http://www.ubuntuupdates.org/ppa/getdeb_games and run:
2015-10-12 19:17:18 +03:00
```sh
sudo apt-get install freeminer
```
- **Arch Linux**:
2015-10-12 19:17:18 +03:00
```sh
yaourt -S freeminer
```
<sup>*Stable version*</sup>
2015-10-12 19:17:18 +03:00
```sh
yaourt -S freeminer-git
```
<sup>*Development version*</sup>
- **FreeBSD**:
2015-10-12 19:17:18 +03:00
```sh
cd /usr/ports/games/freeminer-default && sudo make install clean
```
2015-03-24 01:19:49 +03:00
2016-08-21 12:55:07 +02:00
- **openSUSE**: https://software.opensuse.org/package/freeminer
2013-12-01 16:29:22 +03:00
## Further documentation
- Website: http://freeminer.org/
- Forums: http://forum.freeminer.org/
## Default controls
- `W` `A` `S` `D`: move
2013-12-01 16:29:22 +03:00
- `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
2015-10-12 19:17:18 +03:00
- `~`: toggle console
2013-12-01 16:29:22 +03:00
## Compiling
Install dependencies. Here's an example for
Debian/Ubuntu:
```sh
2016-09-29 17:40:19 +03:00
sudo apt-get install build-essential libirrlicht-dev cmake libbz2-dev libgettextpo0 \
libsqlite3-dev libleveldb-dev libsnappy-dev libcurl4-openssl-dev libluajit-5.1-dev libgmp-dev libspatialindex-dev \
libpng12-dev libjpeg-dev libfreetype6-dev libxxf86vm-dev libgl1-mesa-dev libvorbis-dev libopenal-dev
# First - needed always
# Second - recommended for servers and singleplayer
# Third - needed for client only
# 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:
2015-10-12 19:17:18 +03:00
```sh
# the first five is the closest to Debian/Ubuntu build-essential
2015-10-12 19:17:18 +03:00
sudo yum install make automake gcc gcc-c++ kernel-devel cmake \
2016-05-11 08:30:27 +03:00
irrlicht-devel bzip2-libs libpng-devel libjpeg-turbo-devel freetype-devel \
2015-10-12 19:17:18 +03:00
libXxf86vm-devel mesa-libGL-devel sqlite-devel libvorbis-devel \
openal-soft-devel libcurl-devel luajit-devel leveldb-devel snappy-devel \
2016-05-11 08:30:27 +03:00
gettext-devel msgpack msgpack-devel spatialindex-devel bzip2-devel
```
2014-12-08 11:57:29 -06:00
___
Arch Linux:
2015-10-12 19:17:18 +03:00
```sh
sudo pacman -S curl irrlicht leveldb libvorbis luajit openal sqlite cmake msgpack-c freetype2
2014-12-08 11:57:29 -06:00
```
___
2015-02-08 21:00:24 +03:00
Gentoo/Funtoo:
2015-10-12 19:17:18 +03:00
```sh
emerge -av media-libs/libvorbis media-libs/openal dev-games/irrlicht \
dev-libs/msgpack dev-libs/leveldb sci-libs/libspatialindex
2015-02-08 21:00:24 +03:00
```
2015-03-29 05:13:00 +03:00
___
OS X:
2015-10-12 19:17:18 +03:00
```sh
brew install cmake freetype gettext hiredis irrlicht jpeg leveldb libogg \
libvorbis luajit msgpack
2015-03-29 05:13:00 +03:00
```
<sup>Recommended irrlicht version: `1.8.2`</sup>
2014-11-05 22:05:32 +03:00
2013-12-01 16:29:22 +03:00
Download source code:
2015-10-12 19:17:18 +03:00
```sh
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>
2015-10-12 19:17:18 +03:00
Build it (GNU/Linux):
```sh
2014-01-16 16:51:49 +04:00
mkdir _build && cd _build
2014-06-10 20:32:51 +04:00
cmake ..
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
2016-02-06 17:01:18 +03:00
or for debian based:
```sh
curl https://raw.githubusercontent.com/freeminer/freeminer/master/build_tools/debian_ogles.sh | sh
2016-02-06 17:01:18 +03:00
```
2015-10-12 19:17:18 +03:00
Build it (OS X):
```sh
2015-09-30 15:51:36 +00:00
mkdir _build && cd _build
cmake .. -DGETTEXT_LIBRARY=/usr/local/opt/gettext/lib/libgettextlib.dylib -DGETTEXT_INCLUDE_DIR=/usr/local/opt/gettext/include
make -j8 package
```
2015-09-30 15:54:16 +00:00
(if the make command doesn't work on OS X install bsdmake)
2015-09-30 15:51:36 +00:00
2016-02-06 17:01:18 +03:00
Build it (windows):
[vs2013](build/windows_vs2015)
[vs2015](build/windows)
2013-12-01 16:29:22 +03:00
Play it!
```
cd ..
2015-10-12 19:17:18 +03:00
bin/freeminer
2015-09-30 15:51:36 +00:00
```