Esempio n. 1
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.End(); // to get some crispy pixels <e're gonna call the spritebatch with new parameters
            spriteBatch.Begin(SpriteSortMode.Deferred,
                              BlendState.AlphaBlend,
                              SamplerState.PointClamp,
                              null, null, null, null);

            background.TopLeftDraw(spriteBatch, new Vector2(0, 0));

            CurrentSprite.DrawFromFeet(spriteBatch, PlayerPosition);
            foreach (Vector2 v in PizzaPositions)
            {
                pizza.DrawFromFeet(spriteBatch, v + new Vector2(0, pizza_height));
            }
            foreach (Tuple <Vector2, Vector2, Sprite> o in DisplayObjects)
            {
                o.Item3.DrawFromFeet(spriteBatch, o.Item1);
            }

            spriteBatch.End();
            spriteBatch.Begin();

            base.Draw(spriteBatch);
        }
Esempio n. 2
0
 public virtual void Draw(SpriteBatch spriteBatch)
 {
     CurrentSprite.DrawFromFeet(spriteBatch, new Vector2(FeetPosition.X, FeetPosition.Y + 1));
 }
Esempio n. 3
0
 public override void Draw(SpriteBatch spriteBatch)
 {
     CurrentSprite.DrawFromFeet(spriteBatch, FeetPosition + new Vector2(0, 8));
     //base.Draw(spriteBatch);
 }
Esempio n. 4
0
 public override void Draw(SpriteBatch spriteBatch)
 {
     CurrentSprite.DrawFromFeet(spriteBatch, FeetPosition + brownianPosition);
 }