Example #1
0
        /// <summary>
        /// el: Picture rotate
        /// num "integer"
        /// [speed "integer"]
        /// [angle "integer"]
        /// </summary>
        static void PictureRotate()
        {
            GamePicture picture = MakeCommand.Command("num").ToPicture();
            int         speed   = 0;

            if (MakeCommand.Optional("speed"))
            {
                speed = MakeCommand.Command("speed").ToInteger();
            }
            if (picture != null)
            {
                picture.Rotate(speed);
            }
        }