Example #1
0
  public advanceTime() {
    // First advance and drop the trail.
    if (!this.bomb_.isMine() && Labs.BOMB_TRAILS) {
      let animation = this.game_.getResourceManager().getSpriteSheet('bombTrails').getAnimation(this.bomb_.getLevel());
      new Effect(this.game_, animation, this.bomb_.getPosition(), Vector.ZERO, Layer.TRAILS);
    }

    this.animation_.update();
    this.bouncingAnimation_.update();
  }
Example #2
0
 public advanceTime() {
   this.animation_.update();
   this.position_ = this.position_.add(this.velocity_);
   if (!this.animation_.isRunning()) {
     this.invalidate();
   }
 }
Example #3
0
 public advanceTime() {
   this.animation_.update();
   if (!this.animation_.isRunning()) {
     this.invalidate();
   }
 }
Example #4
0
 public advanceTime() {
   this.activeAnimation_.update();
   this.inactiveAnimation_.update();
 }
Example #5
0
 public advanceTime() {
   this.animation_.update();
   this.bouncingAnimation_.update();
 }