private void Button1_Click(object sender, EventArgs e) { //MessageBox.Show(counter.ToString()); GameLoop gl = new GameLoop(); gl.Stop(); }
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(); }