예제 #1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (GettingStartedGame game = new GettingStartedGame())
     {
         game.Run();
     }
 }
예제 #2
0
파일: Camera.cs 프로젝트: hjc1710/Golf-Game
 /// <summary>
 /// Constructs a new camera.
 /// </summary>
 /// <param name="game">Game that this camera belongs to.</param>
 /// <param name="position">Initial position of the camera.</param>
 /// <param name="speed">Initial movement speed of the camera.</param>
 public Camera(GettingStartedGame game, Vector3 position, float speed)
 {
     Game = game;
     Position = position;
     Speed = speed;
     ProjectionMatrix = Matrix.CreatePerspectiveFieldOfView(MathHelper.PiOver4, 4f / 3f, .1f, 10000.0f);
     Mouse.SetPosition(200, 200);
 }
예제 #3
0
 /// <summary>
 /// Constructs a new camera.
 /// </summary>
 /// <param name="game">Game that this camera belongs to.</param>
 /// <param name="position">Initial position of the camera.</param>
 /// <param name="speed">Initial movement speed of the camera.</param>
 public Camera(GettingStartedGame game, Vector3 position, float speed)
 {
     Game             = game;
     Position         = position;
     Speed            = speed;
     ProjectionMatrix = Matrix.CreatePerspectiveFieldOfViewRH(MathHelper.PiOver4, 4f / 3f, .1f, 10000.0f);
     Mouse.SetPosition(200, 200);
 }