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