public void Draw(GraphicsDevice gDev, SpriteBatch sprBatch, Starfield stars, UFOManager ufo)
 {
     stars.Draw(sprBatch);
     sprBatch.DrawString(fontFkey, "F-Key Entertainment presents:", new Vector2(gDev.Viewport.Width * 0.23f, gDev.Viewport.Height * 0.02f), Color.CornflowerBlue);
     sprBatch.DrawString(fontTitle, "Alien", new Vector2(300, -20), new Color(220, 185, 30));
     sprBatch.DrawString(fontTitle, "Incursion", new Vector2(40, 125), new Color(220, 185, 30));
     ufo.SplashDraw(sprBatch, gDev);
     sprBatch.DrawString(fontFkey, "Easy", new Vector2(600, 525), difficulty.color(1));
     sprBatch.DrawString(fontFkey, "Medium", new Vector2(575, 570), difficulty.color(2));
     sprBatch.DrawString(fontFkey, "Hard", new Vector2(600, 615), difficulty.color(3));
     sprBatch.DrawString(fontInstruction, "Select difficulty using D-Pad, Press 'Start' to play", new Vector2(300, 675), Color.LightGray);
 }
Esempio n. 2
0
 public void Draw(SpriteBatch sprBatch, Starfield stars, Player player, AlienManager aliens, UFOManager ufo, bool drawNPCs, bool drawShip)
 {
     stars.Draw(sprBatch);
     if (drawShip)
     {
         player.Draw(sprBatch);
         foreach (Sprite pB in player.bullets())
         {
             pB.Draw(sprBatch);
         }
     }
     if (drawNPCs)
     {
         foreach (Sprite eB in aliens.bullets())
         {
             eB.Draw(sprBatch, (float)Math.PI, Color.Red);
         }
         foreach (Sprite a in aliens.alienList())
         {
             a.Draw(sprBatch);
         }
         if (!ufo.Caught())
         {
             ufo.Draw(sprBatch);
         }
     }
     sprBatch.Draw(mPanel, new Vector2(1080, 0), Color.White);
     sprBatch.DrawString(fontHeader, ("Level   " + player.level), new Vector2(1120, 19), Color.IndianRed);
     sprBatch.DrawString(fontHeader, ("Score"), new Vector2(1135, 95), Color.CadetBlue);
     sprBatch.DrawString(fontData, ("" + player.score), new Vector2(1135, 140), Color.White);
     sprBatch.DrawString(fontHeader, ("Lives:"), new Vector2(1120, 235), Color.CadetBlue);
     sprBatch.DrawString(fontData, ("" + player.lives), new Vector2(1220, 235), Color.White);
     sprBatch.DrawString(fontHeader, ("Ship Speed"), new Vector2(1100, 325), Color.ForestGreen);
     sprBatch.DrawString(fontData, ("" + player.Speed), new Vector2(1162, 374), Color.White);
     sprBatch.DrawString(fontHeader, ("Max Bullets"), new Vector2(1099, 460), Color.ForestGreen);
     sprBatch.DrawString(fontData, ("" + player.maxBullets + " / 8"), new Vector2(1150, 509), Color.White);
     sprBatch.DrawString(fontHeader, ("Bullet Speed"), new Vector2(1095, 600), Color.ForestGreen);
     sprBatch.DrawString(fontData, ("" + player.bulletSpeed), new Vector2(1166, 649), Color.White);
     if (drawNPCs && ufo.Caught())
     {
         ufo.Draw(sprBatch);
     }
 }