package starpunk;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
import java.util.HashMap;
import java.util.Map;

public final class AssetManager
{
  private final HashMap<String, TextureAtlas.AtlasRegion> _sprites = new HashMap<String, TextureAtlas.AtlasRegion>();
  private final HashMap<String, TextureAtlas> _textures = new HashMap<String, TextureAtlas>();

  protected void initialize()
  {
    final String textureName = "target/assets/game";
    final TextureAtlas textureAtlas = new TextureAtlas( Gdx.files.internal( textureName ) );
    for( final TextureAtlas.AtlasRegion r : textureAtlas.getRegions() )
    {
      _sprites.put( r.name, r );
    }
    _textures.put( textureName, textureAtlas );
  }

  protected void dispose()
  {
    for( final Map.Entry<String, TextureAtlas> entry : _textures.entrySet() )
    {
      entry.getValue().dispose();
    }
    _textures.clear();
    _sprites.clear();
  }

  public TextureAtlas.AtlasRegion getSprite( final String name )
  {
    return _sprites.get( name );
  }
}

@@ -82,104 +82,368 @@
 g2d.
-TextureAtlas;%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0Apublic final class AssetManager%0A%7B
+BitmapFont;%0Aimport com.badlogic.gdx.graphics.g2d.TextureAtlas;%0Aimport com.badlogic.gdx.graphics.g2d.stbtt.TrueTypeFontFactory;%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0Apublic final class AssetManager%0A%7B%0A  private static final String FONT_CHARACTERS =%0A    %22abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789%5D%5B_!$%25#@%7C%5C%5C/?-+=()*&.;,%7B%7D%5C%22%C2%B4%60'%3C%3E%22;%0A
 %0A  p
@@ -651,16 +651,44 @@
 tlas%3E();
+%0A  private BitmapFont _font;
 %0A%0A  prot
@@ -1025,16 +1025,510 @@
 Atlas );
+%0A%0A    _font = TrueTypeFontFactory.createBitmapFont( Gdx.files.internal( %22src/main/resources/psihoepatesaltern8.ttf%22 ),%0A                                                  FONT_CHARACTERS,%0A                                                  100,%0A                                                  100,%0A                                                  1.0f,%0A                                                  StarPunkGame.WIDTH,%0A                                                  StarPunkGame.HEIGHT );
 %0A  %7D%0A%0A  
@@ -1725,16 +1725,94 @@
 lear();%0A
+    _font.dispose();%0A  %7D%0A%0A  public BitmapFont getFont()%0A  %7B%0A    return _font;%0A
   %7D%0A%0A  p

Add In a font asset