Ejemplo n.º 1
0
        public TestSceneCatcherArea()
        {
            AddSliderStep <float>("CircleSize", 0, 8, 5, createCatcher);
            AddToggleStep("Hyperdash", t =>
                          CreatedDrawables.OfType <CatchInputManager>().Select(i => i.Child)
                          .OfType <TestCatcherArea>().ForEach(c => c.ToggleHyperDash(t)));

            AddRepeatStep("catch fruit", () => catchFruit(new TestFruit(false)
            {
                X = catcher.X
            }), 20);
            AddRepeatStep("catch fruit last in combo", () => catchFruit(new TestFruit(false)
            {
                X           = catcher.X,
                LastInCombo = true,
            }), 20);
            AddRepeatStep("catch kiai fruit", () => catchFruit(new TestFruit(true)
            {
                X = catcher.X
            }), 20);
            AddRepeatStep("miss fruit", () => catchFruit(new Fruit
            {
                X           = catcher.X + 100,
                LastInCombo = true,
            }, true), 20);
        }
Ejemplo n.º 2
0
        public TestSceneHitExplosion()
        {
            int runcount = 0;

            AddRepeatStep("explode", () =>
            {
                runcount++;

                if (runcount % 15 > 12)
                {
                    return;
                }

                int poolIndex = 0;

                foreach (var c in CreatedDrawables.OfType <Container>())
                {
                    c.Add(hitExplosionPools[poolIndex].Get(e =>
                    {
                        e.Apply(new JudgementResult(new HitObject(), runcount % 6 == 0 ? new HoldNoteTickJudgement() : new ManiaJudgement()));

                        e.Anchor = Anchor.Centre;
                        e.Origin = Anchor.Centre;
                    }));

                    poolIndex++;
                }
            }, 100);
        }
Ejemplo n.º 3
0
        public TestSceneHitExplosion()
        {
            int runCount = 0;

            AddRepeatStep("explode", () =>
            {
                runCount++;

                if (runCount % 15 > 12)
                {
                    return;
                }

                CreatedDrawables.OfType <Container>().ForEach(c =>
                {
                    var colour = runCount / 15 % 2 == 0 ? new Color4(94, 0, 57, 255) : new Color4(6, 84, 0, 255);
                    c.Add(new SkinnableDrawable(new KaraokeSkinComponent(KaraokeSkinComponents.HitExplosion),
                                                _ => new DefaultHitExplosion(colour, runCount % 6 != 0)
                    {
                        Anchor = Anchor.Centre,
                        Origin = Anchor.Centre,
                    }));
                });
            }, 100);
        }
Ejemplo n.º 4
0
 public TestSceneCatcherArea()
 {
     AddSliderStep <float>("CircleSize", 0, 8, 5, createCatcher);
     AddToggleStep("Hyperdash", t =>
                   CreatedDrawables.OfType <CatchInputManager>().Select(i => i.Child)
                   .OfType <TestCatcherArea>().ForEach(c => c.ToggleHyperDash(t)));
 }
Ejemplo n.º 5
0
        public TestSceneCatcherArea()
        {
            AddSliderStep <float>("CircleSize", 0, 8, 5, createCatcher);
            AddToggleStep("Hyperdash", t =>
                          CreatedDrawables.OfType <CatchInputManager>().Select(i => i.Child)
                          .OfType <TestCatcherArea>().ForEach(c => c.ToggleHyperDash(t)));

            AddRepeatStep("catch fruit", () =>
                          this.ChildrenOfType <CatcherArea>().ForEach(area =>
                                                                      area.MovableCatcher.PlaceOnPlate(new DrawableFruit(new TestSceneFruitObjects.TestCatchFruit(FruitVisualRepresentation.Grape)))), 20);
        }