Ejemplo n.º 1
0
        public WallbouncePlayback(string name, Vector2 offset)
        {
            List <Player.ChaserState> timeline = PlaybackData.Tutorials[name];

            Playback = new PlayerPlayback(offset, PlayerSpriteMode.Madeline, timeline);
            tag      = Calc.Random.Next();
        }
Ejemplo n.º 2
0
            private IEnumerator Routine()
            {
                PlayerPlayback playback = Tutorial.Playback;
                int            step     = 0;

                while (true)
                {
                    int frameIndex = playback.FrameIndex;
                    if (step % 2 == 0)
                    {
                        Tutorial.Update();
                    }
                    if (frameIndex != playback.FrameIndex && playback.FrameIndex == playback.FrameCount - 1)
                    {
                        while (time < 3f)
                        {
                            yield return(null);
                        }
                        yield return(0.1f);

                        while (xEase < 1f)
                        {
                            xEase = Calc.Approach(xEase, 1f, Engine.DeltaTime * 4f);
                            yield return(null);
                        }
                        xEase = 1f;
                        yield return(0.5f);

                        xEase = 0f;
                        time  = 0f;
                    }
                    int num = step;
                    step = num + 1;
                    yield return(null);
                }
            }