v0.3.2: finished spritework for rot garden, png optimization
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 3.5 KiB |
BIN
assets/items.png
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 276 B After Width: | Height: | Size: 766 B |
|
@ -63,6 +63,11 @@ public class RotHeartSprite extends MobSprite {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void turnTo(int from, int to) {
|
||||
//do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update() {
|
||||
|
||||
|
|
|
@ -32,17 +32,17 @@ public class RotLasherSprite extends MobSprite {
|
|||
|
||||
TextureFilm frames = new TextureFilm( texture, 12, 16 );
|
||||
|
||||
idle = new Animation( 8, true );
|
||||
idle.frames( frames, 0, 1, 2, 3 );
|
||||
idle = new Animation( 0, true );
|
||||
idle.frames( frames, 0);
|
||||
|
||||
run = new Animation( 12, true );
|
||||
run.frames( frames, 0, 1 );
|
||||
run = new Animation( 0, true );
|
||||
run.frames( frames, 0);
|
||||
|
||||
attack = new Animation( 12, false );
|
||||
attack.frames( frames, 2, 3, 0, 1 );
|
||||
attack = new Animation( 24, false );
|
||||
attack.frames( frames, 0, 1, 2, 2, 1 );
|
||||
|
||||
die = new Animation( 12, false );
|
||||
die.frames( frames, 4, 5, 6 );
|
||||
die.frames( frames, 3, 4, 5, 6 );
|
||||
|
||||
play( idle );
|
||||
}
|
||||
|
|