示例#1
0
        public override IEnumerable <bool> E_Draw()
        {
            Func <double> getA = SCommon.Supplier(WallCommon.E_GetA_フェードイン(this));

            for (int slide = 0; ; slide += 11, slide %= 108)
            {
                DDDraw.SetAlpha(getA());

                for (int dx = -slide; dx < DDConsts.Screen_W; dx += 108)
                {
                    for (int dy = 0; dy < DDConsts.Screen_H; dy += 108)
                    {
                        DDDraw.DrawSimple(Ground.I.Picture.Wall0002, dx, dy);
                    }
                }
                DDDraw.Reset();

                yield return(true);
            }
        }
示例#2
0
        public override IEnumerable <bool> E_Draw()
        {
            Func <double> getA = SCommon.Supplier(WallCommon.E_GetA_フェードイン(this));

            for (int frame = 0; ; frame++)
            {
                DDDraw.SetAlpha(getA());

                {
                    int slide = (int)((frame * 7L) % 180L);

                    for (int dx = -slide; dx < DDConsts.Screen_W; dx += 180)
                    {
                        for (int dy = 0; dy < DDConsts.Screen_H; dy += 180)
                        {
                            DDDraw.DrawSimple(Ground.I.Picture.Wall0001, dx, dy);
                        }
                    }
                }

                {
                    int slide = (int)((frame * 17L) % 90L);

                    for (int dx = -slide; dx < DDConsts.Screen_W; dx += 90)
                    {
                        for (int dy = 0; dy < DDConsts.Screen_H; dy += 90)
                        {
                            DDDraw.DrawSimple(Ground.I.Picture.Wall0003, dx, dy);
                        }
                    }
                }

                DDDraw.Reset();

                yield return(true);
            }
        }