Beispiel #1
0
        private void Button1_Click(object sender, EventArgs e)
        {
            //MessageBox.Show(counter.ToString());

            GameLoop gl = new GameLoop();

            gl.Stop();
        }
Beispiel #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            Rectangle resolution = Screen.PrimaryScreen.Bounds;

            // Initialize Game
            Game myGame = new Game();

            myGame.Resolution = new Size(resolution.Width, resolution.Height);

            // Initialize & Start GameLoop
            gameLoop = new GameLoop();
            gameLoop.Load(myGame);
            gameLoop.Start();

            // Start Graphics Timer
            graphicsTimer.Start();
        }