public SettingScreen(MyMainGame game) { // TODO Auto-generated constructor stub this.mGame = game; mBatch = new SpriteBatch(); String music = ""; String sound = ""; isSelected = false; GameUtils.setInputProcessor(mInput); if (GameUtils.getInstance().music) { music = "Music: ON"; } else { music = "Music: OFF"; } if (GameUtils.getInstance().sound) { sound = "Sound: ON"; } else { sound = "Sound: OFF"; } Gdx.graphics.setContinuousRendering(false); Gdx.graphics.requestRendering(); background = TextureManager.getInstance().textureBackgroundOutGame; selector = TextureManager.getInstance().textureMainMenuSelector; txtTitle = new TextWrapper("Settings", new Vector2(120, 520)); txtMusic = new TextWrapper(music, new Vector2(150, 450)); txtSound = new TextWrapper(sound, new Vector2(150, 400)); txtBack = new TextWrapper("Back", new Vector2(150, 350)); selector_Y = (int) txtMusic.position.y - 35; }
public ChooseLevel(MyMainGame game) { this.mGame = game; isSelected = false; mSpriteBatch = new SpriteBatch(); Gdx.graphics.setContinuousRendering(false); Gdx.graphics.requestRendering(); GameUtils.setInputProcessor(mInputP); mTextureBackground = TextureManager.getInstance().textureBackgroundOutGame; mTextureSelector = TextureManager.getInstance().textureMainMenuSelector; mTxtChooseTitle = new TextWrapper("Choose level", new Vector2(120, 520)); mTxtEasy = new TextWrapper("Easy", new Vector2(150, 450)); mTxtNormal = new TextWrapper("Normal", new Vector2(150, 400)); mTxtHard = new TextWrapper("Hard", new Vector2(150, 350)); mTxtExit = new TextWrapper("Back", new Vector2(150, 300)); selector_Y = (int) mTxtEasy.position.y - 35; }