V0.2.1 : WIP sprites for new quest bosses, plus a small Fetid Rat tweak.

This commit is contained in:
Evan Debenham
2014-10-09 01:15:37 -04:00
parent e3da42ab34
commit b048a3b242
6 changed files with 120 additions and 24 deletions
@@ -21,29 +21,29 @@ import com.watabou.noosa.TextureFilm;
import com.shatteredpixel.shatteredpixeldungeon.Assets;
public class CrabSprite extends MobSprite {
public CrabSprite() {
super();
texture( Assets.CRAB );
TextureFilm frames = new TextureFilm( texture, 16 );
TextureFilm frames = new TextureFilm( texture, 16, 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 );
}
@Override
public int blood() {
return 0xFFFFEA80;
@@ -0,0 +1,62 @@
package com.shatteredpixel.shatteredpixeldungeon.sprites;
import com.shatteredpixel.shatteredpixeldungeon.Assets;
import com.shatteredpixel.shatteredpixeldungeon.items.weapon.missiles.IncendiaryDart;
import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
import com.watabou.noosa.MovieClip;
import com.watabou.noosa.TextureFilm;
import com.watabou.utils.Callback;
/**
* Created by Evan on 09/10/2014.
*/
public class GnollTricksterSprite extends MobSprite {
private Animation cast;
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 );
}
@Override
public void attack( int cell ) {
if (!Level.adjacent(cell, ch.pos)) {
((MissileSprite)parent.recycle( MissileSprite.class )).
reset( ch.pos, cell, new IncendiaryDart(), new Callback() {
@Override
public void call() {
ch.onAttackComplete();
}
} );
play( cast );
turnTo( ch.pos , cell );
} else {
super.attack( cell );
}
}
}
@@ -0,0 +1,38 @@
package com.shatteredpixel.shatteredpixeldungeon.sprites;
import com.shatteredpixel.shatteredpixeldungeon.Assets;
import com.watabou.noosa.MovieClip;
import com.watabou.noosa.TextureFilm;
/**
* Created by Evan on 09/10/2014.
*/
public class GreatCrabSprite extends MobSprite {
public GreatCrabSprite() {
super();
texture( Assets.CRAB );
TextureFilm frames = new TextureFilm( texture, 16, 16 );
idle = new MovieClip.Animation( 5, true );
idle.frames( frames, 16, 17, 16, 18 );
run = new MovieClip.Animation( 15, true );
run.frames( frames, 19, 20, 21, 22 );
attack = new MovieClip.Animation( 12, false );
attack.frames( frames, 23, 24, 25 );
die = new MovieClip.Animation( 12, false );
die.frames( frames, 26, 27, 28, 29 );
play( idle );
}
@Override
public int blood() {
return 0xFFFFEA80;
}
}