Example #1
0
        public void Draw_Level(Hero batman, GameTime gameTime, SpriteBatch spriteBatch,SpriteFont font, GraphicsDeviceManager graphics)
        {
            foreach (MainScroll sc in scrolls)
            {
                sc.Draw(spriteBatch);
            }

            foreach (Platform plat in plats)
            {
                plat.Draw(spriteBatch);
            }

            foreach (Enemy evil in enemies)
            {
                evil.Draw(spriteBatch);
            }

            foreach (Live livePlus in BonusLives)
            {
                livePlus.Draw(spriteBatch);
            }

            foreach (Coin c1 in Coins)
            {
                c1.Draw(spriteBatch);
            }

            batman.Draw(spriteBatch);

            foreach (Fire shot in laserFires)
            {
                shot.Draw(spriteBatch);
            }

            spriteBatch.DrawString(font, "Time: " +timer.Seconds + "." +timer.Milliseconds, new Vector2(graphics.PreferredBackBufferWidth/1.65f, 20), Color.White);
        }