コード例 #1
0
ファイル: Program.cs プロジェクト: ashishdatta/OreganCraft
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Game1 game = new Game1())
     {
         game.Run();
     }
 }
コード例 #2
0
ファイル: CaManager.cs プロジェクト: ashishdatta/OreganCraft
 public void Initialize(GraphicsDevice graphicsDevice, Game1 game)
 {
     GraphicsManager = new CaGraphics(graphicsDevice);
     InputManager = new CaInput();
     InputManager.disableCursor = false; //Cursor is not disabled by default.
     GridManager = new CaGrid<NotMineCraft>(CaVars.Cell_Columns, CaVars.Cell_Rows,
                                     State.EMPTY, Color.White);
     myGame = game;
     System.Windows.Forms.MessageBox.Show("Welcome! Press O for instructions! Good Luck!"); //Starts Welcome sign.
     while (counter != 4)
     {
         AddGoldMines();
         AddForrest();
         counter++;
     }
 }