projects
/
tabakrolletjie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4b40709
)
Remove unused pos arg.
author
Simon Cross
<hodgestar@gmail.com>
Sat, 10 Sep 2016 19:45:11 +0000
(21:45 +0200)
committer
Simon Cross
<hodgestar@gmail.com>
Sat, 10 Sep 2016 19:45:11 +0000
(21:45 +0200)
tabakrolletjie/rays.py
patch
|
blob
|
history
diff --git
a/tabakrolletjie/rays.py
b/tabakrolletjie/rays.py
index 8a79c34c57b4c3ff89a7d31681c1c5ec0915f385..a475d8fb27bb6c680a90555cad7dc2a4f6043954 100644
(file)
--- a/
tabakrolletjie/rays.py
+++ b/
tabakrolletjie/rays.py
@@
-12,7
+12,7
@@
from .constants import SCREEN_SIZE
from .utils import debug_timer
from .utils import debug_timer
-def screen_rays(
pos
):
+def screen_rays():
""" An iterable that returns ordered rays from pos to the edge of the
screen, starting with the edge point (0, 0) and continuing clockwise
in pymunk coordinates.
""" An iterable that returns ordered rays from pos to the edge of the
screen, starting with the edge point (0, 0) and continuing clockwise
in pymunk coordinates.
@@
-40,7
+40,7
@@
def calculate_ray_polys(space, position, light_filter):
vertices = [position]
start, end = None, None
ray_polys = []
vertices = [position]
start, end = None, None
ray_polys = []
- for ray in screen_rays(
position
):
+ for ray in screen_rays():
info = space.segment_query_first(position, ray, 1, light_filter)
point = ray if info is None else info.point
vertices.append(point)
info = space.segment_query_first(position, ray, 1, light_filter)
point = ray if info is None else info.point
vertices.append(point)