/*****************************************************/ //Draw Game Items public void DrawItems() { Globe.drawGlobe(aspectRatio, cameraPosition, VenusRotation, VenusPosition, venus); #region Ammo for (int j = 0; j <= noBullets - 1; j++) { if (ufoBulletList[j].AmmoFlying) { ufoBulletList[j].DrawAmmo(aspectRatio, cameraPosition); } if (BulletList[j].AmmoFlying) { BulletList[j].DrawAmmo(aspectRatio, cameraPosition); } } ; #endregion #region Player // this if statement adds a flicker to the player when their hit if ((spawntimer >= spawninterval) || (spawntimer > 100 && spawntimer < 200) || (spawntimer > 100 && spawntimer < 300) || (spawntimer > 500 && spawntimer < 700) || (spawntimer > 900 && spawntimer < 1100) || (spawntimer > 1300 && spawntimer < 1500) || (spawntimer > 1700 && spawntimer < 1900) || (spawntimer > 2100 && spawntimer < 2300)) { play.DrawPlayer(aspectRatio, cameraPosition); } #endregion #region Asteroids #region Asteroid1 for (int i = 0; i <= NumAsteroid1 - 1; i++) { if (asteroid1List[i].isAlive == true) { asteroid1List[i].DrawAsteroid(aspectRatio, cameraPosition); } } ; #endregion #region Asteroid2 for (int i = 0; i <= NumAsteroid2 - 1; i++) { if (asteroid2List[i].isAlive == true) { asteroid2List[i].DrawAsteroid(aspectRatio, cameraPosition); } } ; #endregion #region Asteroid3 for (int i = 0; i <= NumAsteroid3 - 1; i++) { if (asteroid3List[i].isAlive == true) { asteroid3List[i].DrawAsteroid(aspectRatio, cameraPosition); } } ; #endregion #endregion #region UFO saucer.DrawUfo(aspectRatio, cameraPosition); #endregion }