public GamePage() { this.InitializeComponent(); // Create the game. var launchArguments = string.Empty; _game = MonoGame.Framework.XamlGame<Game1>.Create(launchArguments, Window.Current.CoreWindow, swapChainPanel); }
static void Main() { using (var game = new Game1()) game.Run(); }
public Camera(Game1 game, Vector3 position, Vector3 target, Vector3 up) : base(game) { view = Matrix.CreateLookAt(position,target,up); projection =Matrix.CreatePerspectiveFieldOfView(MathHelper.PiOver4,(float)Game.Window.ClientBounds.Width/(float)Game.Window.ClientBounds.Height,1,100); }