} // panel code found online to fix graphic glitches private void pbCanvas_Paint_1(object sender, PaintEventArgs e) { for (int y = 0; y < Bullets.Count; y++) { Bullets[y].Draw(e); } for (int q = 0; q < EnemyBullets.Count; q++) { EnemyBullets[q].Draw(e); } for (int i = 0; i < Enemies.Count; i++) { Enemies[i].Draw(e); } Player.Draw(e); for (int t = 0; t < BarrierList.Count; t++) { BarrierList[t].Draw(e); } e.Graphics.DrawString("Score = " + Player.Score.ToString(), new System.Drawing.Font("Akbar", 16), Brushes.Green, 10, 10); e.Graphics.DrawString("Lives = ", new System.Drawing.Font("Akbar", 16), Brushes.Green, 600, 10); } // paint code