package starpunk;

import com.badlogic.gdx.Game;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import starpunk.screens.GameLoopScreen;
import starpunk.services.AssetManager;
import starpunk.services.MusicManager;
import starpunk.services.SoundManager;

public final class StarPunkGame
  extends Game
{
  public static final int WIDTH = 512;
  public static final int HEIGHT = 512;

  private final AssetManager _assetManager = new AssetManager();
  private final MusicManager _musicManager = new MusicManager();
  private final SoundManager _soundManager = new SoundManager();
  private static StarPunkGame c_game;

  public static StarPunkGame getGame()
  {
    return c_game;
  }

  StarPunkGame()
  {
    c_game = this;
  }

  @Override
  public void create()
  {
    log( "Creating game on " + Gdx.app.getType() );
    _assetManager.initialize();
    setScreen( new GameLoopScreen( this ) );
  }

  @Override
  public void dispose()
  {
    log( "Disposing game." );
    super.dispose();
    _musicManager.dispose();
    _assetManager.dispose();
  }

  public MusicManager getMusicManager()
  {
    return _musicManager;
  }

  public AssetManager getAssetManager()
  {
    return _assetManager;
  }

  public SoundManager getSoundManager()
  {
    return _soundManager;
  }

  @Override
  public void resize( final int width, final int height )
  {
    log( "Resizing game to: " + width + " x " + height );
    super.resize( width, height );
  }

  @Override
  public void pause()
  {
    log( "Pausing game" );
    super.pause();
  }

  @Override
  public void resume()
  {
    log( "Resuming game" );
    super.resume();
  }

  @Override
  public void setScreen( final Screen screen )
  {
    log( "Setting screen: " + screen.getClass().getSimpleName() );
    super.setScreen( screen );
  }

  private void log( final String message )
  {
    Gdx.app.log( getClass().getSimpleName(), message );
  }
}

@@ -1059,24 +1059,82 @@
 ose();%0A  %7D%0A%0A
+  public boolean isDebugMode()%0A  %7B%0A    return false;%0A  %7D%0A%0A
   public Mus

Add a debug flag