brutalmaze/README.rst

133 lines
4.9 KiB
ReStructuredText
Raw Normal View History

2017-10-12 15:29:55 +02:00
Brutal Maze
===========
2019-03-15 14:21:12 +01:00
Brutal Maze is a thrilling shoot 'em up game with minimalist art style.
2017-10-20 15:51:39 +02:00
.. image:: https://raw.githubusercontent.com/McSinyx/brutalmaze/master/screenshot.png
:target: https://McSinyx.github.io/brutalmaze/
2017-10-20 15:51:39 +02:00
The game features a trigon trapped in an infinite maze. As our hero tries to
2017-11-21 15:49:35 +01:00
escape, the maze's border turns into aggressive squares trying to stop him.
Your job is to help the trigon fight against those evil squares and find a way
out (if there is any). Be aware that the more get killed, the more will show up
and our hero will get weaker when wounded.
2017-10-20 15:51:39 +02:00
2018-03-22 17:01:00 +01:00
Brutal Maze has a few notable features:
2017-10-12 15:29:55 +02:00
2017-11-21 15:49:35 +01:00
* Being highly portable.
2018-10-28 09:50:13 +01:00
* Auto-generated and infinite maze. [0]_
2017-11-04 15:43:05 +01:00
* No binary data for drawing.
2017-11-21 15:49:35 +01:00
* Enemies with special abilities: stun, poison, camo, etc.
2017-11-04 15:43:05 +01:00
* Somewhat a realistic physic and logic system.
* Resizable game window in-game.
2018-03-22 17:01:00 +01:00
* Easily customizable via INI file format.
2018-08-05 13:05:07 +02:00
* Recordable in JSON (some kind of silent screencast).
2018-03-22 17:01:00 +01:00
* Remote control through TCP/IP socket (can be used in AI researching).
2017-10-12 15:29:55 +02:00
Installation
------------
2017-10-20 15:51:39 +02:00
Brutal Maze is written in Python and is compatible with both version 2 and 3.
2018-03-22 17:01:00 +01:00
The installation procedure should be as simple as follows:
2017-10-20 15:51:39 +02:00
* Install Python and `pip <https://pip.pypa.io/en/latest/>`_. Make sure the
2017-11-04 15:43:05 +01:00
directory for `Python scripts <https://docs.python.org/2/install/index.html#alternate-installation-the-user-scheme>`_
2017-11-21 15:49:35 +01:00
is in your ``$PATH``.
2017-11-04 15:43:05 +01:00
* Open Terminal or Command Prompt and run ``pip install --user brutalmaze``.
2017-10-12 15:29:55 +02:00
2018-03-05 17:59:02 +01:00
For more information, see
`Installation <https://github.com/McSinyx/brutalmaze/wiki/Installation>`_
page from Brutal Maze wiki.
2017-11-21 15:49:35 +01:00
2018-03-07 10:41:28 +01:00
After installation, you can launch the game by running the command
2018-05-20 15:33:50 +02:00
``brutalmaze``. Below are the default bindings, which can be configured as
shown in the next section:
2018-03-07 10:41:28 +01:00
F2
New game.
``p``
Toggle pause.
``m``
Toggle mute.
``a``
2018-03-07 10:41:28 +01:00
Move left.
``d``
2018-03-07 10:41:28 +01:00
Move right.
``w``
2018-03-07 10:41:28 +01:00
Move up.
``s``
2018-03-07 10:41:28 +01:00
Move down.
Left Mouse
Long-range attack.
2018-10-08 17:07:30 +02:00
Right Mouse
2018-03-07 10:41:28 +01:00
Close-range attack, also dodge from bullets.
2018-10-08 17:07:30 +02:00
Additionally, Brutal Maze also supports touch-friendly control. In this mode,
touches on different grid (empty, wall, enemy, hero) send different signals (to
guide the hero to either move or attack, or start new game). Albeit it is
implemented using *mouse button up* event, touch control is not a solution for
mouse-only input, but an attempt to support mobile GNU/Linux distribution such
as postmarketOS, i.e. it's meant to be played using two thumbs :-)
2018-02-13 16:17:04 +01:00
Configuration
-------------
Brutal Maze supports both configuration file and command-line options.
2018-03-05 17:59:02 +01:00
Apparently, while settings for graphics, sound and socket server can be set
either in the config file or using CLI, keyboard and mouse bindings are limited
to configuration file only.
Settings are read in the following order:
2018-02-13 16:17:04 +01:00
2018-10-28 09:50:13 +01:00
0. Default configuration [1]_
1. System-wide configuration file [2]_
2. Local configuration file [2]_
3. Manually set configuration file [3]_
4. Command-line arguments
2018-02-13 16:17:04 +01:00
2018-03-22 17:01:00 +01:00
Later-read preferences will override previous ones.
2018-02-13 16:17:04 +01:00
2018-03-05 17:59:02 +01:00
Remote control
--------------
2018-10-28 09:50:13 +01:00
If you enable the socket server [4]_, Brutal Maze will no longer accept direct
2018-03-05 17:59:02 +01:00
input from your mouse or keyboard, but wait for a client to connect. Details
about I/O format are explained carefully in
`Remote control <https://github.com/McSinyx/brutalmaze/wiki/Remote-control>`_
wiki page.
Game recording
--------------
Either game played by human or client script can be recorded to JSON format.
2018-10-28 09:50:13 +01:00
This can be enabled by setting the output directory to a non-empty string [5]_.
Recordings can be played on the repo's Github Page which the above screenshot
is linked to.
2018-03-05 17:59:02 +01:00
License
-------
Brutal Maze's source code and its icon are released under GNU Affero General
Public License version 3 or later. This means if you run a modified program on
a server and let other users communicate with it there, your server must also
allow them to download the source code corresponding to the modified version
running there.
2018-03-22 17:01:00 +01:00
This project also uses Tango color palette and several sound effects, whose
authors and licenses are listed in
`Credits <https://github.com/McSinyx/brutalmaze/wiki/Credits>`_ wiki page.
2018-03-07 10:41:28 +01:00
2018-10-28 09:50:13 +01:00
.. [0] Broken on vanilla pygame on GNU/Linux. For workarounds, see issue
`#11 <https://github.com/McSinyx/brutalmaze/issues/11>`_.
.. [1] This can be copied to desired location by ``brutalmaze --write-config
2018-03-07 10:41:28 +01:00
PATH``. ``brutalmaze --write-config`` alone will print the file to stdout.
2018-10-28 09:50:13 +01:00
.. [2] These will be listed as fallback config in the help message
2018-03-07 10:41:28 +01:00
(``brutalmaze --help``). See `wiki <https://github.com/McSinyx/brutalmaze/wiki/Configuration>`_
for more info.
2018-10-28 09:50:13 +01:00
.. [3] If specified by ``brutalmaze --config PATH``.
.. [4] This can be done by either editing option *Enable* in section *Server*
2018-03-07 10:41:28 +01:00
in the configuration file, or launching Brutal Maze using ``brutalmaze
--server``.
2018-10-28 09:50:13 +01:00
.. [5] ``brutalmaze --record-dir DIR``. Navigate to `wiki <https://github.com/McSinyx/brutalmaze/wiki/Configuration>`_
to see more options.