示例#1
0
 public IntroState(GameStateManager stateManager, Game game)
 {
     this.game = game;
     this.stateManager = stateManager;
     stringFormat.Alignment = StringAlignment.Center;
     stringFormat.LineAlignment = StringAlignment.Center;
 }
示例#2
0
 public MainState(GameStateManager stateManager, Game game, LevelManager levelManager)
 {
     this.stateManager = stateManager;
     this.game = game;
     this.levelManager = levelManager;
     currentLevel = levelManager.GetLevel(0);
 }
示例#3
0
 public LevelWonState(GameStateManager stateManager, Game game, LevelManager levelManager)
 {
     this.game = game;
     this.stateManager = stateManager;
     this.levelManager = levelManager;
     stringFormat.Alignment = StringAlignment.Center;
     stringFormat.LineAlignment = StringAlignment.Center;
 }
示例#4
0
        public MenuState(GameStateManager stateManager, Game game, LevelManager levelManager)
        {
            this.game = game;
            this.stateManager = stateManager;
            this.levelManager = levelManager;
            stringFormat.Alignment = StringAlignment.Center;
            stringFormat.LineAlignment = StringAlignment.Center;

            menuForm = new Form();
            menuForm.Size = new Size(300, 300);
        }
示例#5
0
 public EndState(Game game)
 {
     this.game = game;
 }
示例#6
0
 internal GameLoop(Game game, GameStateManager stateManager)
 {
     this.game = game;
     this.stateManager = stateManager;
 }