Example #1
0
  public void stopGame() {

    // Remove world
    if (gameObjects != null) {
      for (Entity e : gameObjects) {
        Physics.world.destroyBody(e.getBody());
      }
    }

    Sound.stopAllMusic();
    Sound.stopAllSounds();
  }