Exemplo n.º 1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (MultithreadingGame game = new MultithreadingGame())
     {
         game.Run();
     }
 }
Exemplo n.º 2
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(MultithreadingGame 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);
 }