projects
/
tabakrolletjie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
combined
(merge:
b1cbbc6
e2e9084
)
Merge branch 'master' of ctpug.org.za:tabakrolletjie
author
Simon Cross
<hodgestar@gmail.com>
Fri, 9 Sep 2016 21:40:21 +0000
(23:40 +0200)
committer
Simon Cross
<hodgestar@gmail.com>
Fri, 9 Sep 2016 21:40:21 +0000
(23:40 +0200)
1
2
tabakrolletjie/lights.py
patch
|
diff1
|
diff2
|
blob
|
history
diff --cc
tabakrolletjie/lights.py
index d20ab3570663ba1132345d1f093aea8b9b7985ce,2ab02b6e91061469ce58c81af4deaeb2c5bcf58b..2952da5c86680eada28d63130e425bf017179e87
---
1
/
tabakrolletjie/lights.py
---
2
/
tabakrolletjie/lights.py
+++ b/
tabakrolletjie/lights.py
@@@
-96,10
-101,7
+101,10
@@@
class BaseLight(object)
"white": (255, 255, 255),
}
+ # defaults
+ RAY_MANAGER = RayPolyManager
FITTING_IMG = None
- FITTING_RADIUS = 10.0
++ FITTING_RADIUS = 24.0
# cached surfaces
_surface_cache = {}
@@@
-205,8
-216,8
+210,8
@@@
return self._image
def render_fitting(self, surface):
- rx, ry =
pymunk.pygame_util.to_pygame(self.position,
surface)
+ rx, ry =
self.ray_manager.pygame_position(
surface)
- surface.blit(self.get_image(), (rx -
32, ry - 32
), None, 0)
+ surface.blit(self.get_image(), (rx -
24, ry - 24
), None, 0)
def tick(self):
pass