sprites.java :  » Java-2D » polhemthegame » loader » Java Open Source

Java Open Source » Java 2D » polhemthegame 
polhemthegame » loader » sprites.java
package loader;

import org.newdawn.slick.SlickException;
import org.newdawn.slick.SpriteSheet;

public class sprites
{
  private sprites()
  {
  }

  public static SpriteSheet load_sprite( final String type, final String name, final int width, final int height )
      throws SlickException
  {
    return new SpriteSheet( file.relative_path( new String[] { "data", "textures", type }, name + ".png" ), width,
        height );
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.