Example #1
0
        public void Draw(ref SpriteBatch sb, ref Vector2 viewport_loc)
        {
            Vector2 offset = MapSprite.mapDrawOrigin - viewport_loc;

            //MapSprite.Draw(sb, new Vector2(mapPosition.X - (int)viewport_loc.X, mapPosition.Y - (int)viewport_loc.Y), 0f);
            MapSprite.Draw(sb, new Vector2(mapPosition.X + (int)offset.X, mapPosition.Y + (int)offset.Y), 0f);
        }
Example #2
0
 public void Draw(SpriteBatch spriteBatch)
 {
     MapSprite.Draw(spriteBatch);
 }