Ejemplo n.º 1
0
        public override void Draw(IGraphics g)
        {
            // give movement feedback
            Motion.Advance(X, Y);

            // display image
            g.Image(Motion.Image, X - (Width / 2), Y - (Height / 2), Width, Height);

            base.Draw(g);
        }
Ejemplo n.º 2
0
        public override void Draw(IGraphics g)
        {
            // advance
            Motion.Advance(X, Y);

            if (!IsDead)
            {
                // continue to die
                if (InDeathSequence > 0)
                {
                    // continue to die
                    InDeathSequence--;
                }

                // draw image
                g.Image(Motion.Image, X - (Width / 2), Y - (Height / 2), Width, Height);
            }

            base.Draw(g);
        }