private void InitializeFonts() { //Load Fonts _titleFont = new Killer1.Font(_textureManager.Get("title_font"), FontParser.Parse("Assets/title_font.fnt")); _generalFont = new Killer1.Font(_textureManager.Get("general_font"), FontParser.Parse("Assets/general_font.fnt")); _computerFont = new Killer1.Font(_textureManager.Get("computer_font2"), FontParser.Parse("Assets/computer_font2.fnt")); }
//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); }