src/Projectile.cc
branchnew_graphics
changeset 417 c503e0c6a740
parent 412 721c60072091
child 428 712b943195a6
equal deleted inserted replaced
416:38cba347a3a9 417:c503e0c6a740
    72 
    72 
    73     // super
    73     // super
    74     PhysicsObject::tick(dt);
    74     PhysicsObject::tick(dt);
    75 }
    75 }
    76 
    76 
       
    77 #if GRAPHICS_ENABLED
    77 void Projectile::draw(graphics::Display &display, PixelCoordinate camera) const {
    78 void Projectile::draw(graphics::Display &display, PixelCoordinate camera) const {
    78     CL_GraphicContext *gc = display.get_gc();
    79     CL_GraphicContext *gc = display.get_gc();
    79 
    80 
    80     if (visible) {
    81     if (visible) {
    81         PixelCoordinate pos = getCoordinate() - camera;
    82         PixelCoordinate pos = getCoordinate() - camera;
    90         );
    91         );
    91         
    92         
    92         gc->fill_quad(projectile, CL_Color::green);
    93         gc->fill_quad(projectile, CL_Color::green);
    93     }
    94     }
    94 }
    95 }
    95  
    96 #endif
       
    97