Merging 1.9.1 source: sprite changes
This commit is contained in:
committed by
Evan Debenham
parent
e65602dba0
commit
d894c7297f
@@ -43,6 +43,7 @@ public class HeroSprite extends CharSprite {
|
||||
private static TextureFilm tiers;
|
||||
|
||||
private Animation fly;
|
||||
private Animation read;
|
||||
|
||||
public HeroSprite() {
|
||||
super();
|
||||
@@ -81,6 +82,9 @@ public class HeroSprite extends CharSprite {
|
||||
|
||||
fly = new Animation( 1, true );
|
||||
fly.frames( film, 18 );
|
||||
|
||||
read = new Animation( 20, false );
|
||||
read.frames( film, 19, 20, 20, 20, 20, 20, 20, 20, 20, 19 );
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -104,6 +108,17 @@ public class HeroSprite extends CharSprite {
|
||||
play( fly );
|
||||
}
|
||||
|
||||
public void read() {
|
||||
animCallback = new Callback() {
|
||||
@Override
|
||||
public void call() {
|
||||
idle();
|
||||
ch.onOperateComplete();
|
||||
}
|
||||
};
|
||||
play( read );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update() {
|
||||
sleeping = ch.isAlive() && ((Hero)ch).resting;
|
||||
|
||||
Reference in New Issue
Block a user