Package com.pointcliki.dizgruntled.rez

Examples of com.pointcliki.dizgruntled.rez.MonolithANI


  }

  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()});
    }
   
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

    if (fAnimation != null) {
      fAnimation.cleanup();
      fWarlord.cleanup();
    }
    fAnimation = MonolithANI.fromDirectory(fArea + "/IMAGEZ/FORT");
    fWarlord = new MonolithANI(GruntzGame.resourceManager().rez().file("GRUNTZ/ANIZ/WARLORDZ/" + fTeam + "/MOVING", "ani"), "GRUNTZ/IMAGEZ/WARLORDZ/" + fTeam + "/MOVING").sprite(p);
    addChild(fAnimation);
    addChild(fWarlord);
    fSpan = fAnimation.span();
    if (fMap != null) {
      fAnimation.start();
View Full Code Here

  public SFX(String animation, String graphics, String sound, GridCoordinate xy) {
   
    fXY = xy;
    MonolithFile f = GruntzGame.resourceManager().rez().file(animation, "ani");
    if (f == null) fAnimation = MonolithANI.fromDirectory(graphics);
    else fAnimation = new MonolithANI(f, graphics).sprite();
    fSound = sound;
   
    if (fAnimation == null) return;
   
    fAnimation.dispatcher().addMinion("animation.looped", new Minion<IEvent>() {
View Full Code Here

    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());
    fHealthSprite.position(new Vector2f(-12, -26));
   
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);
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

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

TOP

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

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.