public GameGrid(int w, int h, Cell [,] grid,
                 GraphicsDevice graphics,
                 SpriteBatch spriteBatch,
                 MacGame game)
 {
     m_spriteBatch = spriteBatch;
     m_graphics    = graphics;
     m_Width       = w;
     m_Height      = h;
     m_Grid        = grid;
     texture       = game.Content.Load <Texture2D>("alive");
     dead          = game.Content.Load <Texture2D>("dead");
 }
 public GameGrid(int w, int h,Cell [,] grid, 
                 GraphicsDevice graphics, 
                 SpriteBatch spriteBatch,
                 MacGame game)
 {
     m_spriteBatch = spriteBatch;
     m_graphics = graphics;
     m_Width = w;
     m_Height = h;
     m_Grid = grid;
     texture = game.Content.Load<Texture2D>("alive");
     dead = game.Content.Load<Texture2D>("dead");
 }
Exemple #3
0
 /// <summary>
 /// Called when Mac app is finished launching.
 /// </summary>
 /// <param name='notification'>
 /// Notification.
 /// </param>
 public override void FinishedLaunching(NSObject notification)
 {
     game = new MacGame();
     game.Run();
 }
Exemple #4
0
 /// <summary>
 /// Called when Mac app is finished launching.
 /// </summary>
 /// <param name='notification'>
 /// Notification.
 /// </param>
 public override void FinishedLaunching(NSObject notification)
 {
     game = new MacGame();
     game.Run();
 }