v0.8.0: fixed the following bugs:
- various screen layout + orientation errors with power saver mode on - DM-300s sprite exploding many times if it is stunned as it dies
This commit is contained in:
+5
-2
@@ -89,7 +89,9 @@ public class DM300Sprite extends MobSprite {
|
||||
Sample.INSTANCE.play( Assets.SND_ROCKS );
|
||||
Camera.main.shake( 3, 0.7f );
|
||||
}
|
||||
|
||||
|
||||
private boolean exploded = false;
|
||||
|
||||
@Override
|
||||
public void onComplete( Animation anim ) {
|
||||
|
||||
@@ -103,7 +105,8 @@ public class DM300Sprite extends MobSprite {
|
||||
|
||||
super.onComplete( anim );
|
||||
|
||||
if (anim == die) {
|
||||
if (anim == die && !exploded) {
|
||||
exploded = true;
|
||||
Sample.INSTANCE.play(Assets.SND_BLAST);
|
||||
emitter().burst( BlastParticle.FACTORY, 25 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user