Example #1
0
        public static JourneyAnimator FromVecList(string vecList, int maxX, int maxY, int depth, Point currentPosition)
        {
            var path = Path.FromVecList(vecList, depth, maxX, maxY, true);

            path.Offset = new Point {
                X = -currentPosition.X, Y = -currentPosition.Y, Height = -currentPosition.Height
            };
            var jor = new Journey(new Point {
                X = 0, Y = 0, Height = 0
            });

            jor.AddPath(path);

            return(new JourneyAnimator(jor));
        }