Package com.pointcliki.core

Examples of com.pointcliki.core.Sprite.subimage()


  public void importFromWWD(String logic, String image, String animation, byte[] data) {
    super.importFromWWD(logic, image, animation, data);
   
    Sprite sprite = new Sprite(GruntzGame.resourceManager().spritesheet("editor/logics", 17, 17));
    if (logic.equals("Brickz"))
      sprite.subimage(2, 0);
    else {
      sprite.subimage(2, 1);
     
      fType = Pickup.typeForIndex(MonolithWWD.readPowerup(data));
      fItem = Pickup.itemForIndex(MonolithWWD.readPowerup(data));
View Full Code Here


   
    Sprite sprite = new Sprite(GruntzGame.resourceManager().spritesheet("editor/logics", 17, 17));
    if (logic.equals("Brickz"))
      sprite.subimage(2, 0);
    else {
      sprite.subimage(2, 1);
     
      fType = Pickup.typeForIndex(MonolithWWD.readPowerup(data));
      fItem = Pickup.itemForIndex(MonolithWWD.readPowerup(data));
      fWWDTile = MonolithWWD.readSmarts(data);
    }
View Full Code Here

    fItem = object.optString("item");
    fLayer = object.optInt("layer", 0);
    fNewTile = object.optString("tile", "DEF");
   
    Sprite sprite = new Sprite(GruntzGame.resourceManager().spritesheet("editor/logics", 17, 17));
    sprite.subimage(2, 1);
    addChild(sprite);
  }

  @Override
  public JSONObject exportToJSON() throws JSONException {
View Full Code Here

  @Override
  public void importFromWWD(String logic, String image, String animation, byte[] data) {
    super.importFromWWD(logic, image, animation, data);
   
    Sprite sprite = new Sprite(GruntzGame.resourceManager().spritesheet("editor/logics", 17, 17));
    sprite.subimage(1, 1);
    addChild(sprite);
   
    // Get group
    fGroup = "#" + MonolithWWD.readID(data);
   
View Full Code Here

  @Override
  public void importFromJSON(JSONObject object) {
    super.importFromJSON(object);
   
    Sprite sprite = new Sprite(GruntzGame.resourceManager().spritesheet("editor/logics", 17, 17));
    sprite.subimage(1, 1);
    addChild(sprite);
   
    fMode = object.optInt("mode");
    fGroup = object.optString("group");
    fItem = object.optInt("item", 0);
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.