private void Form1_Paint(object sender, PaintEventArgs e) { Graphics g = e.Graphics; game.Draw(g); if (gameOver) { DrawGameOver(g); } // end if }
private void pictureBox1_Paint(object sender, PaintEventArgs e) { game.Draw(e.Graphics); }
private void Form1_Paint(object sender, PaintEventArgs e) { game.Draw(e.Graphics); }