protected override void Initialize() { base.Initialize(); // Setup graphics device settings _graphics.PreferMultiSampling = true; _graphics.PreferredBackBufferWidth = 1600; _graphics.PreferredBackBufferHeight = 900; GraphicsDevice.PresentationParameters.MultiSampleCount = 4; _graphics.ApplyChanges(); // Initialize the custom input manager InputManager.Initialize(); // Create the camera CameraManager.Set(new ArcBallCamera(GraphicsDevice, distance: 200f, yaw: 45f, pitch: 35f), new ArcBallCameraBehavior()); (CameraManager.ActiveCamera as ArcBallCamera).MinDistance = 50f; // Setup the network stuff _client = new Client(); // Create the simulation _simManager = new SimulationManager(GraphicsDevice, Content); }
public static void Initialize() { SimManager = new SimulationManager(); Server = new Server(); }