Exemplo n.º 1
0
        public static void Begin(Level self)
        {
            if (Settings.Enabled)
            {
                PlayerTwoDash = new VirtualButton();
                PlayerTwoDash.Nodes.Add(new VirtualButton.KeyboardKey(Keys.J));
                PlayerTwoJump = new VirtualButton();
                PlayerTwoJump.Nodes.Add(new VirtualButton.KeyboardKey(Keys.K));
                PlayerTwoGrab = new VirtualButton();
                PlayerTwoGrab.Nodes.Add(new VirtualButton.KeyboardKey(Keys.H));
                PlayerTwoMoveX = new VirtualIntegerAxis();
                PlayerTwoMoveX.Nodes.Add(new VirtualAxis.KeyboardKeys(VirtualInput.OverlapBehaviors.TakeNewer, Keys.NumPad4, Keys.NumPad6));
                PlayerTwoMoveY = new VirtualIntegerAxis();
                PlayerTwoMoveY.Nodes.Add(new VirtualAxis.KeyboardKeys(VirtualInput.OverlapBehaviors.TakeNewer, Keys.NumPad8, Keys.NumPad5));
                PlayerTwoAim = new VirtualJoystick(true);
                PlayerTwoAim.Nodes.Add(new VirtualJoystick.KeyboardKeys(VirtualInput.OverlapBehaviors.TakeNewer, Keys.NumPad4, Keys.NumPad6, Keys.NumPad8, Keys.NumPad5));

                Player    P1        = Celeste.Scene.Entities.FindFirst <Player>();
                PlayerTwo Madeline2 = new PlayerTwo(P1.Position, PlayerSpriteMode.MadelineNoBackpack)
                {
                    IntroType = PlayerTwo.IntroTypes.None
                };
                Celeste.Scene.Entities.Add(Madeline2);
            }

            orig_Begin(self);
        }
Exemplo n.º 2
0
        public static void IntroRespawnEnd(Player self)
        {
            if (Settings.Enabled)
            {
                PlayerTwo Madeline2 = new PlayerTwo(self.Position, PlayerSpriteMode.MadelineNoBackpack)
                {
                    IntroType = PlayerTwo.IntroTypes.None
                };
                Celeste.Scene.Entities.Add(Madeline2);
            }

            orig_IntroRespawnEnd(self);
        }