public GameWorld(MainGame _game) { initPreferences(); Gdx.app.setLogLevel(Application.LOG_DEBUG); game = _game; registerKryo(); otherPlayers = new ArrayList<CharacterInstance>(); mobs = new ArrayList<MobInstance>(); initMusic(); game.setScreen(new LoginScreen(this)); startNetworkClient(); timer = new Timer(); selectedMaterial = new Material(ColorAttribute.createDiffuse(new Color(0.7f, 0.7f, 0.7f, 1))); }
private GameScreen getCurrentScreen() { GameScreen current = (GameScreen) game.getScreen(); return current; }