Update README.rst and clean up a bit

This commit is contained in:
Nguyễn Gia Phong 2017-10-20 20:51:39 +07:00
parent 43c7c55a39
commit 81d0b68811
2 changed files with 22 additions and 8 deletions

View File

@ -1,20 +1,36 @@
Brutal Maze
===========
**Brutal Maze** is a research hash and slash game with *polyart* graphic and
Tango color palette. Its primary goals are:
Brutal Maze is a research hash and slash game with fast-paced action and a
minimalist art style.
.. image:: https://raw.githubusercontent.com/McSinyx/brutalmaze/master/brutalmaze/icon.png
The game features a trigon trapped in an infinite maze. As our hero tries to
escape, the maze's border turn 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.
As a research game, Brutal Maze has a few primary goals:
* Highly portable.
* Auto-generated and infinite maze.
* No binary data.
* No binary art data.
* Enemies with randomized attributes: stun, poison, etc.
* Resizable in realtime.
Installation
------------
**Brutal Maze** can run on both Python 2 and 3. You can install it using
``pip`` or run ``./setup.py install --user``.
Brutal Maze is written in Python and is compatible with both version 2 and 3.
The installation procedure should be as simply as follow:
* Make sure you have Python and `pip <https://pip.pypa.io/en/latest/>`_
installed on your system.
* Clone the Github repository or download the Zip achieve and unpack.
* Open Terminal in the directory containing the repo's folder and run
``pip install --user brutalmaze``.
Control
-------

View File

@ -113,9 +113,7 @@ class Enemy:
def place(self, x=0, y=0):
"""Move the enemy by (x, y)."""
self.x += x
self.x %= len(self.maze)
self.y += y
self.y %= len(self.maze)
self.maze[self.x][self.y] = ENEMY
def move(self, fps):
@ -153,7 +151,7 @@ class Enemy:
self.angle += sign(self.spin_queue) * pi / 2 / self.spin_speed
self.spin_queue -= sign(self.spin_queue)
else:
self.angle, self.spin_queue = pi / 4, 0
self.angle, self.spin_queue = pi / 4, 0.0
self.draw(distance, middlex, middley)
def die(self):