Пример #1
0
  public Bracelet(Link link) {
    super(link);
    SpriteSheet entities = (SpriteSheet) Game.sprites.get("entities");

    sprite = entities.get(408);

    using = false;
  }
Пример #2
0
  public MegatonHammer(Link link) {
    super(link);
    damage = 2;
    using = false;
    SpriteSheet entities = (SpriteSheet) Game.sprites.get("entities");

    spriteN = new AnimatedSprite(entities.range(772, 774), 50);
    spriteN.oneCycle(true);
    spriteN.collisionOffset(2);
    spriteS = new AnimatedSprite(entities.range(672, 674), 50);
    spriteS.oneCycle(true);
    spriteS.collisionOffset(2);
    spriteE = new AnimatedSprite(entities.range(722, 724), 50);
    spriteE.oneCycle(true);
    spriteE.collisionOffset(2);
    spriteW = SpriteUtils.flipHorizontal(spriteE);
    spriteW.oneCycle(true);
    spriteW.collisionOffset(2);
    swingSound = Game.sounds.get("sword_slash1");
    crushSound = Game.sounds.get("rock_shatter");
  }