示例#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");
 }
示例#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");
 }
示例#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();
 }
示例#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();
 }