From: Simon Cross Date: Fri, 9 Sep 2016 21:40:21 +0000 (+0200) Subject: Merge branch 'master' of ctpug.org.za:tabakrolletjie X-Git-Tag: tabakrolletjie-v1.0.0~143 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=3298860ded0d6898b881c58f27f300ad4ee20fe6;p=tabakrolletjie.git Merge branch 'master' of ctpug.org.za:tabakrolletjie --- 3298860ded0d6898b881c58f27f300ad4ee20fe6 diff --cc tabakrolletjie/lights.py index d20ab35,2ab02b6..2952da5 --- a/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