equal
deleted
inserted
replaced
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 |