//EnemyManager _enemyManager; public Level(Input input, TextureManager textureManager, PersistantGameData gameData, Engine.Font generalFont, Engine.Font titleFont, Size windowSize) { //_testSprite.Texture = textureManager.Get("explosion"); //_testSprite.SetAnimation(4, 4); _input = input; _gameData = gameData; _textureManager = textureManager; _effectsManager = new EffectsManager(_textureManager); _background = new Background(textureManager.Get("background")); //_background.Speed = 0.15f; widthScale2 = _windowSize.Width / 900.0; heightScale2 = _windowSize.Height / 695.0; _background.SetScale(2.0, 2.0); //_backgroundLayer = new Background(textureManager.Get("background_layer_1")); //_backgroundLayer.Speed = 0.1f; //_backgroundLayer.SetScale(2.0, 2.0); m_ChessBoard = Form1.InitChessBoard; _chessBoard = new ChessBoard(_textureManager, _moveChessManager); //_system = system; //_input = input; _generalFont = generalFont; _titleFont = titleFont; settingChecked = SettingMenu(); Option optionChecked = OptionMenu(); Engines engineChecked = EngineMenu(); _enginemenu._rvdisable = true; _optiontitle = new Text("选项", _titleFont); _optiontitle.SetColor(new Color(0, 0, 0, 1)); //Center on the x and place somewhere near the top _optiontitle.SetPosition(-_optiontitle.Width / 2 - 450, 300); //EngineMenu(); _optiontitle = new Text("引擎", _titleFont); _optiontitle.SetColor(new Color(0, 0, 0, 1)); // Center on the x and place somewhere near the top _optiontitle.SetPosition(-_optiontitle.Width / 2 + 450, 300); //_enemyManager = new EnemyManager(_textureManager, _effectsManager, _bulletManager, _playerCharacter, -1300); }
public GameOverState(PersistantGameData data, StateSystem system, Input input, Font generalFont, Font titleFont) { _gameData = data; _system = system; _input = input; _generalFont = generalFont; _titleFont = titleFont; _titleWin = new Text("游戏结束", _titleFont); _blurbWin = new Text("恭喜你赢了!", _generalFont); _titleLose = new Text("游戏结束!", _titleFont); _blurbLose = new Text("请再接再励...", _generalFont); FormatText(_titleWin, 300); FormatText(_blurbWin, 200); FormatText(_titleLose, 300); FormatText(_blurbLose, 200); }
public InnerGameState(StateSystem system, Input input, TextureManager textureManager, PersistantGameData gameData, Font generalFont, Font titleFont, Size windowSize) { _input = input; _system = system; _gameData = gameData; _generalFont = generalFont; _textureManager = textureManager; _titleFont = titleFont; _windowSize = windowSize; OnGameStart(); }