Exemplo n.º 1
0
        BaseSprite LoadBasketBall(BaseSprite sprite, string texturedir, XElement part)
        {
            BasketBall b = new BasketBall();

            b.Width     = sprite.Width;  // *sprite.ScaleX;
            b.Height    = sprite.Height; // *sprite.ScaleY;
            b.Dimension = sprite.Dimension;
            b.Scale     = sprite.Scale;
            b.World     = world;
            b.Initialize(Content);
            b.Position = sprite.Position;
            return(b);
        }
Exemplo n.º 2
0
 BaseSprite LoadTyre(BaseSprite sprite, string texturedir, XElement part)
 {
     BasketBall b = new BasketBall();
     b.IsTyre = true;
     b.Width = sprite.Width;// *sprite.ScaleX;
     b.Height = sprite.Height;// *sprite.ScaleY;
     b.Dimension = sprite.Dimension;
     b.Scale = sprite.Scale;
     b.World = world;
     b.Initialize(Content);
     b.Position = sprite.Position;
     return b;
 }