Examples of GruntPalette


Examples of com.pointcliki.dizgruntled.utils.GruntPalette

    fColor = object.optString("color", "ORANGE");
    state(1);
  }
 
  public void state(int s) {
    fPalette = new GruntPalette(fColor, GruntzGame.resourceManager().rez().file("GRUNTZ/PALETTEZ/" + fColor + "TOOL", "pal"));
    AnimatedSprite sprite = new MonolithANI(GruntzGame.resourceManager().rez().file("GRUNTZ/ANIZ/GRUNTPUDDLE/GRUNTPUDDLE" + (s + 1), "ani"), "GRUNTZ/IMAGEZ/GRUNTPUDDLE").sprite(fPalette);
    if (fAnimation != null) fAnimation.cleanup();
    fAnimation = sprite;
    addChild(fAnimation);
    if (map() != null) fAnimation.start();
View Full Code Here

Examples of com.pointcliki.dizgruntled.utils.GruntPalette

    }
  }

  private void updateAnimation() {
   
    GruntPalette p = new GruntPalette("ORANGE", GruntzGame.resourceManager().rez().file("GRUNTZ/PALETTEZ/ORANGETOOL", "pal"));
   
    if (fAnimation != null) {
      fAnimation.cleanup();
      fWarlord.cleanup();
    }
View Full Code Here

Examples of com.pointcliki.dizgruntled.utils.GruntPalette

    fAttributes.put("hurtable", new Attribute<Boolean>(true));
    fAttributes.put("health", new Attribute<Integer>(20).addModifier(fHealth));
    fAttributes.put("stamina", new Attribute<Integer>(20).addModifier(fStamina));
   
    // Create the grunt body
    fPalette = new GruntPalette(fColor, GruntzGame.resourceManager().rez().file("GRUNTZ/PALETTEZ/" + fColor + "TOOL", "pal"));
    animate("IDLE1", "IDLE");
    fCursor = new MonolithANI(GruntzGame.resourceManager().rez().file("GAME/ANIZ/GRUNTSELECTEDSPRITE", "ani"), "GAME/IMAGEZ/GRUNTSELECTEDSPRITE").sprite();
   
    // Health
    fHealthSprite = new Sprite(new MonolithPID(GruntzGame.resourceManager().rez().file("GAME/IMAGEZ/GRUNTHEALTHSPRITE/FRAME001", "pid")).image());
View Full Code Here

Examples of com.pointcliki.dizgruntled.utils.GruntPalette

        }

        @Override
        public void choice(int i) {
          fColor = COLORS[i];
          fPalette = new GruntPalette(fColor, GruntzGame.resourceManager().rez().file("GRUNTZ/PALETTEZ/" + fColor + "TOOL", "pal"));
          animate("IDLE1", "IDLE");
        }
      },
      new StringLogicProperty("player") {
       
View Full Code Here

Examples of com.pointcliki.dizgruntled.utils.GruntPalette

    for (int i = 0; i < TOYS.length; i++) if (TOYS[i].equals(fToy)) return i;
    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

Examples of com.pointcliki.dizgruntled.utils.GruntPalette

    fColor = object.optString("color", "ORANGE");
    setup();
  }
 
  private void setup() {
    fPalette = new GruntPalette(fColor, GruntzGame.resourceManager().rez().file("GRUNTZ/PALETTEZ/" + fColor + "TOOL", "pal"));
    AnimatedSprite sprite = MonolithANI.fromDirectory("GAME/IMAGEZ/GRUNTCREATIONPOINT", fPalette);
    if (fAnimation != null) fAnimation.cleanup();
    fAnimation = sprite;
    addChild(fAnimation);
    if (map() != null) fAnimation.start();
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.