namespace TACO.Thingies { using System; using System.Drawing; public class BowlingBall : Ball { private Image mBaseImage; private SpriteAnimator mAnim; public BowlingBall(string id) : base(id) { mBaseImage = Image.FromFile("images/thingies/bowlingball-blue.png"); mAnim = new TACO.SpriteAnimator( "images/thingies/bowlingball-holes.png", 36); ResizeTo(mBaseImage.Width, mBaseImage.Height); } public override string Name { get { return "Bowling Ball"; } } public override double NaturalWeight { get { return 20; } } public override void Draw(Graphics g) { g.DrawImage(mBaseImage, Bounds); mAnim.DrawFrame(g, Bounds); mAnim.NextFrame(); } } }