public void DrawNumberString(SpriteBatch batch, string numbers, Vector2 pos)
 {
     foreach (char c in numbers)
     {
         batch.DrawSprite(pointsSheet, pos, 0, (int)Char.GetNumericValue(c), 0);
         pos += new Vector2(16, 0);
     }
 }
        private void DrawEntities(SpriteBatch batch)
        {
            batch.Begin(SpriteSortMode.BackToFront, BlendState.AlphaBlend, SamplerState.PointClamp, null, null, null, cam.TranslateMapAndEntities());
            factory.DrawEnteties(batch);

            if (currentState == GAMEPLAYSTATES.START)
                batch.DrawSprite(pacman.PacmanAnimation, new Vector2(50 * 16 + 8, 50 * 16 + 8) - cam.Position, 0, 0, 0);

            batch.End();
        }
        private void DrawSelect(SpriteBatch batch, StateBasedGame container)
        {
            Vector2 titelpos = new Vector2(15, 13);

            batch.Begin();
            batch.Draw(background, Vector2.Zero, Color.White);
            batch.Draw(title_devil, titelpos, Color.White);
            batch.Draw(title_arma, titelpos, Color.White);
            batch.Draw(title_pacamari, titelpos, Color.White);
            batch.Draw(title_of, titelpos, Color.White);
            batch.Draw(title_death, titelpos, Color.White);
            batch.Draw(title_hme, new Vector2(99, 271), Color.White);

            batch.Draw(menu_start, new Vector2(551, 259), Color.White);
            if(container.Graphics.IsFullScreen)
                batch.Draw(menu_windowed, new Vector2(552, 306), Color.White);
            else
            batch.Draw(menu_fullscreen, new Vector2(552, 306), Color.White);

            batch.Draw(menu_end, new Vector2(553, 352), Color.White);

            batch.End();

            batch.Begin(SpriteSortMode.Texture, BlendState.AlphaBlend, SamplerState.PointClamp, null, null, null, Matrix.CreateScale(2));
            if(pacmanState)
                batch.DrawSprite(Player.Get().PacmanAnimation, new Vector2(264, 140 + (23 * menuSelection)), 0, 0, 0);
            else
                batch.DrawSprite(Player.Get().PacmanAnimation, new Vector2(264, 140 + (23 * menuSelection)), 0, 1, 0);

            batch.End();

            DrawHigscore(batch);

            DrawFlash(batch);
        }
 public override void Draw(SpriteBatch batch)
 {
     batch.DrawSprite(SpriteReference, Position - Camera.Get().Position, 0, SheetTile.X, SheetTile.Y);
 }