Examples of AnimatedSprite


Examples of com.pointcliki.core.AnimatedSprite

      }
    };
  }

  private void updateAnimation() {
    AnimatedSprite sprite = MonolithANI.fromDirectory(fArea + "/IMAGEZ/ROLLINGBALL/" + fDir.toName());
   
    if (fAnimation != null) fAnimation.cleanup();
    fAnimation = sprite;
    addChild(fAnimation);
    fSpan = fAnimation.span();
View Full Code Here

Examples of com.pointcliki.core.AnimatedSprite

    if (dieImage != null) {
      fState = RollingBallState.Dying;
      fMovement.stop();
      gridManager().removeObject(fTile, RollingBall.this);
     
      AnimatedSprite sprite = new MonolithANI(GruntzGame.resourceManager().rez().file(dieAni, "ani"), dieImage).sprite();
     
      if (fAnimation != null) fAnimation.cleanup();
      fAnimation = sprite;
      addChild(fAnimation);
      fSpan = fAnimation.span();
View Full Code Here

Examples of com.pointcliki.core.AnimatedSprite

    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

Examples of com.pointcliki.core.AnimatedSprite

    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();
    fSpan = fAnimation.span();
View Full Code Here

Examples of com.pointcliki.core.AnimatedSprite

  }
 
  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

Examples of com.pointcliki.core.AnimatedSprite

    if (!fSource.equals("internal")) o.put("source", fSource);
    return o;
  }

  private void updateAnimation() {
    AnimatedSprite sprite = MonolithANI.fromDirectory("GAME/IMAGEZ/FORTRESSFLAGZ/" + fTeam);
   
    if (fAnimation != null) fAnimation.cleanup();
    fAnimation = sprite;
    addChild(fAnimation);
    fSpan = fAnimation.span();
View Full Code Here

Examples of com.pointcliki.core.AnimatedSprite

    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

Examples of com.pointcliki.core.AnimatedSprite

        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();
    }
    fAni.frame((int) Math.floor(Math.random() * fAni.frames()));
    fSpan = fAni.span();
View Full Code Here

Examples of com.pointcliki.core.AnimatedSprite

  @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

Examples of com.pointcliki.core.AnimatedSprite

    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();
    fSpan = fAnimation.span();
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.