Exemplo n.º 1
0
        private Player LevelOnLoadNewPlayer(On.Celeste.Level.orig_LoadNewPlayer orig, Vector2 position,
                                            PlayerSpriteMode spriteMode)
        {
            Player player = orig(position, spriteMode);

            player.SetEntityId2(EntityId2.PlayerFixedEntityId2);
            return(player);
        }
Exemplo n.º 2
0
        private static Player LevelOnLoadNewPlayer(On.Celeste.Level.orig_LoadNewPlayer orig, Vector2 position, PlayerSpriteMode spriteMode)
        {
            Player player = orig(position, spriteMode);

            if (resetRemainder != Vector2.Zero)
            {
                MovementCounter.SetValue(player, resetRemainder);
                resetRemainder = Vector2.Zero;
            }

            return(player);
        }