示例#1
0
        public void Update()
        {
            TTL--;
            Position += Velocity;
            Angle    += AngularVelocity;

            SpritePlayer.PlayAnimation(Sprite);
        }
示例#2
0
        public void Draw()
        {
            SpritePlayer.PlayAnimation(Sprite);

            if (TTL > 0)
            {
                SpritePlayer.Draw(Position, Angle, SpriteEffect);
            }
        }