Examples of subImage()


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

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

   
    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

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

    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

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

  @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

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

  @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

Examples of playn.core.SurfaceImage.subImage()

            root.visitItems(new Slot<Node>() { @Override public void onEmit (Node node) {
                // Draw the item to the atlas
                node.item.draw(atlasImage.surface(), node.x, node.y);

                // Record its region
                packed.put(node.item.id, atlasImage.subImage(
                    node.x, node.y, node.width, node.height));
            }});
        }
        return packed;
    }
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.