예제 #1
0
  @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);
  }
예제 #2
0
  @Override
  public void init() throws EInitException {
    super.init();
    anim = AnimationFactory.createAnimation(null, "animations\\test\\imageresize.xml", 1000);
    anim.setContainer(new Anim());

    timer.start();
  }
예제 #3
0
 @Override
 public void update(long gameTime) {
   super.update(gameTime);
   anim.update(gameTime);
 }