V0.2.1 : New sprite for Fetid Rat (still has nothing on the Rat King of course)

This commit is contained in:
Evan Debenham 2014-10-09 00:18:43 -04:00
parent 3d19573f66
commit 8f4e1ee1f0
2 changed files with 25 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

View File

@ -17,13 +17,37 @@
*/ */
package com.shatteredpixel.shatteredpixeldungeon.sprites; package com.shatteredpixel.shatteredpixeldungeon.sprites;
import com.shatteredpixel.shatteredpixeldungeon.Assets;
import com.watabou.noosa.TextureFilm;
import com.watabou.noosa.particles.Emitter; import com.watabou.noosa.particles.Emitter;
import com.shatteredpixel.shatteredpixeldungeon.actors.Char; import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
import com.shatteredpixel.shatteredpixeldungeon.effects.Speck; import com.shatteredpixel.shatteredpixeldungeon.effects.Speck;
public class FetidRatSprite extends RatSprite { public class FetidRatSprite extends MobSprite {
private Emitter cloud; private Emitter cloud;
public FetidRatSprite() {
super();
texture( Assets.RAT );
TextureFilm frames = new TextureFilm( texture, 16, 15 );
idle = new Animation( 2, true );
idle.frames( frames, 32, 32, 32, 33 );
run = new Animation( 10, true );
run.frames( frames, 38, 39, 40, 41, 42 );
attack = new Animation( 15, false );
attack.frames( frames, 34, 35, 36, 37, 32 );
die = new Animation( 10, false );
die.frames( frames, 43, 44, 45, 46 );
play( idle );
}
@Override @Override
public void link( Char ch ) { public void link( Char ch ) {