Package com.pointcliki.dizgruntled.rez

Examples of com.pointcliki.dizgruntled.rez.MonolithPID.image()


  }
 
  public static AnimatedSprite editorIcon(JSONObject object) throws JSONException {
    MonolithPID pid = GruntzGame.resourceManager().pid("GAME/IMAGEZ/GRUNTCREATIONPOINT/FRAME001");
    return new AnimatedSprite(new Image[] {pid.image()}, new Vector2f[] {pid.offset()});
  }

  @Override
  public String name() {
    return "GruntCreationPoint";
View Full Code Here


    fProperties = new LogicProperty[]{team};
  }
 
  public static AnimatedSprite editorIcon(JSONObject object) throws JSONException {
    MonolithPID pid = GruntzGame.resourceManager().pid("GAME/IMAGEZ/FORTRESSFLAGZ/" + object.optString("team", "KING") + "/FRAME001");
    return new AnimatedSprite(new Image[] {pid.image()}, new Vector2f[] {pid.offset()});
  }

  @Override
  public String name() {
    return "FortressFlag";
View Full Code Here

        String end = j + "";
        while (end.length() < 3) end = "0" + end;
        MonolithFile f = GruntzGame.resourceManager().rez().file(image + "/FRAME" + end, "pid");
        if (f == null) break;
        MonolithPID pid = new MonolithPID(f);
        images.add(pid.image());
        offsets.add(pid.offset());
        j++;
      }
      fAni = new AnimatedSprite(images.toArray(new Image[images.size()]), offsets.toArray(new Vector2f[offsets.size()]));
    } else {
View Full Code Here

  @Override
  public void initProperties() {}
 
  public static AnimatedSprite editorIcon(JSONObject object) throws JSONException {
    MonolithPID pid = GruntzGame.resourceManager().pid(object.getString("area") + "/IMAGEZ/" + object.getString("rez") + "/FRAME001");
    return new AnimatedSprite(new Image[] {pid.image()}, new Vector2f[] {pid.offset()});
  }

  @Override
  public String name() {
    return "Scenery";
View Full Code Here

         
          if (fItem == 20) pid = new MonolithPID(GruntzGame.resourceManager().rez().file("GAME/IMAGEZ/INGAMEICONZ/TOOLZ/WARPSTONEZ3/FRAME001", "pid"));
          else if (fItem < 23) pid = new MonolithPID(GruntzGame.resourceManager().rez().file("GAME/IMAGEZ/INGAMEICONZ/TOOLZ/" + Grunt.TOOLS[fItem] + "/FRAME001", "pid"));
          else pid = new MonolithPID(GruntzGame.resourceManager().rez().file("GAME/IMAGEZ/INGAMEICONZ/TOYZ/" + Grunt.TOYS[fItem - 23] + "/FRAME001", "pid"));
         
          Sprite sp = new Sprite(pid.image());
          sp.scale(0.5f).position(new Vector2f(10, 10));
          addChild(sp);
        }
      }
         
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.