diff options
author | Nguyễn Gia Phong <vn.mcsinyx@gmail.com> | 2018-02-12 12:17:39 +0700 |
---|---|---|
committer | Nguyễn Gia Phong <vn.mcsinyx@gmail.com> | 2018-02-12 14:23:23 +0700 |
commit | 465be4493db11a458ae05c1be67bac109c753fb0 (patch) | |
tree | fb6c85b1cbde1c43e2883161bba9669b557f40de /brutalmaze/characters.py | |
parent | 50a839826da2a4b620cb9f9f09aa386cba4cd4b6 (diff) | |
download | brutalmaze-465be4493db11a458ae05c1be67bac109c753fb0.tar.gz |
Clean up
Diffstat (limited to 'brutalmaze/characters.py')
-rw-r--r-- | brutalmaze/characters.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/brutalmaze/characters.py b/brutalmaze/characters.py index 262578e..faa67c4 100644 --- a/brutalmaze/characters.py +++ b/brutalmaze/characters.py @@ -19,7 +19,6 @@ __doc__ = 'brutalmaze module for hero and enemy classes' -from collections import deque from math import atan, atan2, sin, pi from random import choice, randrange, shuffle from sys import modules @@ -138,7 +137,7 @@ class Enemy: def get_pos(self): """Return coordinate of the center of the enemy.""" x, y = self.maze.get_pos(self.x, self.y) - step = self.maze.distance * HERO_SPEED / self.maze.fps + step = self.maze.distance * ENEMY_SPEED / self.maze.fps return x + self.offsetx*step, y + self.offsety*step def get_distance(self): |