needed to push some big changes before I lose them
This commit is contained in:
parent
d84b2810d2
commit
d767806e1c
35 changed files with 637 additions and 138 deletions
|
|
@ -18,10 +18,10 @@ public:
|
|||
return size;
|
||||
}
|
||||
|
||||
void hit(vector<MySprite*> &animations, Sound &sound, Texture &explosion, default_random_engine &gen) {
|
||||
void hit(vector<MySprite> &animations, Sound &sound, Texture &explosion, default_random_engine &gen) {
|
||||
uniform_int_distribution<int> angle(0, 359);
|
||||
animations.push_back(new MySprite(explosion, getSize()*65, getXPos(), getYPos(), 0, angle(gen)));
|
||||
animations[animations.size() - 1]->makeAnimated(5, 5, 0.01,23);
|
||||
animations.emplace_back(explosion, getSize()*65, getXPos(), getYPos(), 0, angle(gen));
|
||||
animations[animations.size() - 1].makeAnimated(5, 5, 0.01,23);
|
||||
|
||||
sound.setVolume(100.0/((4-size)/1.5));
|
||||
sound.play();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue