Package org.newdawn.slick

Examples of org.newdawn.slick.Animation.draw()


  public void render(Graphics g)
  {
    for (int i = 0; i < light_anim.size(); ++i)
    {
      Animation anim = light_anim.get(i);
      anim.draw(x-width/2+(i==0?9:9+i*5), GameplayState.ground_level+19+(i==0||i==light_anim.size()-1?0:11));
    }
  }
 
 
}
View Full Code Here


        ypos = y - (hhalf * scale);
      }
      if (angle != 0) {
        g.rotate(x, y, angle);
      }
      anim.draw(xpos, ypos, w * scale, h * scale, color);
      if (angle != 0)
        g.resetTransform();
    } else if (currentImage != null) {
      currentImage.setAlpha(color.a);
      int w = currentImage.getWidth() / 2;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.