Beispiel #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);
        }
        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);
        }
Beispiel #3
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);
        }
Beispiel #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)));
 }
 public void TestHoldNote()
 {
     AddToggleStep("toggle hitting", v =>
     {
         foreach (var holdNote in CreatedDrawables.SelectMany(d => d.ChildrenOfType <DrawableHoldNote>()))
         {
             ((Bindable <bool>)holdNote.IsHitting).Value = v;
         }
     });
 }
Beispiel #6
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);
        }
Beispiel #7
0
        private void performJudgement(HitResult type, Judgement judgement = null)
        {
            var judgedObject = new DrawableFruit(new Fruit())
            {
                AccentColour = { Value = judgedObjectColour }
            };

            var result = new JudgementResult(judgedObject.HitObject, judgement ?? new Judgement())
            {
                Type = type
            };

            scoreProcessor.ApplyResult(result);

            foreach (var counter in CreatedDrawables.Cast <CatchComboDisplay>())
            {
                counter.OnNewResult(judgedObject, result);
            }
        }