예제 #1
0
        /// <summary>
        /// This is called when the game should draw itself.
        /// </summary>
        /// <param name="gameTime">Provides a snapshot of timing values.</param>
        protected override void Draw(GameTime gameTime)
        {
            graphics.GraphicsDevice.Clear(Color.Black);

            //TODO: Add your drawing code here

            spriteBatch.Begin();

            spriteBatch.Draw(backGround, new Vector2(0, 0), Color.White);
            foreach (City city in cities)
            {
                city.Draw(spriteBatch, font);
            }
            missile.Draw(spriteBatch, font);
            enemy.Draw(spriteBatch, font);

            spriteBatch.End();

            base.Draw(gameTime);
        }