Package games.stendhal.client.sprite

Examples of games.stendhal.client.sprite.AnimatedSprite


    x += width;
    frames[2] = store.getTile(tiles, x, y, width, height);

    frames[3] = frames[1];

    return new AnimatedSprite(frames, 100, false);
  }
View Full Code Here


   * @param sprite
   *            The sprite.
   */
  protected void setAnimation(final Sprite sprite) {
    if (sprite instanceof AnimatedSprite) {
      final AnimatedSprite asprite = (AnimatedSprite) sprite;

      if (isAnimating()) {
        asprite.start();
      } else {
        asprite.stop();
        asprite.reset();
      }
    }
  }
View Full Code Here

TOP

Related Classes of games.stendhal.client.sprite.AnimatedSprite

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.