4 #include "sprite/sprite_manager.hpp"
5 #include "resources.hpp"
6 #include "video/drawing_context.hpp"
7 #include "object_factory.hpp"
11 Light::Light(const lisp::Lisp& )
13 sprite = sprite_manager->create("lightmap_light");
27 Light::draw(DrawingContext& context)
29 context.push_target();
30 context.set_target(DrawingContext::LIGHTMAP);
32 sprite->draw(context, Sector::current()->player->get_pos(), 0);
37 IMPLEMENT_FACTORY(Light, "light");