public void ShowScene() { brush1.Color = Color.Black; DBgrfx.FillRectangle(brush1, new Rectangle(0, 0, this.Width, this.Height)); maze.DrawMaze(DBgrfx); RGhost.DrawItem(DBgrfx); YGhost.DrawItem(DBgrfx); BGhost.DrawItem(DBgrfx); PGhost.DrawItem(DBgrfx); Pman.DrawItem(DBgrfx); DBgrfx.DrawString("Score:" + Pman.GetScore(), text, new SolidBrush(Color.White), 0, 650); DBgrfx.DrawString("Ammo:" + Pman.GetAmmo(), text, new SolidBrush(Color.White), 500, 650); DBgrfx.DrawString("Tries:" + Pman.GetTries(), text, new SolidBrush(Color.White), 265, 650); if (ShootOnce) { bullet.DrawItem(DBgrfx); } try { grfx.DrawImage(BackBuffer, 0, 0); } catch { DrawingTimer.Stop(); } }