Пример #1
0
        protected override void Initialize()
        {
            graphics.PreferredBackBufferWidth = 800;
             graphics.PreferredBackBufferHeight = 600;
             graphics.IsFullScreen = false;
             graphics.ApplyChanges();
             board = new Board();
             this.IsMouseVisible = true;
             Window.Title = "Lets Fold It!!";

             input = new InputHandler(this);
             camera = new Camera(this);

             base.Initialize();
        }
Пример #2
0
 /// <summary>
 /// Allows the game component to perform any initialization it needs to before starting
 /// to run.  This is where it can query for any required services and load content.
 /// </summary>
 public void Initialize(ref InputHandler inp)
 {
     base.Initialize();
     input = inp;
     InitializeCamera();
 }