Examples of Sprite


Examples of com.mojang.escape.gui.Sprite

  public ChestBlock() {
    tex = 1;
    blocksMotion = true;

    chestSprite = new Sprite(0, 0, 0, 8 * 2 + 0, Art.getCol(0xffff00));
    addSprite(chestSprite);
  }
View Full Code Here

Examples of com.mojang.escape.gui.Sprite

    return false;
  }

  public void tick() {
    for (int i = 0; i < sprites.size(); i++) {
      Sprite sprite = sprites.get(i);
      sprite.tick();
      if (sprite.removed) {
        sprites.remove(i--);
      }
    }
  }
View Full Code Here

Examples of com.mojang.escape.gui.Sprite

public class BarsBlock extends Block {
  private Sprite sprite;
  private boolean open = false;

  public BarsBlock() {
    sprite = new Sprite(0, 0, 0, 0, 0x202020);
    addSprite(sprite);
    blocksMotion = true;
  }
View Full Code Here

Examples of com.mojang.escape.gui.Sprite

public class TorchBlock extends Block {
  private Sprite torchSprite;

  public TorchBlock() {
    torchSprite = new Sprite(0, 0, 0, 3, Art.getCol(0xffff00));
    sprites.add(torchSprite);
  }
View Full Code Here

Examples of com.mojang.escape.gui.Sprite

  public boolean wait;

  public LadderBlock(boolean down) {
    if (down) {
      floorTex = 1;
      addSprite(new Sprite(0, 0, 0, 8 + 3, Art.getCol(LADDER_COLOR)));
    } else {
      ceilTex = 1;
      addSprite(new Sprite(0, 0, 0, 8 + 4, Art.getCol(LADDER_COLOR)));
    }
  }
View Full Code Here

Examples of com.mojang.escape.gui.Sprite

  public KeyEntity(double x, double z) {
    this.x = x;
    this.z = z;
    y = 0.5;
    ya = 0.025;
    sprite = new Sprite(0, 0, 0, 16 + 3, COLOR);
    sprites.add(sprite);
  }
View Full Code Here

Examples of com.mojang.escape.gui.Sprite

    xa = Math.sin(rot) * 0.2 * pow;
    za = Math.cos(rot) * 0.2 * pow;
    this.x = x - za / 2;
    this.z = z + xa / 2;

    sprites.add(new Sprite(0, 0, 0, 8 * 3 + sprite, Art.getCol(col)));

    flying = true;
  }
View Full Code Here

Examples of com.mojang.escape.gui.Sprite

  private double rollDist = 0;

  public BoulderEntity(int x, int z) {
    this.x = x;
    this.z = z;
    sprite = new Sprite(0, 0, 0, 16, COLOR);
    sprites.add(sprite);
  }
View Full Code Here

Examples of com.pointcliki.core.Sprite

      protected AnimatedSprite fSprite;
      protected String fName;

      public LogicSprite(String name, AnimatedSprite sp) {
        fSprite = sp;
        Sprite s = new Sprite(fSprite.image(0));
        fSpan = s.span();
        fName = name;
        addChild(s);
      }
View Full Code Here

Examples of com.randarlabs.java.MarioAsteroids.object.Sprite

    bg = new ImageIcon("res\\mario_pokemon.jpeg").getImage();
    marioIcon = new ImageIcon("res\\Smb1_mario.png").getImage();
    hammerIcon = new ImageIcon("res\\33px-Smb1_hammer.png").getImage();
    fireballIcon = new ImageIcon("res\\Smb1_bowser_flamef.png").getImage();
   
    mario = new Sprite(w, g);
    mario.setImage(marioIcon);
    marioPoint.setX(w.getSize().width / 2 - mario.center().X());
    marioPoint.setY(w.getSize().height / 2 - mario.center().Y());
    mario.setPosition(marioPoint);
    mario.setAlive(true);
   
   
    for(int n = 0; n < FIREBALLS; n++) {
      fireball[n] = new Sprite(w, g);
      fireball[n].setImage(fireballIcon);
      fireballPoint[n] = new MyPoint2D(0, 0);
      fireballVel[n] = new MyPoint2D(0.3, 0.3);
      fireball[n].setPosition(fireballPoint[n]);
      fireball[n].setAlive(false);
    }
   
    for(int n = 0; n < ENEMIES; n++) {
      hammer[n] = new Sprite(w, g);
      hammer[n].setImage(hammerIcon);
      hammer[n].setRotationRate(rand.nextInt(5) + 1);
      hammerPoint[n] = new MyPoint2D((double)rand.nextInt(w.getSize().width) - 20, (double)rand.nextInt(w.getSize().height) - 20);
      hammer[n].setPosition(hammerPoint[n]);
      hammer[n].setMoveAngle(rand.nextInt(360));
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.