From 81d0b68811283f35645d16bdec3aa7eae621cd02 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Fri, 20 Oct 2017 20:51:39 +0700 Subject: Update README.rst and clean up a bit --- README.rst | 26 +++++++++++++++++++++----- brutalmaze/characters.py | 4 +--- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/README.rst b/README.rst index 090edff..eab00b8 100644 --- a/README.rst +++ b/README.rst @@ -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 `_ + 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 ------- diff --git a/brutalmaze/characters.py b/brutalmaze/characters.py index 198c8d8..c91da56 100644 --- a/brutalmaze/characters.py +++ b/brutalmaze/characters.py @@ -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): -- cgit 1.4.1