public IntroState(GameStateManager stateManager, Game game) { this.game = game; this.stateManager = stateManager; stringFormat.Alignment = StringAlignment.Center; stringFormat.LineAlignment = StringAlignment.Center; }
public MainState(GameStateManager stateManager, Game game, LevelManager levelManager) { this.stateManager = stateManager; this.game = game; this.levelManager = levelManager; currentLevel = levelManager.GetLevel(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; }
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); }
public EndState(Game game) { this.game = game; }
internal GameLoop(Game game, GameStateManager stateManager) { this.game = game; this.stateManager = stateManager; }