package starpunk;

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

public final class AssetManager
{
  private static final String FONT_CHARACTERS =
    "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789][_!$%#@|\\/?-+=()*&.;,{}\"´`'<>";

  private final HashMap<String, TextureAtlas.AtlasRegion> _sprites = new HashMap<String, TextureAtlas.AtlasRegion>();
  private final HashMap<String, TextureAtlas> _textures = new HashMap<String, TextureAtlas>();
  private BitmapFont _font;

  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 );

    _font = TrueTypeFontFactory.createBitmapFont( Gdx.files.internal( "src/main/resources/psihoepatesaltern8.ttf" ),
                                                  FONT_CHARACTERS,
                                                  100,
                                                  100,
                                                  1.0f,
                                                  StarPunkGame.WIDTH,
                                                  StarPunkGame.HEIGHT );
  }

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

  public BitmapFont getFont()
  {
    return _font;
  }

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

@@ -41,16 +41,58 @@
 dx.Gdx;%0A
+import com.badlogic.gdx.graphics.Texture;%0A
 import c
@@ -132,16 +132,16 @@
 apFont;%0A
-
 import c
@@ -721,16 +721,47 @@
 t _font;
+%0A  private Texture _background;
 %0A%0A  prot
@@ -1589,24 +1589,201 @@
 e.HEIGHT );%0A
+    _background = new Texture( Gdx.files.internal( %22src/main/resources/planet.jpg%22 ) );%0A    _background.setFilter( Texture.TextureFilter.Linear, Texture.TextureFilter.Linear );%0A
   %7D%0A%0A  prote
@@ -1971,24 +1971,24 @@
 es.clear();%0A
-
     _font.di
@@ -1996,16 +1996,109 @@
 pose();%0A
+    _background.dispose();%0A  %7D%0A%0A  public Texture getBackground()%0A  %7B%0A    return _background;%0A
   %7D%0A%0A  p

Add a background texture