V0.2.1 : New sprite for Fetid Rat (still has nothing on the Rat King of course)
This commit is contained in:
parent
3d19573f66
commit
8f4e1ee1f0
BIN
assets/rat.png
BIN
assets/rat.png
Binary file not shown.
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 8.2 KiB |
|
@ -17,14 +17,38 @@
|
||||||
*/
|
*/
|
||||||
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 ) {
|
||||||
super.link( ch );
|
super.link( ch );
|
||||||
|
|
Loading…
Reference in New Issue
Block a user