public ShamanSprite() { super(); texture( Assets.SHAMAN ); TextureFilm frames = new TextureFilm( texture, 12, 15 ); idle = new Animation( 2, true ); idle.frames( frames, 0, 0, 0, 1, 0, 0, 1, 1 ); run = new Animation( 12, true ); run.frames( frames, 4, 5, 6, 7 ); attack = new Animation( 12, false ); attack.frames( frames, 2, 3, 0 ); zap = attack.clone(); die = new Animation( 12, false ); die.frames( frames, 8, 9, 10 ); play( idle ); }
public ThiefSprite() { super(); texture( Assets.THIEF ); TextureFilm film = new TextureFilm( texture, 12, 13 ); idle = new Animation( 1, true ); idle.frames( film, 0, 0, 0, 1, 0, 0, 0, 0, 1 ); run = new Animation( 15, true ); run.frames( film, 0, 0, 2, 3, 3, 4 ); die = new Animation( 10, false ); die.frames( film, 5, 6, 7, 8, 9 ); attack = new Animation( 12, false ); attack.frames( film, 10, 11, 12, 0 ); cast = attack.clone(); idle(); }
public MimicSprite() { super(); texture( Assets.MIMIC ); TextureFilm frames = new TextureFilm( texture, 16, 16 ); idle = new Animation( 5, true ); idle.frames(frames, 0, 0, 0, 1, 1); run = new Animation( 10, true ); run.frames( frames, 0, 1, 2, 3, 3, 2, 1 ); attack = new Animation( 10, false ); attack.frames( frames, 0, 4, 5, 6 ); cast = attack.clone(); die = new Animation( 5, false ); die.frames( frames, 7, 8, 9 ); play( idle ); }
public AcidicSprite() { super(); texture( Assets.SCORPIO ); TextureFilm frames = new TextureFilm( texture, 18, 17 ); idle = new Animation( 12, true ); idle.frames( frames, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 16, 15, 16 ); run = new Animation( 4, true ); run.frames( frames, 19, 20 ); attack = new Animation( 15, false ); attack.frames( frames, 14, 17, 18 ); zap = attack.clone(); die = new Animation( 12, false ); die.frames( frames, 14, 21, 22, 23, 24 ); play( idle ); }
public ScorpioSprite() { super(); texture( Assets.SCORPIO ); TextureFilm frames = new TextureFilm( texture, 18, 17 ); idle = new Animation( 12, true ); idle.frames( frames, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 1, 2, 1, 2 ); run = new Animation( 8, true ); run.frames( frames, 5, 5, 6, 6 ); attack = new Animation( 15, false ); attack.frames( frames, 0, 3, 4 ); zap = attack.clone(); die = new Animation( 12, false ); die.frames( frames, 0, 7, 8, 9, 10 ); play( idle ); }
public WarlockSprite() { super(); texture( Assets.WARLOCK ); TextureFilm frames = new TextureFilm( texture, 12, 15 ); idle = new Animation( 2, true ); idle.frames( frames, 0, 0, 0, 1, 0, 0, 1, 1 ); run = new Animation( 15, true ); run.frames( frames, 0, 2, 3, 4 ); attack = new Animation( 12, false ); attack.frames( frames, 0, 5, 6 ); zap = attack.clone(); die = new Animation( 15, false ); die.frames( frames, 0, 7, 8, 8, 9, 10 ); play( idle ); }
public CrabSprite() { super(); texture( Assets.CRAB ); TextureFilm frames = new TextureFilm( texture, 16 ); idle = new Animation( 5, true ); idle.frames( frames, 0, 1, 0, 2 ); run = new Animation( 15, true ); run.frames( frames, 3, 4, 5, 6 ); attack = new Animation( 12, false ); attack.frames( frames, 7, 8, 9 ); die = new Animation( 12, false ); die.frames( frames, 10, 11, 12, 13 ); play( idle ); }
public BurningFistSprite() { super(); texture( Assets.BURNING ); TextureFilm frames = new TextureFilm( texture, 24, 17 ); idle = new Animation( 2, true ); idle.frames( frames, 0, 0, 1 ); run = new Animation( 3, true ); run.frames( frames, 0, 1 ); attack = new Animation( 8, false ); attack.frames( frames, 0, 5, 6 ); die = new Animation( 10, false ); die.frames( frames, 0, 2, 3, 4 ); play( idle ); }
public TenguSprite() { super(); texture( Assets.TENGU ); TextureFilm frames = new TextureFilm( texture, 14, 16 ); idle = new Animation( 2, true ); idle.frames( frames, 0, 0, 0, 1 ); run = new Animation( 15, false ); run.frames( frames, 2, 3, 4, 5, 0 ); attack = new Animation( 15, false ); attack.frames( frames, 6, 7, 7, 0 ); // cast = attack.clone(); die = new Animation( 8, false ); die.frames( frames, 8, 9, 10, 10, 10, 10, 10, 10 ); play( run.clone() ); }
public AcidicSprite() { super(); texture( Assets.SCORPION); TextureFilm frames = new TextureFilm( texture, 18, 17 ); idle = new Animation( 12, true ); idle.frames( frames, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 16, 15, 16 ); run = new Animation( 4, true ); run.frames( frames, 19, 20 ); attack = new Animation( 15, false ); attack.frames( frames, 14, 17, 18 ); cast = attack.clone(); die = new Animation( 12, false ); die.frames( frames, 14, 21, 22, 23, 24 ); play( idle ); }
public ElementalSprite() { super(); texture( Assets.ELEMENTAL ); TextureFilm frames = new TextureFilm( texture, 12, 14 ); idle = new Animation( 10, true ); idle.frames( frames, 0, 1, 2 ); run = new Animation( 12, true ); run.frames( frames, 0, 1, 3 ); attack = new Animation( 15, false ); attack.frames( frames, 4, 5, 6 ); die = new Animation( 15, false ); die.frames( frames, 7, 8, 9, 10, 11, 12, 13, 12 ); cast = attack.clone(); play( idle ); }
public SheepSprite() { super(); texture( Assets.SHEEP ); TextureFilm frames = new TextureFilm( texture, 16, 15 ); idle = new Animation( 8, true ); idle.frames( frames, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 0 ); run = idle.clone(); attack = idle.clone(); die = new Animation( 20, false ); die.frames( frames, 0 ); play( idle ); curFrame = Random.Int( curAnim.frames.length ); } }
public YogSprite() { super(); perspectiveRaise = 0.2f; texture( Assets.YOG ); TextureFilm frames = new TextureFilm( texture, 20, 19 ); idle = new Animation( 10, true ); idle.frames( frames, 0, 1, 2, 2, 1, 0, 3, 4, 4, 3, 0, 5, 6, 6, 5 ); run = new Animation( 12, true ); run.frames( frames, 0 ); attack = new Animation( 12, false ); attack.frames( frames, 0 ); die = new Animation( 10, false ); die.frames( frames, 0, 7, 8, 9 ); play( idle ); }
public KingSprite() { super(); texture( Assets.KING ); TextureFilm frames = new TextureFilm( texture, 16, 16 ); idle = new Animation( 12, true ); idle.frames( frames, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2 ); run = new Animation( 15, true ); run.frames( frames, 3, 4, 5, 6, 7, 8 ); attack = new Animation( 15, false ); attack.frames( frames, 9, 10, 11 ); die = new Animation( 8, false ); die.frames( frames, 12, 13, 14, 15 ); play( idle ); } }
public NewbornElementalSprite() { super(); texture( Assets.ELEMENTAL ); int ofs = 21; TextureFilm frames = new TextureFilm( texture, 12, 14 ); idle = new MovieClip.Animation( 10, true ); idle.frames( frames, ofs+0, ofs+1, ofs+2 ); run = new MovieClip.Animation( 12, true ); run.frames( frames, ofs+0, ofs+1, ofs+3 ); attack = new MovieClip.Animation( 15, false ); attack.frames( frames, ofs+4, ofs+5, ofs+6 ); die = new MovieClip.Animation( 15, false ); die.frames( frames, ofs+7, ofs+8, ofs+9, ofs+10, ofs+11, ofs+12, ofs+13, ofs+12 ); play( idle ); }
public RatSprite() { super(); texture( Assets.RAT ); TextureFilm frames = new TextureFilm( texture, 16, 15 ); idle = new Animation( 2, true ); idle.frames( frames, 0, 0, 0, 1 ); run = new Animation( 10, true ); run.frames( frames, 6, 7, 8, 9, 10 ); attack = new Animation( 15, false ); attack.frames( frames, 2, 3, 4, 5, 0 ); die = new Animation( 10, false ); die.frames( frames, 11, 12, 13, 14 ); play( idle ); } }
public SpinnerSprite() { super(); perspectiveRaise = 0f; texture( Assets.SPINNER ); TextureFilm frames = new TextureFilm( texture, 16, 16 ); idle = new Animation( 10, true ); idle.frames( frames, 0, 0, 0, 0, 0, 1, 0, 1 ); run = new Animation( 15, true ); run.frames( frames, 0, 2, 0, 3 ); attack = new Animation( 12, false ); attack.frames( frames, 0, 4, 5, 0 ); die = new Animation( 12, false ); die.frames( frames, 6, 7, 8, 9 ); play( idle ); }
public GnollSprite() { super(); texture( Assets.GNOLL ); TextureFilm frames = new TextureFilm( texture, 12, 15 ); idle = new Animation( 2, true ); idle.frames( frames, 0, 0, 0, 1, 0, 0, 1, 1 ); run = new Animation( 12, true ); run.frames( frames, 4, 5, 6, 7 ); attack = new Animation( 12, false ); attack.frames( frames, 2, 3, 0 ); die = new Animation( 12, false ); die.frames( frames, 8, 9, 10 ); play( idle ); } }
public BanditSprite() { super(); texture( Assets.THIEF ); TextureFilm film = new TextureFilm( texture, 12, 13 ); idle = new Animation( 1, true ); idle.frames( film, 21, 21, 21, 22, 21, 21, 21, 21, 22 ); run = new Animation( 15, true ); run.frames( film, 21, 21, 23, 24, 24, 25 ); die = new Animation( 10, false ); die.frames( film, 25, 27, 28, 29, 30 ); attack = new Animation( 12, false ); attack.frames( film, 31, 32, 33 ); idle(); } }