Package com.pointcliki.core

Examples of com.pointcliki.core.AnimatedSprite$AnimationEvent


          }
        }
        n += 20 + j;
      }
    }
    fAni = new AnimatedSprite(images, offsets, durs) {
      /**
       * Serial key
       */
      private static final long serialVersionUID = 9001238884980035614L;

View Full Code Here


      if (pid == null) break;
      images.add(pid.image());
      offsets.add(pid.offset());
      j++;
    }
    return new AnimatedSprite(images.toArray(new Image[images.size()]), offsets.toArray(new Vector2f[offsets.size()]));
  }
View Full Code Here

    if (fGroups.length > 0) o.put("groups", groupString());
    return o;
  }

  private void updateAnimation() {
    AnimatedSprite sprite;
    if (fReached) {
      sprite = new MonolithANI(GruntzGame.resourceManager().rez().file("GAME/ANIZ/CHECKPOINTFLAGSET", "ani"), "GAME/IMAGEZ/CHECKPOINTFLAG").sprite();
    } else {
      MonolithPID pid = GruntzGame.resourceManager().pid("GAME/IMAGEZ/CHECKPOINTFLAG/FRAME001");
      sprite = new AnimatedSprite(new Image[] {pid.image()}, new Vector2f[] {pid.offset()});
    }
   
    if (fAnimation != null) fAnimation.cleanup();
    fAnimation = sprite;
    addChild(fAnimation);
View Full Code Here

    fProperties = new LogicProperty[]{group};
  }
 
  public static AnimatedSprite editorIcon(JSONObject object) throws JSONException {
    MonolithPID pid = GruntzGame.resourceManager().pid("GAME/IMAGEZ/CHECKPOINTFLAG/FRAME001");
    return new AnimatedSprite(new Image[] {pid.image()}, new Vector2f[] {pid.offset()});
  }
View Full Code Here

    fProperties = new LogicProperty[]{text};
  }
 
  public static AnimatedSprite editorIcon(JSONObject object) throws JSONException {
    MonolithPID pid = GruntzGame.resourceManager().pid("GAME/IMAGEZ/HELPBOX/FRAME001");
    return new AnimatedSprite(new Image[] {pid.image()}, new Vector2f[] {pid.offset()});
  }
View Full Code Here

      image = "POWERUPZ/" + item;
    }
    if (item.startsWith("SECRET")) image = item;
   
    MonolithPID pid = GruntzGame.resourceManager().pid("GAME/IMAGEZ/INGAMEICONZ/" + image + "/FRAME001");
    return new AnimatedSprite(new Image[] {pid.image()}, new Vector2f[] {pid.offset()});
  }
View Full Code Here

    fProperties = new LogicProperty[]{area, team};
  }
 
  public static AnimatedSprite editorIcon(JSONObject object) throws JSONException {
    MonolithPID pid = GruntzGame.resourceManager().pid(object.getString("area") + "/IMAGEZ/FORT/FRAME001");
    return new AnimatedSprite(new Image[] {pid.image()}, new Vector2f[] {pid.offset()});
  }
View Full Code Here

    return (Attribute<Integer>) fAttributes.get(s);
  }
   
  public void rawAnimate(String ani, String graphics) {
    // Get ani first in case it causes an exception
    AnimatedSprite sprite = new MonolithANI(GruntzGame.resourceManager().rez().file("GRUNTZ/ANIZ/" + ani, "ani"), "GRUNTZ/IMAGEZ/" + graphics).sprite(fPalette);
    if (fAnimation != null) fAnimation.cleanup();
    fAnimation = sprite;
    fAnimationName = "";
    addChild(fAnimation, 50);
    fSpan = fAnimation.span();
View Full Code Here

    if (fMap != null) fAnimation.start();
  }
 
  public void rawAnimate(String ani, String graphics, int frames) {
    // Get ani first in case it causes an exception
    AnimatedSprite sprite = new MonolithANI(GruntzGame.resourceManager().rez().file("GRUNTZ/ANIZ/" + ani, "ani"), "GRUNTZ/IMAGEZ/" + graphics).sprite(fPalette);
    sprite.splice(0, frames);
    if (fAnimation != null) fAnimation.cleanup();
    fAnimation = sprite;
    fAnimationName = "";
    addChild(fAnimation, 50);
    fSpan = fAnimation.span();
View Full Code Here

  }
 
  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

TOP

Related Classes of com.pointcliki.core.AnimatedSprite$AnimationEvent

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.