Esempio n. 1
0
 /**
  * Updates the rock (and wraps the transform).
  *
  * @param delta
  */
 @Override
 public void update(float delta) {
   Asteroids.wrapTransform(this.body);
   this.life = Math.max(0.f, this.life - delta);
   if (this.life <= 0.f) {
     setActive(false);
   }
 }