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 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 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 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 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 GnollTricksterSprite() { super(); texture( Assets.GNOLL ); TextureFilm frames = new TextureFilm( texture, 12, 15 ); idle = new MovieClip.Animation( 2, true ); idle.frames( frames, 21, 21, 21, 22, 21, 21, 22, 22 ); run = new MovieClip.Animation( 12, true ); run.frames( frames, 25, 26, 27, 28 ); attack = new MovieClip.Animation( 12, false ); attack.frames( frames, 23, 24, 21 ); cast = attack.clone(); die = new MovieClip.Animation( 12, false ); die.frames( frames, 29, 30, 31 ); 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 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 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 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 ShopkeeperSprite() { super(); texture( Assets.KEEPER ); TextureFilm film = new TextureFilm( texture, 14, 14 ); idle = new Animation( 10, true ); idle.frames( film, 1, 1, 1, 1, 1, 0, 0, 0, 0 ); die = new Animation( 20, false ); die.frames( film, 0 ); run = idle.clone(); attack = idle.clone(); idle(); }
public ShopkeeperSprite() { super(); texture( Assets.KEEPER ); TextureFilm film = new TextureFilm( texture, 14, 14 ); idle = new Animation( 10, true ); idle.frames( film, 1, 1, 1, 1, 1, 0, 0, 0, 0 ); die = new Animation( 20, false ); die.frames( film, 0 ); run = idle.clone(); attack = idle.clone(); idle(); }