コード例 #1
0
ファイル: Program.cs プロジェクト: MhdAljuboori/3DPlaneGame
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Game1 game = new Game1())
     {
         game.Run();
     }
 }
コード例 #2
0
 public void SetData(string main, Game1.GameState currGameState)
 {
     textToDraw = main;
     this.currentGameState = currGameState;
     switch (currentGameState)
     {
         case Game1.GameState.START:
         case Game1.GameState.LEVEL_CHANGE:
             secondaryTextToDraw = "Press ENTER to begin";
             break;
         case Game1.GameState.END:
             secondaryTextToDraw = "Press ENTER to quit";
             break;
     }
 }