v0.3.2: finished spritework for rot garden, png optimization

This commit is contained in:
Evan Debenham 2015-10-22 17:19:17 -04:00
parent 705a0f3966
commit 2c3b12a1a7
6 changed files with 12 additions and 7 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 276 B

After

Width:  |  Height:  |  Size: 766 B

View File

@ -63,6 +63,11 @@ public class RotHeartSprite extends MobSprite {
}
}
@Override
public void turnTo(int from, int to) {
//do nothing
}
@Override
public void update() {

View File

@ -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 );
}