/// <summary> /// Initializes a new instance of the <see cref="GameForm"/> class. /// </summary> public GameForm(DemoGame game) { DisposeGameOnClose = true; _game = game; InitializeComponent(); // Set up our form ClientSize = new Size((int)GameData.ScreenSize.X, (int)GameData.ScreenSize.Y); SetStyle(ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.Opaque, true); }
static void Main() { log.Info("Starting client..."); ThreadAsserts.IsMainThread(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // Try to copy dev content over CopyContent(); // Start the game using (var game = new DemoGame()) { game.Run(); } }