title: Assets in Libgdx
body: <p>This is my way to deal with assets</p>
  
  <p>I have Assets class which has assetsManager and only Strings of files path</p>
  
  <pre><code>public class Assets {
      public static AssetManager manager = new AssetManager();
      public static final String background = "bg.png";
      public static final String menu = "menu/menu.atlas";
  
      public static Texture getTexture(String name) {
          return manager.get(name, Texture.class);
      }
  
      public static TextureAtlas getTextureAtlas(String name) {
          return manager.get(name, TextureAtlas.class);
      }
  
      public static void dispose() {
          manager.clear();
      }
  }
  </code></pre>
  
  <p>In Screen I load Assets</p>
  
  <pre><code>public class MenuScreen implements Screen {
      public void show() {
          //load assets
          Assets.manager.load(Assets.background, Texture.class);
          Assets.manager.load(Assets.menu, TextureAtlas.class);
          Assets.manager.finishLoading();
      }
  }
  </code></pre>
  
  <p>when I use them I do this</p>
  
  <pre><code>Texture background = Assets.getTexture(Assets.background);
  </code></pre>
  
  <p>I call dispose in Game Class only</p>
  
  <pre><code>public class GameMain extends Game{
      @Override
      public void dispose() {
          super.dispose();
          Assets.dispose();
      }
  }
  </code></pre>
  
  <p>My question :</p>
  
  <p>Is this a proper way to manage assets or am I doing anything wrong ?</p>
  
  <p>Another question I have a stage (which have actors which use textureRegions)</p>
  
  <p>In PlayScreen to dispose it(with its textures) I call stage.dispose() only</p>
  
  <pre><code>public class PlayScreen implements Screen{
  
  @Override
      public void dispose() {
          stage.dispose();
      }
  }
  </code></pre>
  
  <p>Is this proper or not ?</p>