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(); }
static void Main() { using (var game = new TruckerX()) game.Run(); }