Package com.pointcliki.core

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


    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

    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

    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

  }
 
  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

    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

    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

        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

  @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

    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

Related Classes of com.pointcliki.core.AnimatedSprite

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.