Esempio n. 1
0
        public BackgroundBossEx(StageDataPackage StageData)
            : base(StageData, (string)null, new PointF(0.0f, 0.0f), 0.0f, 0.0)
        {
            new BackgroundMove2(StageData, "底面").DirectionDegree = 90.0;
            BackgroundSC     backgroundSc      = new BackgroundSC(StageData, "中层");
            BackgroundRotate backgroundRotate1 = new BackgroundRotate(StageData, "最上");

            backgroundRotate1.DirectionDegree       = 90.0;
            backgroundRotate1.TransparentValueF     = 128f;
            backgroundRotate1.Scale                 = 1f;
            backgroundRotate1.Active                = false;
            backgroundRotate1.AngularVelocityDegree = 0.5f;
            BackgroundRotate backgroundRotate2 = backgroundRotate1;

            backgroundRotate2.EventGroupList      = new List <EventGroup>();
            backgroundRotate2.EventsExecutionList = new List <Execution>();
            EventGroup eventGroup = new EventGroup();

            eventGroup.index   = 0;
            eventGroup.tag     = "0";
            eventGroup.t       = 200;
            eventGroup.addtime = 200;
            Event @event = new Event();

            @event.EventString = "当前帧=1:不透明度变化到5,正弦,200";
            @event.String2BulletEvent();
            eventGroup.EventList.Add(@event);
            backgroundRotate2.EventGroupList.Add(eventGroup);
        }
Esempio n. 2
0
        public BackgroundBoss06(StageDataPackage StageData)
            : base(StageData, (string)null, new PointF(0.0f, 0.0f), 0.0f, 0.0)
        {
            BackgroundSC backgroundSc = new BackgroundSC(StageData, "底色");
            BackgroundSC bsc1         = new BackgroundSC(StageData, "绿光");

            bsc1.CtrlCall = (BaseObject.CtrlActionCallBack)(x =>
            {
                if (bsc1.Time % 300 == 0)
                {
                    bsc1.TransparentVelocity = -2.55f;
                }
                else
                {
                    if (bsc1.Time % 300 != 100)
                    {
                        return;
                    }
                    bsc1.TransparentVelocity = 2.55f;
                }
            });
            BackgroundSC bsc2 = new BackgroundSC(StageData, "蓝光");

            bsc2.CtrlCall = (BaseObject.CtrlActionCallBack)(x =>
            {
                if (bsc2.Time % 300 == 100)
                {
                    bsc2.TransparentVelocity = -2.55f;
                }
                else
                {
                    if (bsc2.Time % 300 != 200)
                    {
                        return;
                    }
                    bsc2.TransparentVelocity = 2.55f;
                }
            });
            BackgroundSC bsc = new BackgroundSC(StageData, "红光");

            bsc.CtrlCall = (BaseObject.CtrlActionCallBack)(x =>
            {
                if (bsc.Time % 300 == 200)
                {
                    bsc.TransparentVelocity = -2.55f;
                }
                else
                {
                    if (bsc.Time % 300 != 0)
                    {
                        return;
                    }
                    bsc.TransparentVelocity = 2.55f;
                }
            });
        }
Esempio n. 3
0
        public BackgroundBoss04(StageDataPackage StageData)
            : base(StageData, (string)null, new PointF(0.0f, 0.0f), 0.0f, 0.0)
        {
            BackgroundSC     backgroundSc      = new BackgroundSC(StageData, "Card04c");
            BackgroundRotate backgroundRotate1 = new BackgroundRotate(StageData, "Card04a");

            backgroundRotate1.DirectionDegree       = 90.0;
            backgroundRotate1.TransparentValueF     = 128f;
            backgroundRotate1.Scale                 = 1f;
            backgroundRotate1.Active                = false;
            backgroundRotate1.AngularVelocityDegree = 0.0f;
            BackgroundRotate backgroundRotate2 = backgroundRotate1;

            backgroundRotate2.EventGroupList      = new List <EventGroup>();
            backgroundRotate2.EventsExecutionList = new List <Execution>();
            EventGroup eventGroup1 = new EventGroup();

            eventGroup1.index   = 0;
            eventGroup1.tag     = "0";
            eventGroup1.t       = 200;
            eventGroup1.addtime = 200;
            Event event1 = new Event();

            event1.EventString = "当前帧=1:不透明度变化到5,正弦,200";
            event1.String2BulletEvent();
            eventGroup1.EventList.Add(event1);
            backgroundRotate2.EventGroupList.Add(eventGroup1);
            BackgroundRotate backgroundRotate3 = new BackgroundRotate(StageData, "Card04b");

            backgroundRotate3.DirectionDegree       = 90.0;
            backgroundRotate3.TransparentValueF     = 128f;
            backgroundRotate3.Scale                 = 1f;
            backgroundRotate3.Active                = false;
            backgroundRotate3.AngularVelocityDegree = 0.0f;
            BackgroundRotate backgroundRotate4 = backgroundRotate3;

            backgroundRotate4.EventGroupList      = new List <EventGroup>();
            backgroundRotate4.EventsExecutionList = new List <Execution>();
            EventGroup eventGroup2 = new EventGroup();

            eventGroup2.index   = 0;
            eventGroup2.tag     = "0";
            eventGroup2.t       = 200;
            eventGroup2.addtime = 200;
            Event event2 = new Event();

            event2.EventString = "当前帧=1:不透明度变化到255,正弦,200";
            event2.String2BulletEvent();
            eventGroup2.EventList.Add(event2);
            backgroundRotate4.EventGroupList.Add(eventGroup2);
        }