Advertisement
MrPoxipol

[Java, libgdx] Resolution resolver libgdx

Aug 26th, 2014
511
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.74 KB | None | 0 0
  1.     public void createAssetsManager() {
  2.         // Choose best resolution
  3.         ResolutionFileResolver.Resolution _480x800 = new ResolutionFileResolver.Resolution(480, 800, "480x800");
  4.         ResolutionFileResolver.Resolution _720x1280 = new ResolutionFileResolver.Resolution(720, 1280, "720x1280");
  5.         ResolutionFileResolver.Resolution _1080x1920 = new ResolutionFileResolver.Resolution(1080, 1920, "1080x1920");
  6.         ResolutionFileResolver resolver = new ResolutionFileResolver(
  7.                 new InternalFileHandleResolver(),
  8.                 _480x800,
  9.                 _720x1280,
  10.                 _1080x1920
  11.         );
  12.         assets = new AssetManager(resolver);
  13.         //game.assets.load("badlogic.png", Texture.class);
  14.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement