Exemple #1
0
        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);
        }
Exemple #2
0
 public static void Initialize()
 {
     SimManager = new SimulationManager();
     Server     = new Server();
 }