コード例 #1
0
ファイル: ACWGame.cs プロジェクト: Numprt/Alien_Banjos
        public ACWGame()
        {
            //Create the graphics manager and configue it.
            #region Graphics Manager Initialisation
            graphics = new GraphicsDeviceManager(this);

            graphics.PreferredBackBufferWidth = WIDTH;
            graphics.PreferredBackBufferHeight = HEIGHT;
            graphics.IsFullScreen = FULLSCREEN;

            graphics.ApplyChanges();
            #endregion

            //Configure the Content directory for assets.
            Content.RootDirectory = "Content";

            backgroundRect = new Rectangle(0, 0, WIDTH, HEIGHT);

            currentState = new MainMenuState(this);
            //currentState = new GameState(this, gameSeed);
        }
コード例 #2
0
ファイル: ACWGame.cs プロジェクト: Numprt/Alien_Banjos
 /**
  * This is used to change the current state of the game.
  */
 public void SetState(State s)
 {
     if (ACWGame.SOUND_ENABLED) ResourceManager.blip.Play();
     currentState = s;
 }