Example #1
0
        public TruckerX()
        {
            _graphics             = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";
            IsMouseVisible        = true;
            _graphics.PreferredBackBufferWidth  = 1280;
            _graphics.PreferredBackBufferHeight = 720;
            _graphics.PreferMultiSampling       = true;
            _graphics.ApplyChanges();
            Game = this;
            Window.AllowAltF4 = true;

            Window.AllowUserResizing  = true;
            Window.ClientSizeChanged += Window_ClientSizeChanged;

            WorldData.MakeConnections();
        }
Example #2
0
 static void Main()
 {
     using (var game = new TruckerX())
         game.Run();
 }