Exemple #1
0
        private Drawable createDrawable(FruitVisualRepresentation rep)
        {
            Fruit fruit = new TestCatchFruit(rep)
            {
                Scale = 1.5f
            };

            return(new DrawableFruit(fruit)
            {
                Anchor = Anchor.Centre,
                RelativePositionAxes = Axes.None,
                Position = Vector2.Zero,
                Alpha = 1,
                LifetimeStart = double.NegativeInfinity,
                LifetimeEnd = double.PositiveInfinity,
            });
        }
        private Drawable createDrawable(FruitVisualRepresentation rep, bool hyperdash = false)
        {
            Fruit fruit = new TestCatchFruit(rep)
            {
                Scale           = 1.5f,
                HyperDashTarget = hyperdash ? new Banana() : null
            };

            return(new DrawableFruit(fruit)
            {
                Anchor = Anchor.Centre,
                RelativePositionAxes = Axes.None,
                Position = Vector2.Zero,
                Alpha = 1,
                LifetimeStart = double.NegativeInfinity,
                LifetimeEnd = double.PositiveInfinity,
            });
        }