diff options
| author | manuel <manuel@mausz.at> | 2011-04-25 14:39:00 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-04-25 14:39:00 +0200 |
| commit | 41a31420cf091aeb4e986503387855d41e550106 (patch) | |
| tree | ffbe0be5f9630a0bab2deb0b5df37c174bf40db1 /pacman-c++/bonuspoint.cpp | |
| parent | bbd2a69a962d15f74a4afcb7b66462eac9fa5008 (diff) | |
| download | foop-41a31420cf091aeb4e986503387855d41e550106.tar.gz foop-41a31420cf091aeb4e986503387855d41e550106.tar.bz2 foop-41a31420cf091aeb4e986503387855d41e550106.zip | |
- add intro sound on every round
- add dieing sound
- add dieing animation
- add die on moving onto colorized block
Diffstat (limited to 'pacman-c++/bonuspoint.cpp')
| -rw-r--r-- | pacman-c++/bonuspoint.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pacman-c++/bonuspoint.cpp b/pacman-c++/bonuspoint.cpp index c90cccc..a6736c4 100644 --- a/pacman-c++/bonuspoint.cpp +++ b/pacman-c++/bonuspoint.cpp | |||
| @@ -26,11 +26,10 @@ BonusPoint::BonusPoint(QGraphicsItem *parent) | |||
| 26 | setSprite(rand * 20 + Constants::sprite_margin, Constants::sprite_margin, Constants::field_size.width, Constants::field_size.height); | 26 | setSprite(rand * 20 + Constants::sprite_margin, Constants::sprite_margin, Constants::field_size.width, Constants::field_size.height); |
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | bool BonusPoint::enter(Actor *actor) | 29 | GameEntity::EnteredState BonusPoint::enter(Actor *actor) |
| 30 | { | 30 | { |
| 31 | actor->addRoundPoints(Constants::Game::bonus_point_value); | 31 | actor->addRoundPoints(Constants::Game::bonus_point_value); |
| 32 | m_eaten = true; | 32 | return DestroyedEntity; |
| 33 | return false; | ||
| 34 | } | 33 | } |
| 35 | 34 | ||
| 36 | void BonusPoint::onDie(Actor *actor) | 35 | void BonusPoint::onDie(Actor *actor) |
