}
@Override
protected void onAdd() {
// Get animations from library
Library l = getStage().getLibrary();
for (String direction : DIRECTIONS) {
for (String type : TYPES) {
String end = type + direction;
animations.put(end, l.findImage(prefix + end).getFrames(frameWidth));
}
}
animation.setAnimation(animations.get("-stand-right"), STEPS_PER_FRAME);
}