Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. public static ISpriteSheet houses = new ISpriteSheet("/res/houses.png", 56, 71);
  2.  
  3. private SpriteSheet sheet;
  4.  
  5. public ISpriteSheet(String path, int width, int height) {
  6. try {
  7. sheet = new SpriteSheet(path, width, height);
  8. } catch (SlickException e) {
  9. e.printStackTrace();
  10. }
  11. }
  12.  
  13. public Image getSubImage(int x, int y) {
  14. return sheet.getSubImage(x, y);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement