Exemplo 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");
 }
Exemplo 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");
 }
Exemplo 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();
 }
Exemplo 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();
 }