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