/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (GameController game = new GameController()) { 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(GameController game, Vector3 position, float speed) { Game = game; Position = position; Speed = speed; Mouse.SetPosition(200, 200); }
/// <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 RTSCamera(GameController game, Vector3 position, float speed, float _pitch) { Game = game; Position = position; Speed = speed; Pitch = _pitch; Mouse.SetPosition(200, 200); }