コード例 #1
0
 public InnerGameState(StateSystem system, Input input, TextureManager textureManager,
     PersistentGameData gameData)
 {
     _system = system;
     _input = input;
     _textureManager = textureManager;
     _gameData = gameData;
     OnGameStart();
 }
コード例 #2
0
        public GameOverState(PersistentGameData data, StateSystem system, Input input, Font generalFont, Font titleFont)
        {
            _gameData = data;
            _system = system;
            _input = input;
            Font generalFont1 = generalFont;
            Font titleFont1 = titleFont;

            _titleWin = new Text("Complete!", titleFont1);
            _blurbWin = new Text("Congratulations, you won!", generalFont1);
            _titleLose = new Text("Game Over!", titleFont1);
            _blurbLose = new Text("Please try again...", generalFont1);

            FormatText(_titleWin, 300);
            FormatText(_blurbWin, 200);

            FormatText(_titleLose, 300);
            FormatText(_blurbLose, 200);
        }