//const double TIMEOUT = 4; //double _countDown = TIMEOUT; public InnerGameState(StateSystem system, Input input, PersistantGameData gameData, Killer1.Font generalFont, TextureManager textureManager, SoundManager soundManager) { _system = system; _input = input; _gameData = gameData; _generalFont = generalFont; _textureManager = textureManager; _effectsManager = new EffectsManager(_textureManager); _soundManager = soundManager; _playerCharacter = new PlayerCharacter(_textureManager, _bulletManager, _soundManager, _effectsManager); _playerCharacter.MissleAmmo = 10; OnGameStart(); }
public StartMenuState(Killer1.Font titleFont, Killer1.Font generalFont, Killer1.Font computerFont, Input input, StateSystem system, PersistantGameData gameData) { _system = system; _generalFont = generalFont; _computerFont = computerFont; _input = input; _gameData = gameData; InitializeMenu(); _title = new Text("Shooter", _computerFont); _title.SetColor(new Color(0, 0, 0, 1)); _title.SetPosition(_title.Width + 340, 300); }
public GameOverState(PersistantGameData gameData, StateSystem system, Input input, Font generalFont, Font titleFont) { _gameData = gameData; _system = system; _input = input; _generalFont = generalFont; _titleFont = titleFont; _titleWin = new Text("Complete!", _titleFont); _blurbWin = new Text("Congratulations, you won!", _generalFont); _titleLose = new Text("Game Over!", _titleFont); _blurbLose = new Text("Please try again...", _generalFont); FormatText(_titleWin, 300); FormatText(_blurbWin, 200); FormatText(_titleLose, 300); FormatText(_blurbLose, 200); }