v0.8.1: improved sprites for plants made via wand of regrowth

This commit is contained in:
Evan Debenham 2020-06-27 19:23:55 -04:00
parent 8edfaf056a
commit c5285af0bf
3 changed files with 8 additions and 3 deletions

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

View File

@ -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