@Override public void draw(Graphics g) { super.draw(g); AffineTransform at = new AffineTransform(); at.setTransform(scaler.getScale(), 0, 0, scaler.getScale(), 0, 0); anim.setAffineTransform(at); anim.draw(g); }
@Override public void init() throws EInitException { super.init(); anim = AnimationFactory.createAnimation(null, "animations\\test\\imageresize.xml", 1000); anim.setContainer(new Anim()); timer.start(); }
@Override public void update(long gameTime) { super.update(gameTime); anim.update(gameTime); }