Beispiel #1
0
        private void drawGamePlay(GameTime gameTime)
        {
            //for loop to draw them all
            for (int j = 0; j < enemies.Count; j++)
            {
                enemies[j].Draw(spriteBatch, this.debugMode);
            }

            arwing.Draw(spriteBatch, debugMode);

            spriteBatch.DrawString(scoreFont, "Score: " + score, new Vector2(10, 20), Color.ForestGreen);
            spriteBatch.DrawString(scoreFont, "Lives:" + lives, new Vector2(1500, 10), Color.ForestGreen);
            spriteBatch.DrawString(scoreFont, "Level:" + level, new Vector2(1000, 10), Color.ForestGreen);
            if (ks.IsKeyDown(Keys.G))
            {
                score += 1;
            }
        }