コード例 #1
0
ファイル: Game1.cs プロジェクト: AdrianPaiva/Match-It-Windows
 public void quitGame()
 {
     startScreen = new StartScreen(this);
     currentScreen = Screen.StartScreen;
     gameScreen = null;
     scoreboardScreen = null;
 }
コード例 #2
0
ファイル: Game1.cs プロジェクト: AdrianPaiva/Match-It-Windows
 public void startScoreBoard()
 {
     scoreboardScreen = new ScoreboardScreen(this);
     currentScreen = Screen.ScoreboardScreen;
     startScreen = null;
 }
コード例 #3
0
ファイル: Game1.cs プロジェクト: AdrianPaiva/Match-It-Windows
 public void startGame()
 {
     gameScreen = new GameScreen(this);
     currentScreen = Screen.GameScreen;
     startScreen = null;
 }
コード例 #4
0
ファイル: Game1.cs プロジェクト: AdrianPaiva/Match-It-Windows
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            startScreen = new StartScreen(this);
            currentScreen = Screen.StartScreen;
            // TODO: use this.Content to load your game content here
        }