about summary refs log tree commit diff homepage
path: root/brutalmaze
diff options
context:
space:
mode:
authorNguyễn Gia Phong <vn.mcsinyx@gmail.com>2018-03-20 14:17:17 +0700
committerNguyễn Gia Phong <vn.mcsinyx@gmail.com>2018-03-20 14:17:17 +0700
commitbbc98be3176c848af49f95a80f8abee1f8516fa8 (patch)
tree21e78aad160e5b21ce8ad416413af44e03db8836 /brutalmaze
parent2bd7352aec15bd7af5373db6ed0a2ba03d31b185 (diff)
downloadbrutalmaze-bbc98be3176c848af49f95a80f8abee1f8516fa8.tar.gz
Add socket client example and fix enemy-fall-of-the-map bug 0.6.4
Diffstat (limited to 'brutalmaze')
-rw-r--r--brutalmaze/game.py2
-rw-r--r--brutalmaze/maze.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/brutalmaze/game.py b/brutalmaze/game.py
index b78e375..cbe5e6c 100644
--- a/brutalmaze/game.py
+++ b/brutalmaze/game.py
@@ -17,7 +17,7 @@
 # You should have received a copy of the GNU Affero General Public License
 # along with Brutal Maze.  If not, see <https://www.gnu.org/licenses/>.
 
-__version__ = '0.6.3'
+__version__ = '0.6.4'
 
 import re
 from argparse import ArgumentParser, FileType, RawTextHelpFormatter
diff --git a/brutalmaze/maze.py b/brutalmaze/maze.py
index 0516cb5..665d9c3 100644
--- a/brutalmaze/maze.py
+++ b/brutalmaze/maze.py
@@ -323,8 +323,8 @@ class Maze:
         self.next_move -= 1000.0 / self.fps
         self.next_slashfx -= 1000.0 / self.fps
 
+        self.rotate()
         if dx or dy:
-            self.rotate()
             for enemy in self.enemies: enemy.wake()
             for bullet in self.bullets: bullet.place(dx, dy)