Esempio n. 1
0
        public Hp2dTex(int Id, float posX, float posY, float speed)
        {
            this.Id = Id;
            Data.ModelDataManager resMgr = Data.ModelDataManager.GetInstance();
            if (Id == (int)Data.Tex2dResId.TowerStart)
            {
                textureInfo = resMgr.SetTexture2((int)Data.Tex2dResId.Bosstower);
            }
            else if (Id == (int)Data.Tex2dResId.HouseStart)
            {
                textureInfo = resMgr.SetTexture2((int)Data.Tex2dResId.BossMonument);
            }
            else if (Id == (int)Data.Tex2dResId.WallStart)
            {
                textureInfo = resMgr.SetTexture2((int)Data.Tex2dResId.BossWall);
            }
            else
            {
                textureInfo = resMgr.SetTexture2((int)Id);
            }

            uvPos   = new Vector2(textureInfo.u0, textureInfo.v0);
            uvSize  = new Vector2(textureInfo.u1 - textureInfo.u0, textureInfo.v1 - textureInfo.v0);
            texSize = new Vector2(textureInfo.w, textureInfo.h) * 1.5f;

            //randomにする
            rotate      = StaticDataList.getRandom(0, 360);
            rotatespeed = StaticDataList.getRandom(3, 6) / 100.0f;
            Pos.X       = posX;
            Pos.Y       = posY;
            this.speed  = speed;
            deadFlag    = false;
        }
Esempio n. 2
0
        private void actorSpeek(ActorChHobit actorCh)
        {
            actorCh.AiMoveCount = (int)(Data.SetupValue.CharMoveChangeTime + StaticDataList.getRandom(-(int)(Data.SetupValue.CharMoveChangeRandTime), (int)Data.SetupValue.CharMoveChangeRandTime));
            if (actorCh.texId != (int)Data.Tex2dResId.Zonbi1 && actorCh.texId != (int)Data.Tex2dResId.Necromancer1)
            {
                if (StaticDataList.getRandom(0, 100) < (int)Data.SetupValue.BaloonAppearRand && actorCh.deadFlagSp == true && speakCount < 6)
                {
                    actorCh.setAppearCountSp((int)Data.SetupValue.AppearAndLeaveTime);
                    speakCount++;
                    int charVoNumber = StaticDataList.getRandom(3);
                    switch (charVoNumber)
                    {
                    case 0: AppSound.GetInstance().PlaySeCamDis(AppSound.SeId.CharVo1, actorCh.GetBodyPos()); break;

                    case 1: AppSound.GetInstance().PlaySeCamDis(AppSound.SeId.CharVo2, actorCh.GetBodyPos()); break;

                    case 2: AppSound.GetInstance().PlaySeCamDis(AppSound.SeId.CharVo3, actorCh.GetBodyPos()); break;
                    }
                }
            }
            else if (actorCh.texId == (int)Data.Tex2dResId.Zonbi1)
            {
                if (StaticDataList.getRandom(0, 100) < (int)Data.SetupValue.GionAppearRand && actorCh.deadFlagSp == true && speakCount < 6)
                {
                    actorCh.setAppearCountSp((int)Data.SetupValue.GionAppearSpeed);
                    speakCount++;
                    AppSound.GetInstance().PlaySeCamDis(AppSound.SeId.ZonbiVo3, actorCh.GetBodyPos());
                }
            }
        }
Esempio n. 3
0
/// private メソッド
///---------------------------------------------------------------------------
        /// フレーム:移動
        private bool frameMove(ActorChHobit actorCh)
        {
            actorCh.AiMoveCount--;
            if (actorCh.AiMoveCount < 0)
            {
                actorCh.MovedFlag = true;
                if (actorCh.texId < (int)Data.Tex2dResId.NormalCharMax)
                {
                    int ToNumber = ctrlResMgr.CtrlTo.GetEntryNum() + ctrlResMgr.CtrlWall.GetEntryNum();
                    if (ToNumber == 0)
                    {
                        actorCh.AiMoveRot = (int)StaticDataList.getRandom(0, 360);
                    }
                    else
                    {
                        int towerNumber = (int)StaticDataList.getRandom(0, ToNumber);
                        glowTowerWall(actorCh, towerNumber);
                        moveToTowerWall(actorCh, towerNumber);
                    }
                }
                if (actorCh.texId == (int)Data.Tex2dResId.Zonbi1)
                {
                    actorCh.AiMoveRot += Common.VectorUtil.GetRotY(actorCh.AiMoveRot, actorCh.BasePos, ctrlResMgr.EnemyMoPos) + StaticDataList.getRandom(-10, 10);
                }

                actorCh.AiMoveCount = (int)(Data.SetupValue.CharMoveChangeTime + StaticDataList.getRandom(-(int)(Data.SetupValue.CharMoveChangeRandTime), (int)Data.SetupValue.CharMoveChangeRandTime));

                actorSpeek(actorCh);
            }
            moveCh(actorCh);
            return(true);
        }
Esempio n. 4
0
        /// 敵の配置
        public void SetPlace(int idx, Vector3 pos)
        {
            Matrix4 mtx = Matrix4.RotationY(StaticDataList.getRandom(0, 360));

            Common.MatrixUtil.SetTranslate(ref mtx, pos);

            actorChList[idx].SetPlace(mtx);
        }
Esempio n. 5
0
 private void battleEffect(ActorChHobit actorCh)
 {
     if (StaticDataList.getRandom(0, (int)Data.SetupValue.BattleEffectRand + 1) == 0)
     {
         AppSound.GetInstance().PlaySeCamDis(AppSound.SeId.PlDamage, actorCh.GetBodyPos());
         //ctrlResMgr.CtrlPl.Addeffect(new Vector3( actorCh.BasePos.X + StaticDataList.getRandom(-15,15)/5.0f ,actorCh.BasePos.Y + 0.2f ,actorCh.BasePos.Z+ StaticDataList.getRandom(-15,15)/5.0f));
         ctrlResMgr.AddEffectFromEnemy = true;
         ctrlResMgr.AddEnemyEffectPos  = actorCh.BasePos;
     }
 }
Esempio n. 6
0
        /// 開始
        public override bool DoStart()
        {
            tweetNumber          = StaticDataList.getRandom(0, 9);
            currentFont          = new Font(FontAlias.System, 20, FontStyle.Regular);
            sprite               = new Sprite(tweet.tweetlist[TexId, tweetNumber], 0xffffffff, currentFont, 0, 0);
            textureShaderProgram = createSimpleTextureShader();
            scaleX               = tweet.tweetlist[TexId, tweetNumber].Length / 9.0f;

            return(true);
        }
Esempio n. 7
0
        private void AddHouseFromMonument()
        {
            int disNS = (int)(CtrlStg.TowerAreaNorth - CtrlStg.TowerAreaSouth);
            int disEW = (int)(CtrlStg.TowerAreaEast - CtrlStg.TowerAreaWest);

            CtrlHouse.EntryAddHouse((int)(StaticDataList.getRandom((int)Data.Tex2dResId.HouseStart + 2, (int)Data.Tex2dResId.HouseMax)),
                                    new Vector3(StaticDataList.getRandom((int)CtrlStg.TowerAreaSouth - disNS / 2, (int)CtrlStg.TowerAreaNorth + disNS / 2),
                                                50.0f,
                                                StaticDataList.getRandom((int)CtrlStg.TowerAreaWest - disEW / 2, (int)CtrlStg.TowerAreaEast + disEW / 2))
                                    );
        }
Esempio n. 8
0
        private void AddEnemyFromMonument()
        {
//		int makeEnemy = 4+(int)Data.SetupValue.BonusNewMoNewEnemy*(ctrlMo.GetEntryNum()-1);
//		int tempRandNumber = StaticDataList.getRandom(0,makeEnemy);
            int tempRandNumber = 1;

            for (int i = 0; i < tempRandNumber; i++)
            {
                int moNumber = StaticDataList.getRandom(0, ctrlMo.GetEntryNum());
                ctrlHobit.EntryAddEnemy(StaticDataList.getRandom((int)Data.Tex2dResId.CharStart + 1, (int)Data.Tex2dResId.NormalCharMax), new Vector3(ctrlMo.GetPos(0).X, 34.0f, ctrlMo.GetPos(0).Z));
            }
        }
Esempio n. 9
0
        private void randomMoveToTowerWall(ActorChHobit actorCh)
        {
            int ToNumber = ctrlResMgr.CtrlTo.GetEntryNum() + ctrlResMgr.CtrlWall.GetEntryNum();

            if (ToNumber == 0)
            {
                actorCh.AiMoveRot = (int)StaticDataList.getRandom(0, 360);
            }
            else
            {
                int towerNumber = (int)StaticDataList.getRandom(0, ToNumber);
                moveToTowerWall(actorCh, towerNumber);
            }
        }
Esempio n. 10
0
        private void moveToTowerWall(ActorChHobit actorCh, int towerNumber)
        {
            float tempRot;

            if (towerNumber < ctrlResMgr.CtrlTo.GetEntryNum())
            {
                tempRot = Common.VectorUtil.GetRotY(actorCh.AiMoveRot, actorCh.BasePos, ctrlResMgr.CtrlTo.GetPos(towerNumber));
            }
            else
            {
                tempRot = Common.VectorUtil.GetRotY(actorCh.AiMoveRot, actorCh.BasePos, ctrlResMgr.CtrlWall.GetPos(towerNumber - ctrlResMgr.CtrlTo.GetEntryNum()));
            }
            actorCh.AiMoveRot += tempRot + StaticDataList.getRandom(-3, 3);
        }
Esempio n. 11
0
        /// 開始
        protected override bool DoStart()
        {
            objCh.Start();
            if (objCh.texId != (int)Data.Tex2dResId.Necromancer1)
            {
                objSpeech.Start();
            }

            ActiveFlg   = false;
            ActiveCnt   = 0;
            ActiveDis   = 0;
            AiAttackCnt = 0;
            AiMoveCount = (int)(Data.SetupValue.CharMoveChangeTime + (int)StaticDataList.getRandom(-10, 10));
            return(true);
        }
Esempio n. 12
0
        private bool frameEat(ActorChHobit actorCh)
        {
            GameCtrlManager ctrlResMgr = GameCtrlManager.GetInstance();

            if (actorCh.GetStateId() != ActorChBase.StateId.Eat)
            {
                actorCh.AiMoveCount--;
                if (actorCh.AiMoveCount < 0)
                {
                    actorCh.AiMoveRot   = (int)StaticDataList.getRandom(360);
                    actorCh.AiMoveCount = (int)(Data.SetupValue.CharMoveChangeTime + StaticDataList.getRandom(-(int)(Data.SetupValue.CharMoveChangeRandTime), (int)Data.SetupValue.CharMoveChangeRandTime));
                }
                actorCh.SetStateMove(new Vector3(actorCh.BaseMtx.M31, actorCh.BaseMtx.M32, actorCh.BaseMtx.M33),
                                     moveSpeed, actorCh.AiMoveRot, false);
            }
            return(true);
        }
Esempio n. 13
0
        private bool frameMurder(ActorChHobit actorCh)
        {
            actorCh.AiMoveCount--;
            if (actorCh.AiMoveCount < 0)
            {
                actorCh.MovedFlag = true;

                if (actorCh.texId == (int)Data.Tex2dResId.Noumin1)
                {
                    actorCh.AiMoveRot += Common.VectorUtil.GetRotY(actorCh.AiMoveRot, actorCh.BasePos, meanChPos(true, true, false, true)) + StaticDataList.getRandom(-20, 20);
                    if (StaticDataList.random100() < (int)Data.SetupValue.BattleNouminDeadRand)
                    {
                        actorCh.changeId((int)Data.Tex2dResId.Zonbi1);
                    }
                }
                if (actorCh.texId == (int)Data.Tex2dResId.Senshi1)
                {
                    actorCh.AiMoveRot += Common.VectorUtil.GetRotY(actorCh.AiMoveRot, actorCh.BasePos, meanChPos(true, true, false, true)) + StaticDataList.getRandom(-20, 20);
                    if (StaticDataList.random100() < (int)Data.SetupValue.BattleSenshiDeadRand)
                    {
                        actorCh.changeId((int)Data.Tex2dResId.Zonbi1);
                    }
                }
                if (actorCh.texId == (int)Data.Tex2dResId.Souryo1)
                {
                    randomMoveToTowerWall(actorCh);
                    if (StaticDataList.random100() < (int)Data.SetupValue.BattleSouryoDeadRand * 2 * rateCh(false, false, false, true))
                    {
                        actorCh.changeId((int)Data.Tex2dResId.Zonbi1);
                    }
                }
                if (actorCh.texId == (int)Data.Tex2dResId.Zonbi1)
                {
                    actorCh.AiMoveRot += Common.VectorUtil.GetRotY(actorCh.AiMoveRot, actorCh.BasePos, meanChPos(true, true, false, true)) + StaticDataList.getRandom(-20, 20);
                    if (StaticDataList.random100() < (int)Data.SetupValue.BattleZonbi2DeadRand * 2 * rateCh(false, false, true, false))
                    {
                        actorCh.setdeadFlag(true);
                    }
                }

                battleEffect(actorCh);
                actorSpeek(actorCh);
            }
            moveCh(actorCh);
            return(true);
        }
Esempio n. 14
0
        /// 全コントロールのUpdate
        public void Frame()
        {
            /*
             * Console.WriteLine(GetMs());
             * Console.WriteLine(ctrlHobit.GetEntryNum()+ctrlTo.GetEntryNum()+ctrlHouse.GetEntryNum()+ctrlWall.GetEntryNum());
             * Console.WriteLine();
             */
            countTime++;

            if (changePlAni == true)
            {
                if (changePlMode == false)
                {
//				ctrlPl.changeAnimation(true);
                    changePlMode = true;
                }
                else if (changePlMode == true)
                {
//				ctrlPl.changeAnimation(false);
                    changePlMode = false;
                }
                changePlAni = false;
            }

            makeHouseAndEnTimer();
            if (AddEnemyFromMo == true)
            {
                if (CtrlHobit.stateId == CtrlHobit.CtrlStateId.Move)
                {
                    AddEnemyFromMonument();
                }
                AddEnemyFromMo = false;
            }

            if (AddEnemyFromNecro == true)
            {
                ctrlHobit.EntryAddEnemy((int)Data.Tex2dResId.Necromancer1, new Vector3(AddEnemyPos.X, 34.0f, AddEnemyPos.Z));
                AddEnemyFromNecro = false;
            }

            if (AddHouseFromMo == true)
            {
                AddHouseFromMonument();
                AddHouseFromMo = false;
            }

            if (battleStartFlag == true)
            {
                battleStart();
                battleStartFlag = false;
            }

            if (AddEffectFromEnemy == true)
            {
                ctrlPl.Addeffect(AddEnemyEffectPos);
                AddEffectFromEnemy = false;
            }

            if (AddTower == true)
            {
//			ctrlTo.EntryAddTower(StaticDataList.getRandom((int)Data.Tex2dResId.TowerStart+1,(int)(Data.Tex2dResId.TowerMax)),AddTowerPos);
                ctrlTo.EntryAddTower((int)Data.Tex2dResId.SouryoTower1, AddTowerPos);
                AppSound.GetInstance().PlaySeCamDis(AppSound.SeId.MakeMo, AddTowerPos);
                AddTower = false;
            }

            if (AddWall == true)
            {
                CtrlWall.EntryAddWall(StaticDataList.getRandom((int)Data.Tex2dResId.WallStart + 1, (int)Data.Tex2dResId.WallMax), AddWallPos1, AddWallPos2);
                AddWall = false;
            }

            if (EatCharNumber > 0)
            {
                Console.WriteLine(EatCharNumber);
                Scene2dTex.GetInstance().AddHp(EatCharNumber);
                switch (EatCharNumber)
                {
                case (int)Data.Tex2dResId.Noumin1:              CtrlPl.Hp = CtrlPl.Hp + 1;      break;

                case (int)Data.Tex2dResId.Senshi1:              CtrlPl.Hp = CtrlPl.Hp + 1;      break;

                case (int)Data.Tex2dResId.Souryo1:              CtrlPl.Hp = CtrlPl.Hp + 2;      break;

                case (int)Data.Tex2dResId.Zonbi1:               CtrlPl.Hp = CtrlPl.Hp + 1;      ctrlPl.Poision += 70; break;

                case (int)Data.Tex2dResId.Necromancer1: CtrlPl.Hp = CtrlPl.Hp + 1;      break;

                case (int)Data.Tex2dResId.TowerStart:   CtrlPl.Hp = CtrlPl.Hp + 1;      break;

                case (int)Data.Tex2dResId.SenshiTower1: CtrlPl.Hp = CtrlPl.Hp + 1;      break;

                case (int)Data.Tex2dResId.SenshiTower2: CtrlPl.Hp = CtrlPl.Hp + 1;      break;

                case (int)Data.Tex2dResId.SouryoTower1: CtrlPl.Hp = CtrlPl.Hp + 1;      break;

                case (int)Data.Tex2dResId.SouryoTower2: CtrlPl.Hp = CtrlPl.Hp + 1;      break;

                case (int)Data.Tex2dResId.NouminHouse1: CtrlPl.Hp = CtrlPl.Hp + 1;      break;

                case (int)Data.Tex2dResId.NouminHouse2: CtrlPl.Hp = CtrlPl.Hp + 1;      break;

                case (int)Data.Tex2dResId.NouminHouse3: CtrlPl.Hp = CtrlPl.Hp + 1;      break;

                case (int)Data.Tex2dResId.NouminHouse4: CtrlPl.Hp = CtrlPl.Hp + 1;      break;

                case (int)Data.Tex2dResId.NouminHouse5: CtrlPl.Hp = CtrlPl.Hp + 1;      break;

                case (int)Data.Tex2dResId.SenshiHouse1: CtrlPl.Hp = CtrlPl.Hp + 1;      break;

                case (int)Data.Tex2dResId.SenshiHouse2: CtrlPl.Hp = CtrlPl.Hp + 1;      break;

                case (int)Data.Tex2dResId.SenshiHouse3: CtrlPl.Hp = CtrlPl.Hp + 1;      break;

                case (int)Data.Tex2dResId.SenshiHouse4: CtrlPl.Hp = CtrlPl.Hp + 1;      break;

                case (int)Data.Tex2dResId.SenshiHouse5: CtrlPl.Hp = CtrlPl.Hp + 1;      break;

                case (int)Data.Tex2dResId.SouryoHouse1: CtrlPl.Hp = CtrlPl.Hp + 1;      break;

                case (int)Data.Tex2dResId.SouryoHouse2: CtrlPl.Hp = CtrlPl.Hp + 1;      break;

                case (int)Data.Tex2dResId.SouryoHouse3: CtrlPl.Hp = CtrlPl.Hp + 1;      break;

                case (int)Data.Tex2dResId.SouryoHouse4: CtrlPl.Hp = CtrlPl.Hp + 1;      break;

                case (int)Data.Tex2dResId.SouryoHouse5: CtrlPl.Hp = CtrlPl.Hp + 1;      break;

                case (int)Data.Tex2dResId.Gareki:               CtrlPl.Hp = CtrlPl.Hp + 0.5f;   break;

                case (int)Data.Tex2dResId.GarekiWall:   CtrlPl.Hp = CtrlPl.Hp + 0.5f;   break;

                case (int)Data.Tex2dResId.MakingWall1:  CtrlPl.Hp = CtrlPl.Hp + 0.5f;   break;

                case (int)Data.Tex2dResId.MakingWall2:  CtrlPl.Hp = CtrlPl.Hp + 0.5f;   break;

                case (int)Data.Tex2dResId.MakingWall3:  CtrlPl.Hp = CtrlPl.Hp + 0.5f;   break;
                }
                EatCharNumber = 0;
            }

            switch (SortNumber)
            {
            case 0: ctrlTo.setActiveChList();               ctrlTo.SortNear();                      break;

            case 1: ctrlWall.setActiveChList();             ctrlWall.SortNear();            break;

            case 2: ctrlHouse.setActiveChList();    ctrlHouse.SortNear();           break;

            case 3: ctrlMo.setActiveChList();               ctrlMo.SortNear();                      break;

            case 4: ctrlHobit.setActiveChList();    ctrlHobit.SortNear();           break;
            }

            SortNumber++;
            if (SortNumber > 8)
            {
                SortNumber = 0;
            }

            /*
             * threadEn = new Thread(new ThreadStart(ThreadEnFrame));
             * threadOther = new Thread(new ThreadStart(ThreadOtherFrame));
             * threadEn.Start();
             * threadOther.Start();
             */


            ctrlHobit.Frame();
            ctrlTo.Frame();
            ctrlWall.Frame();
            ctrlHouse.Frame();
            ctrlStg.Frame();
            ctrlEffect.Frame();
            ctrlMo.Frame();
            ctrlCam.Frame();
            ctrlStg.Frame();
            ctrlEffect.Frame();
            ctrlPl.Frame();
            FrameEat();
            Scene2dTex.GetInstance().SetHp(CtrlPl.Hp);
            Scene2dTex.GetInstance().frame();


            if (countTime % (int)Data.SetupValue.TweetTime == 0)
            {
                //SocketSample.GetInstance().sendData(StaticDataList.getRandom(1,5),StaticDataList.getRandom(0,10));
            }
        }
Esempio n. 15
0
        /// 配置情報を読み込む
        public static bool Load()
        {
            // ファイルが存在しない場合は内部リストから生成する
            if (File.Exists(FILE_NAME) == false)
            {
                loadFirstSetup();
                return(false);
            }

            GameCtrlManager ctrlResMgr = GameCtrlManager.GetInstance();

            FileStream fs = new FileStream(FILE_NAME, FileMode.Open, FileAccess.Read);

            // ファイルを新規作成
            BinaryReader r = new BinaryReader(fs);

            Vector3 trgPos   = new Vector3();
            Vector3 trgScale = new Vector3();
            Vector3 trgRot   = new Vector3();
            int     trgType;

            /// プレイヤー情報の読み取り
            ///-----------------------------------------------------------
            trgPos.X = r.ReadSingle();
            trgPos.Y = r.ReadSingle();
            trgPos.Z = r.ReadSingle();
            trgRot.Y = r.ReadSingle();
//        ctrlResMgr.CtrlPl.SetPlace( trgRot.Y, trgPos );
//        ctrlResMgr.CtrlCam.SetCamRotY( trgRot.Y );

            /// 敵情報の読み取り
            ///-----------------------------------------------------------
            int enNum = r.ReadInt32();

            for (int i = 0; i < enNum; i++)
            {
                trgType  = r.ReadInt32();
                trgPos.X = r.ReadSingle();
                trgPos.Y = r.ReadSingle();
                trgPos.Z = r.ReadSingle();
                trgRot.Y = r.ReadSingle();

                //ctrlResMgr.CtrlHobit.EntryAddEnemy( trgType, trgRot.Y, trgPos,(int)rand.Next(0,4) );
            }


            /// 備品情報の読み取り
            ///-----------------------------------------------------------
            r.ReadInt32(); /// バージョン
            int fixNum = r.ReadInt32();

            for (int i = 0; i < fixNum; i++)
            {
                trgType    = r.ReadInt32();
                trgPos.X   = r.ReadSingle();
                trgPos.Y   = r.ReadSingle();
                trgPos.Z   = r.ReadSingle();
                trgRot.X   = r.ReadSingle();
                trgRot.Y   = r.ReadSingle();
                trgRot.Z   = r.ReadSingle();
                trgScale.X = r.ReadSingle();
                trgScale.Y = r.ReadSingle();
                trgScale.Z = r.ReadSingle();

                //           ctrlResMgr.CtrlFix.EntryAddFix( trgType, trgRot, trgScale, trgPos );
            }

            r.Close();
            fs.Close();

            trgPos.X = -63.2f;
            trgPos.Y = 18.0f;
            trgPos.Z = 100.2f;
            trgRot.Y = 265.0f;
            ctrlResMgr.CtrlPl.SetPlace(trgRot.Y, trgPos);
            ctrlResMgr.CtrlCam.SetCamRotY(trgRot.Y);

            ctrlResMgr.CtrlMo.EntryAddMonument(1, 0, new Vector3(-117.4f, 20.0f, 106.0f));
            ctrlResMgr.CtrlHobit.EntryAddEnemy(StaticDataList.getRandom((int)Data.Tex2dResId.CharStart + 1, (int)Data.Tex2dResId.NormalCharMax), new Vector3(-117.4f, 20.0f, 106.0f));
            ctrlResMgr.CtrlTo.EntryAddTower(StaticDataList.getRandom((int)Data.Tex2dResId.TowerStart + 1, (int)Data.Tex2dResId.TowerMax), new Vector3(-120.4f, 30.0f, 103.0f));
            ctrlResMgr.CtrlTo.EntryAddTower(StaticDataList.getRandom((int)Data.Tex2dResId.TowerStart + 1, (int)Data.Tex2dResId.TowerMax), new Vector3(-120.4f, 30.0f, 109.0f));
            ctrlResMgr.CtrlTo.EntryAddTower(StaticDataList.getRandom((int)Data.Tex2dResId.TowerStart + 1, (int)Data.Tex2dResId.TowerMax), new Vector3(-114.4f, 30.0f, 109.0f));
            ctrlResMgr.CtrlTo.EntryAddTower(StaticDataList.getRandom((int)Data.Tex2dResId.TowerStart + 1, (int)Data.Tex2dResId.TowerMax), new Vector3(-114.4f, 30.0f, 103.0f));
            ctrlResMgr.CtrlWall.EntryAddWall(StaticDataList.getRandom((int)Data.Tex2dResId.WallStart + 1, (int)Data.Tex2dResId.WallMax), new Vector3(-120.4f, 30.0f, 103.0f), new Vector3(-120.4f, 30.0f, 109.0f));
            ctrlResMgr.CtrlWall.EntryAddWall(StaticDataList.getRandom((int)Data.Tex2dResId.WallStart + 1, (int)Data.Tex2dResId.WallMax), new Vector3(-120.4f, 30.0f, 109.0f), new Vector3(-114.4f, 30.0f, 109.0f));
            ctrlResMgr.CtrlWall.EntryAddWall(StaticDataList.getRandom((int)Data.Tex2dResId.WallStart + 1, (int)Data.Tex2dResId.WallMax), new Vector3(-114.4f, 30.0f, 109.0f), new Vector3(-114.4f, 30.0f, 103.0f));
            ctrlResMgr.CtrlWall.EntryAddWall(StaticDataList.getRandom((int)Data.Tex2dResId.WallStart + 1, (int)Data.Tex2dResId.WallMax), new Vector3(-114.4f, 30.0f, 103.0f), new Vector3(-120.4f, 30.0f, 103.0f));

            ctrlResMgr.CtrlHouse.EntryAddHouse((int)Data.Tex2dResId.BossMonument, new Vector3((int)Data.SetupValue.EnemyMonumentPosX, 20.0f, (int)Data.SetupValue.EnemyMonumentPosY));
            return(true);
        }
Esempio n. 16
0
        private void battleStart()
        {
//		int number = ctrlHobit.GetEntryNum();
            for (int i = 0; i < ZonbiNumber; i++)
            {
                ctrlHobit.EntryAddEnemy((int)Data.Tex2dResId.Zonbi1, new Vector3(EnemyMoPos.X + StaticDataList.getRandom(-100, 100) / 10.0f, EnemyMoPos.Y, EnemyMoPos.Z + StaticDataList.getRandom(-100, 100) / 10.0f));
            }
//		ctrlHobit.EntryAddEnemy( (int)Data.Tex2dResId.Necromancer1,new Vector3(-70 + StaticDataList.getRandom(-100,100)/10.0f, 45.0f, 65 + StaticDataList.getRandom(-100,100)/10.0f));
        }
Esempio n. 17
0
 public void changeText()
 {
     tweetNumber = (int)StaticDataList.getRandom(0, 9);
     sprite      = new Sprite(tweet.tweetlist[TexId, tweetNumber], 0xffffffff, currentFont, 0, 0);
     scaleX     *= tweet.tweetlist[TexId, tweetNumber].Length / 9.0f;
 }
Esempio n. 18
0
        private bool frameMurderMove(ActorChHobit actorCh)
        {
            actorCh.AiMoveCount--;
            if (actorCh.AiMoveCount < 0)
            {
                if (actorCh.texId == (int)Data.Tex2dResId.Noumin1)
                {
                    actorCh.AiMoveRot += Common.VectorUtil.GetRotY(actorCh.AiMoveRot, actorCh.BasePos, EnemyCenterPos) + StaticDataList.getRandom(-20, 20);
                }
                if (actorCh.texId == (int)Data.Tex2dResId.Senshi1)
                {
                    actorCh.AiMoveRot += Common.VectorUtil.GetRotY(actorCh.AiMoveRot, actorCh.BasePos, EnemyCenterPos) + StaticDataList.getRandom(-20, 20);
                }
                if (actorCh.texId == (int)Data.Tex2dResId.Souryo1)
                {
                    randomMoveToTowerWall(actorCh);
                }
                if (actorCh.texId == (int)Data.Tex2dResId.Zonbi1)
                {
                    actorCh.AiMoveRot += Common.VectorUtil.GetRotY(actorCh.AiMoveRot, actorCh.BasePos, PriestCenterPos + StaticDataList.getRandom(-20, 20));
                }
                if (actorCh.texId == (int)Data.Tex2dResId.Necromancer1)
                {
                    actorCh.AiMoveRot            += Common.VectorUtil.GetRotY(actorCh.AiMoveRot, actorCh.BasePos, EnemyPos / ZonbiList.Count) + StaticDataList.getRandom(-20, 20);
                    ctrlResMgr.AddEnemyFromNecro  = true;
                    ctrlResMgr.AddEnemyPos        = actorCh.BasePos;
                    ctrlResMgr.AddEffectFromEnemy = true;
                    ctrlResMgr.AddEnemyEffectPos  = actorCh.BasePos;
                }


                actorSpeek(actorCh);
            }
            moveCh(actorCh);
            return(true);
        }