class BouncyCoin : public GameObject
{
public:
- BouncyCoin(const Vector& pos);
+ BouncyCoin(const Vector& pos, bool emerge=false);
~BouncyCoin();
virtual void update(float elapsed_time);
virtual void draw(DrawingContext& context);
Sprite* sprite;
Vector position;
Timer timer;
+ float emerge_distance;
};
class BrokenBrick : public GameObject
class FloatingText : public GameObject
{
+ static Color text_color;
public:
FloatingText(const Vector& pos, const std::string& text_);
FloatingText(const Vector& pos, int s); // use this for score, for instance