about summary refs log tree commit diff homepage
path: root/brutalmaze/maze.py
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/maze.py
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/maze.py')
-rw-r--r--brutalmaze/maze.py2
1 files changed, 1 insertions, 1 deletions
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)