Exemplo n.º 1
0
        public void Draw(SpriteBatch spriteBatch)
        {
            String text = " ";

            if (exitCase == 1)
            {
                text = "Out of energy.";
            }

            if (exitCase == 2)
            {
                text = "Gibbon out of bounds.";
            }

            if (exitCase == 3)
            {
                text = "Out of time.";
            }

            spriteBatch.Begin();

            spriteBatch.Draw(game.staticBG, Vector2.Zero, Color.White);
            game.DrawText(new Vector2(game.screenCenter.X, 100f), "Game over!", game.quartz_big, true, Color.Black);
            game.DrawText(game.screenCenter, text, game.quartz_big, true, Color.Black);
            game.DrawText(new Vector2(game.screenCenter.X, 800f), "Your distance: " + game.getScore().ToString() + " m", game.quartz_big, true, Color.Black);


            spriteBatch.End();
        }