Package games.stendhal.client.sprite

Examples of games.stendhal.client.sprite.Sprite.createRegion()


    String imageName = "data/sprites/doors/" + baseImage + "_" + orientation +".png";
    Sprite[] s = sprites.get(imageName);
    if (s == null) {
      Sprite sprite = SpriteStore.get().getSprite(imageName);
      s = new Sprite[2];
      s[0] = sprite.createRegion(0, 0, 96, 96, null);
      s[1] = sprite.createRegion(0, 96, 96, 96, null);
      sprites.put(imageName, s);
    }
   
    openSprite = s[0];
View Full Code Here


    Sprite[] s = sprites.get(imageName);
    if (s == null) {
      Sprite sprite = SpriteStore.get().getSprite(imageName);
      s = new Sprite[2];
      s[0] = sprite.createRegion(0, 0, 96, 96, null);
      s[1] = sprite.createRegion(0, 96, 96, 96, null);
      sprites.put(imageName, s);
    }
   
    openSprite = s[0];
    closedSprite = s[1];
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.