Esempio n. 1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Game1 game = new Game1())
     {
         game.Run();
     }
 }
Esempio n. 2
0
 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++;
     }
 }