Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
        /// <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);
        }
Esempio n. 3
0
        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();
            }
        }
Esempio n. 4
0
        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();
            }
        }