public override void Draw(Graphics g) { if (backgroundImage != null) { g.DrawImage(backgroundImage, -(int)(MyAPI.GamePanelX * 1.0), 0, 1400, 600); } for (int i = 0; i < plants.Count; i++) { Plant p = (Plant)plants[i]; p.Draw(g); } for (int i = 0; i < zombies.Count; i++) { Zombie zombie = (Zombie)zombies[i]; zombie.Draw(g); } for (int i = 0; i < cleaners.Count; i++) { Cleaner c = (Cleaner)cleaners[i]; c.Draw(g); } for (int i = 0; i < plantscards.Count; i++) { PlantCard pc = (PlantCard)plantscards[i]; pc.Draw(g); } for (int i = 0; i < bullets.Count; i++) { //Bullet b = (Bullet)bullets[i]; ((Bullet)bullets[i]).Draw(g); } for (int i = 0; i < suns.Count; i++) { Sun sun = (Sun)suns[i]; sun.Draw(g); } if (pb.IsAcitive != false) { pb.Draw(g); } if (shovel != null) { shovel.Draw(g); } if (sunBoard != null) { sunBoard.Draw(g); } if (noticeImage != null) { g.DrawImage(noticeImage, 900 / 2 - noticeImage.Width / 2 + 120, 600 / 2 - noticeImage.Height / 2, noticeImage.Width, noticeImage.Height); } //绘制介绍区域 //if (isIntroduce) //{ // showIntroduce(g); //} }