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;