Esempio n. 1
0
 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");
 }
Esempio n. 2
0
 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");
 }
Esempio n. 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();
 }
Esempio n. 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();
 }