/// <summary> /// Function that updates the Frame each tick /// </summary> public void UpdateFrame() { if (pictureBox1.Image != null) { pictureBox1.Image.Dispose(); } pictureBox1.Image = game.GetFrame(); }
/// <summary> /// Function that updates the Frame each tick /// </summary> public void UpdateFrame() { if (pictureBox1.Image != null) { pictureBox1.Image.Dispose(); } pictureBox1.Image = game.GetFrame(); }