projects
/
tabakrolletjie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e01ef51
)
Fix flake8 warnings.
author
Simon Cross
<hodgestar@gmail.com>
Sun, 4 Sep 2016 20:41:44 +0000
(22:41 +0200)
committer
Simon Cross
<hodgestar@gmail.com>
Sun, 4 Sep 2016 20:41:44 +0000
(22:41 +0200)
tabakrolletjie/lights.py
patch
|
blob
|
history
diff --git
a/tabakrolletjie/lights.py
b/tabakrolletjie/lights.py
index ef84879c1cee2790e9d5a8f82acc21e64f153bec..a22ea14472708041db5dc98fe061c769120e619d 100644
(file)
--- a/
tabakrolletjie/lights.py
+++ b/
tabakrolletjie/lights.py
@@
-4,7
+4,6
@@
import pymunk
import pymunk.pygame_util
import pygame.draw
-import pygame.locals as pgl
from .constants import SCREEN_SIZE, LIGHT_CATEGORY
@@
-93,9
+92,7
@@
class SpotLight(BaseLight):
self.i = 0
def shapes_for_ray_polys(self, ray_polys):
- x, y = self.position
- return ray_polys #+ [
- # pymunk.Poly(self.body, [self.position, [x + 50, y], [x, y + 50]])]
+ return ray_polys
def render(self, surface):
subsurface = surface.copy()