v0.8.1: improved sprites for plants made via wand of regrowth
This commit is contained in:
parent
8edfaf056a
commit
c5285af0bf
Binary file not shown.
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Binary file not shown.
Before Width: | Height: | Size: 9.0 KiB After Width: | Height: | Size: 258 B |
|
@ -33,7 +33,6 @@ import com.watabou.noosa.particles.Emitter;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
//TODO implement on WIP sprite
|
|
||||||
public class LotusSprite extends MobSprite {
|
public class LotusSprite extends MobSprite {
|
||||||
|
|
||||||
private ArrayList<Emitter> grassVfx;
|
private ArrayList<Emitter> grassVfx;
|
||||||
|
@ -41,11 +40,11 @@ public class LotusSprite extends MobSprite {
|
||||||
public LotusSprite(){
|
public LotusSprite(){
|
||||||
super();
|
super();
|
||||||
|
|
||||||
perspectiveRaise = 0.2f;
|
perspectiveRaise = 0f;
|
||||||
|
|
||||||
texture( Assets.Sprites.LOTUS );
|
texture( Assets.Sprites.LOTUS );
|
||||||
|
|
||||||
TextureFilm frames = new TextureFilm( texture, 17, 14 );
|
TextureFilm frames = new TextureFilm( texture, 19, 16 );
|
||||||
|
|
||||||
idle = new MovieClip.Animation( 1, true );
|
idle = new MovieClip.Animation( 1, true );
|
||||||
idle.frames( frames, 0 );
|
idle.frames( frames, 0 );
|
||||||
|
@ -81,6 +80,12 @@ public class LotusSprite extends MobSprite {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void place(int cell) {
|
||||||
|
if (parent != null) parent.sendToBack(this);
|
||||||
|
super.place(cell);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void turnTo(int from, int to) {
|
public void turnTo(int from, int to) {
|
||||||
//do nothing
|
//do nothing
|
||||||
|
|
Loading…
Reference in New Issue
Block a user