- for light in self._lights:
- light.render_light(surface)
- for obs in self._obstacles:
- obs.render(surface)
- for light in self._lights:
- light.render_fittings(surface)
-
- def left_click(self, surfpos):
- pos = pymunk.pygame_util.from_pygame(
- surfpos, pygame.display.get_surface())
- point_info = self._space.point_query_nearest(pos, 1.0, CLICK_FILTER)
- if point_info is not None:
- point_info.shape.body.light.toggle()
-
- def right_click(self, pos):
- pass
+ self._lights.render_light(surface)
+ self._obstacles.render(surface)
+ self._lights.render_fittings(surface)