public Camera(Game game) { topDownPos = new Vector3(0, 80, -1); Instance = this; _nearClip = 1.0f; _farClip = 2000.0f; _viewAngle = MathHelper.Pi / 3; _cameraPosition = topDownPos; _aspectRatio = (float)game.GraphicsDevice.Viewport.Width / game.GraphicsDevice.Viewport.Height; }
//Load graphics content protected override void LoadContent() { string asset; for (int i = 0; i < preloadAssets.Length; i++) { asset = preloadAssets[i]; Content.Load<object>(asset); } camera = new Camera(this); }