Advertisement
progrmor

Untitled

May 11th, 2014
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. import com.badlogic.gdx.Gdx;
  2. import com.badlogic.gdx.graphics.Texture;
  3. import com.badlogic.gdx.graphics.Texture.TextureFilter;
  4.  
  5. public class AssetLoader {
  6.  
  7. public static Texture ball, enemy, background;
  8.  
  9. public static void load()
  10. {
  11. background = new Texture(Gdx.files.internal("assets/background.png"));
  12. background.setFilter(TextureFilter.Nearest, TextureFilter.Nearest);
  13.  
  14. ball = new Texture(Gdx.files.internal("assets/ball.png"));
  15. ball.setFilter(TextureFilter.Nearest, TextureFilter.Nearest);
  16.  
  17.  
  18.  
  19. }
  20.  
  21. public static void dispose()
  22. {
  23. background.dispose();
  24. ball.dispose();
  25.  
  26. }
  27.  
  28.  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement