// Path: core/src/com/github/fauu/helix/screen/Overworld.java
// public class Overworld implements Screen {
// 
//   private World world;
// 
//   private HelixCamera camera;
// 
//   private AssetManager assetManager;
// 
//   public Overworld() {
//     assetManager = new AssetManager();
// 
//     camera = new HelixCamera(30, new Vector3(16, 16, 0), .1f, 35);
// 
//     WorldConfiguration worldConfiguration 
//         = new WorldConfiguration().register(assetManager)
//                                   .register(camera);
// 
//     world = new World(worldConfiguration);
// 
//     world.setSystem(new PlayerMovementSystem());
//     world.setSystem(new CameraClientsUpdateSystem());
//     world.setSystem(new AnimationProcessingSystem());
//     world.setSystem(new RenderingSystem());
//     world.setSystem(new ScreenFadingSystem());
// 
//     world.setManager(new UuidEntityManager());
//     world.setManager(new TextureManager());
//     world.setManager(new GroupManager());
//     world.setManager(new TagManager());
//     world.setManager(new AreaManager());
//     world.setManager(new PlayerManager());
//     world.setManager(new LocalAmbienceManager());
//     world.setManager(new WeatherMan());
//     world.initialize();
// 
//     world.getManager(WeatherMan.class)
//          .setToType(WeatherMan.WeatherType.SUNNY);
//     world.getManager(AreaManager.class).load("area1");
//     // Temporary
//     world.getManager(LocalAmbienceManager.class)
//          .setAmbience(world.getManager(WeatherMan.class).getWeather());
//   }
// 
//   @Override
//   public void render(float delta) {
//     world.setDelta(delta);
//     world.process();
//   }
// 
//   @Override
//   public void resize(int width, int height) { }
// 
//   @Override
//   public void show() { }
// 
//   @Override
//   public void hide() { }
// 
//   @Override
//   public void pause() { }
// 
//   @Override
//   public void resume() { }
// 
//   @Override
//   public void dispose() {
//     assetManager.dispose();
//   }
// 
// }


import com.github.fauu.helix.screen.Overworld;
import com.badlogic.gdx.Game;
/*
 * Copyright (C) 2014-2016 Helix Engine Developers 
 * (http://github.com/fauu/HelixEngine)
 *
 * This software is licensed under the GNU General Public License
 * (version 3 or later). See the COPYING file in this distribution.
 *
 * You should have received a copy of the GNU Library General Public License
 * along with this software. If not, see <http://www.gnu.org/licenses/>.
 *
 * Authored by: Piotr Grabowski <fau999@gmail.com>
 */

package com.github.fauu.helix;


public class HelixGame extends Game {

  private static HelixGame instance;

  @Override
  public void create () {
    instance = this;

// Path: core/src/com/github/fauu/helix/screen/Overworld.java
// public class Overworld implements Screen {
// 
//   private World world;
// 
//   private HelixCamera camera;
// 
//   private AssetManager assetManager;
// 
//   public Overworld() {
//     assetManager = new AssetManager();
// 
//     camera = new HelixCamera(30, new Vector3(16, 16, 0), .1f, 35);
// 
//     WorldConfiguration worldConfiguration 
//         = new WorldConfiguration().register(assetManager)
//                                   .register(camera);
// 
//     world = new World(worldConfiguration);
// 
//     world.setSystem(new PlayerMovementSystem());
//     world.setSystem(new CameraClientsUpdateSystem());
//     world.setSystem(new AnimationProcessingSystem());
//     world.setSystem(new RenderingSystem());
//     world.setSystem(new ScreenFadingSystem());
// 
//     world.setManager(new UuidEntityManager());
//     world.setManager(new TextureManager());
//     world.setManager(new GroupManager());
//     world.setManager(new TagManager());
//     world.setManager(new AreaManager());
//     world.setManager(new PlayerManager());
//     world.setManager(new LocalAmbienceManager());
//     world.setManager(new WeatherMan());
//     world.initialize();
// 
//     world.getManager(WeatherMan.class)
//          .setToType(WeatherMan.WeatherType.SUNNY);
//     world.getManager(AreaManager.class).load("area1");
//     // Temporary
//     world.getManager(LocalAmbienceManager.class)
//          .setAmbience(world.getManager(WeatherMan.class).getWeather());
//   }
// 
//   @Override
//   public void render(float delta) {
//     world.setDelta(delta);
//     world.process();
//   }
// 
//   @Override
//   public void resize(int width, int height) { }
// 
//   @Override
//   public void show() { }
// 
//   @Override
//   public void hide() { }
// 
//   @Override
//   public void pause() { }
// 
//   @Override
//   public void resume() { }
// 
//   @Override
//   public void dispose() {
//     assetManager.dispose();
//   }
// 
// }


// Path: core/src/com/github/fauu/helix/HelixGame.java
import com.github.fauu.helix.screen.Overworld;
import com.badlogic.gdx.Game;

/*
 * Copyright (C) 2014-2016 Helix Engine Developers 
 * (http://github.com/fauu/HelixEngine)
 *
 * This software is licensed under the GNU General Public License
 * (version 3 or later). See the COPYING file in this distribution.
 *
 * You should have received a copy of the GNU Library General Public License
 * along with this software. If not, see <http://www.gnu.org/licenses/>.
 *
 * Authored by: Piotr Grabowski <fau999@gmail.com>
 */

package com.github.fauu.helix;


public class HelixGame extends Game {

  private static HelixGame instance;

  @Override
  public void create () {
    instance = this;

    setScreen(new Overworld());