Exemple #1
0
        public static void RunDraw(SpriteBatch spriteBatch, GameTime gameTime)
        {
            player.Draw(spriteBatch);
            if (companion != null && companion.IsAlive)
            {
                companion.Draw(spriteBatch);
            }
            foreach (Enemy e in Enemies)
            {
                e.Draw(spriteBatch);
            }

            float x_cash = 5;
            float y_cash = 10 + TextureHandler.Sprites["Icons/Border01"].Height;

            spriteBatch.DrawString(FontHandler.Fonts["Fonts/Reno14"], gameHandler.Score + "$", new Vector2(x_cash, y_cash), Color.White);
        }