- 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):
- print "LEFT"
- pos = pymunk.pygame_util.from_pygame(
- surfpos, pygame.display.get_surface())
- print surfpos, pos
- print self._space.point_query(pos, 1.0, CLICK_FILTER)
-
- def right_click(self, pos):
- pass
+ self._lights.render_light(surface)
+ self._obstacles.render(surface)
+ self._lights.render_fittings(surface)