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