5 #include "video/drawing_context.h"
6 #include "special/sprite_manager.h"
12 Coin::Coin(const Vector& pos)
15 bbox.set_size(32, 32);
16 sprite = sprite_manager->create("coin");
30 Coin::draw(DrawingContext& context)
32 sprite->draw(context, get_pos(), LAYER_TILES);
38 Sector::current()->player->get_status().incCoins();
39 Sector::current()->add_object(new BouncyCoin(get_pos()));
44 Coin::collision(GameObject& other, const CollisionHit& )
46 Player* player = dynamic_cast<Player*>(&other);