self._lights.append(light)
light.add(self._space)
+ def remove_light(self, light):
+ self._lights.remove(light)
+ light.remove(self._space)
+
def battery_dead(self):
self._battery_dead = True
for light in self._lights:
self.ray_manager.set_space(space)
self.ray_manager.update_shapes()
+ def remove(self, space):
+ if self.body.space is not None:
+ space.remove(self.body, *self.body.shapes)
+
def _cached_surface(self, name, surface):
surf = self._surface_cache.get(name)
if surf is None:
class PulsatingLamp(BaseLight):
- FITTING_IMG = "lamp.png"
+ FITTING_IMG = "pulsatinglamp.png"
DEFAULT_PULSE_RANGE = (20, 100)
DEFAULT_PULSE_VELOCITY = 2
DEFAULT_INTENSITY_RANGE = (0.0, 0.9)