Example #1
0
 public GameState(Game1 game, string name, GameStateManager stateManager)
 {
     Game = game;
     Name = name;
     StateManager = stateManager;
     IsInitialized = false;
     TransitionValue = 0.0f;
     Transitioning = TransitionMode.Entering;
 }
Example #2
0
 public PlayState(Game1 game, GameStateManager GSM)
     : base(game, "PlayState", GSM)
 {
 }
Example #3
0
 public WinState(Game1 game, GameStateManager GSM, PlayState play)
     : base(game, "PlayState", GSM)
 {
     Play = play;
     SpriteBatch = new SpriteBatch(Game.GraphicsDevice);
 }
Example #4
0
 public Game1()
 {
     graphics = new GraphicsDeviceManager(this);
     Content.RootDirectory = "Content";
     StateManager = new GameStateManager(this);
 }