Package com.pointcliki.dizgruntled.rez

Examples of com.pointcliki.dizgruntled.rez.MonolithPID


    int val = Math.max(0, attributeAsInteger("health"));
   
    String s = (21 - val) + "";
    while (s.length() < 3) s = "0" + s;
   
    fHealthSprite.image(new MonolithPID(GruntzGame.resourceManager().rez().file("GAME/IMAGEZ/GRUNTHEALTHSPRITE/FRAME" + s, "pid")).image());
  }
View Full Code Here


    fStamina.assign(0);
    int val = Math.max(0, attributeAsInteger("stamina"));
   
    String s = (21 - val) + "";
    while (s.length() < 3) s = "0" + s;
    fStaminaSprite.image(new MonolithPID(GruntzGame.resourceManager().rez().file("GAME/IMAGEZ/GRUNTSTAMINASPRITE/FRAME" + s, "pid")).image());
   
    fStaminater.period(rate);
    fStaminater.begin();
  }
View Full Code Here

    return 0;
  }
 
  public static AnimatedSprite editorIcon(JSONObject object) throws JSONException {
    GruntPalette pal = new GruntPalette(object.getString("color"), GruntzGame.resourceManager().rez().file("GRUNTZ/PALETTEZ/" + object.getString("color") + "TOOL", "pal"));
    MonolithPID pid = GruntzGame.resourceManager().pid("GRUNTZ/IMAGEZ/" + object.getString("tool") + "GRUNT/SOUTH/IDLE/FRAME001", pal);
    return new AnimatedSprite(new Image[] {pid.image()}, new Vector2f[] {pid.offset()});
  }
View Full Code Here

  public String name() {
    return "RollingBall";
  }
 
  public static AnimatedSprite editorIcon(JSONObject object) throws JSONException {
    MonolithPID pid = GruntzGame.resourceManager().pid(object.optString("area") + "/IMAGEZ/ROLLINGBALL/EAST/FRAME001");
    return new AnimatedSprite(new Image[] {pid.image()}, new Vector2f[] {pid.offset()});
  }
View Full Code Here

    // TODO Auto-generated method stub

  }
 
  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()});
  }
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()});
  }
View Full Code Here

      while (true) {
        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 {
      fAni = new MonolithANI(GruntzGame.resourceManager().rez().file(animation, "ani"), image).sprite();
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()});
  }
View Full Code Here

      // Check for checkpoint
      if (traits.contains("checkpointSwitch")) {
        effectManager().setCheckpointGroup(fGroup);
       
        if (fItem > 0) {
          MonolithPID pid;
         
          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

Related Classes of com.pointcliki.dizgruntled.rez.MonolithPID

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.