5 #include "video/drawing_context.h"
6 #include "special/sprite_manager.h"
10 Coin::Coin(const Vector& pos)
13 bbox.set_size(32, 32);
14 sprite = sprite_manager->create("coin");
28 Coin::draw(DrawingContext& context)
30 sprite->draw(context, get_pos(), LAYER_TILES);
34 Coin::collision(GameObject& other, const CollisionHit& hit)
36 Player* player = dynamic_cast<Player*>(&other);
40 player->get_status().incCoins();