public GamePage()
        {
            this.InitializeComponent();

            // Create the game.
            var launchArguments = string.Empty;
            _game = MonoGame.Framework.XamlGame<Game1>.Create(launchArguments, Window.Current.CoreWindow, swapChainPanel);
        }
示例#2
0
 static void Main()
 {
     using (var game = new Game1())
         game.Run();
 }
示例#3
0
 static void Main()
 {
     using (var game = new Game1())
         game.Run();
 }
示例#4
0
文件: Camera.cs 项目: HeatherXi/QiXi-
 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);
 }