Пример #1
0
        private void MotionInit()
        {
            //下向き
            for (int i = 0; i < 4; i++)
            {
                motion.Add(i, new Rectangle(73 * (i % 4), 89 * (i / 4), 73, 80));
            }
            //上向き
            for (int i = 12; i < 16; i++)
            {
                motion.Add(i, new Rectangle(32 * (i % 4), 32 * (i / 4), 32, 32));
            }

            //右向き
            for (int i = 8; i < 12; i++)
            {
                motion.Add(i, new Rectangle(32 * (i % 4), 32 * (i / 4), 32, 32));
            }
            //左向き
            for (int i = 4; i < 8; i++)
            {
                motion.Add(i, new Rectangle(73 * (i % 4), 89 * (i / 4), 73, 80));
            }
            direction      = Direction.RIHT;
            directionRange = new Dictionary <Direction, Range>()
            {
                { Direction.RIHT, new Range(0, 3) },
                { Direction.LEFT, new Range(4, 7) }
            };

            motion.Initialize(directionRange[direction], new CountDownTimer(0.2f));
        }
Пример #2
0
        public void Initialize()
        {
            isEndFlag = false;
            StageState.sceneNumber = 1;
            gameObjectManager.Initialize();

            map = new Map(GameDevice.Instance());
            map.Load("Title.csv", "./csv/");
            gameObjectManager.Add(map);

            //最初に回っている
            player3 = new Player3(new Vector2(128 * 6 + 15, 128 * 5 + 15), GameDevice.Instance(), gameObjectManager);
            gameObjectManager.Add(player3);

            //最初に止まっている
            player4 = new Player4(new Vector2(128 * 7 + 18, 128 * 5 + 18), GameDevice.Instance(), gameObjectManager);
            gameObjectManager.Add(player4);

            player3.SetPos(player4.GetPosition());

            stop3 = player3.IsStop();
            stop4 = player4.IsStop();

            metoronome.Initialize();
            metoronome.SetBpm(60);

            motion.Add(0, new Rectangle(64 * 0, 64 * 0, 64, 64));
            motion.Add(1, new Rectangle(64 * 1, 64 * 0, 64, 64));
            motion.Add(2, new Rectangle(64 * 0, 64 * 1, 64, 64));
            motion.Add(3, new Rectangle(64 * 1, 64 * 1, 64, 64));
            motion.Initialize(new Range(0, 3), new CountDownTimer(0.1f));
        }
Пример #3
0
        private void MotionInit()
        {
            //下向き
            for (int i = 0; i < 3; i++)
            {
                motion.Add(i, new Rectangle(32 * (i % 3), 32 * (i / 3), 32, 32));
            }
            //上向き
            for (int i = 9; i < 12; i++)
            {
                motion.Add(i, new Rectangle(32 * (i % 3), 32 * (i / 3), 32, 32));
            }

            //右向き
            for (int i = 6; i < 9; i++)
            {
                motion.Add(i, new Rectangle(32 * (i % 3), 32 * (i / 3), 32, 32));
            }
            //左向き
            for (int i = 3; i < 6; i++)
            {
                motion.Add(i, new Rectangle(32 * (i % 3), 32 * (i / 3), 32, 32));
            }
            direction      = Direction.RIHT;
            directionRange = new Dictionary <Direction, Range>()
            {
                { Direction.RIHT, new Range(6, 8) },
                { Direction.LEFT, new Range(3, 5) }
            };

            motion.Initialize(directionRange[direction], new CountDownTimer(0.2f));
        }
Пример #4
0
 public GorlBlock(Vector2 position, GameDevice gameDevice) :
     base("GorlMove", position, 96, 96, gameDevice)
 {
     motion = new Motion();
     motion.Add(0, new Rectangle(96 * 0, 96 * 0, 96, 96));
     motion.Add(1, new Rectangle(96 * 1, 96 * 0, 96, 96));
     motion.Add(2, new Rectangle(96 * 0, 96 * 1, 96, 96));
     motion.Add(3, new Rectangle(96 * 1, 96 * 1, 96, 96));
     motion.Initialize(new Range(0, 3), new CountDownTimer(0.1f));
 }
Пример #5
0
        public void Initialize()
        {
            isEndFlag              = false;
            StageState.stageStage  = 1;
            StageState.sceneNumber = 2;
            gameObjectManager.Initialize();
            map2 = new Map2(GameDevice.Instance());
            if (StageState.worldsStage <= 2)
            {
                map2.Load("StageSelect1.csv", "./csv/");
            }
            else
            {
                map2.Load("StageSelect2.csv", "./csv/");
            }
            gameObjectManager.Add(map2);
            sound.PlayBGM("WorldSelect");

            //最初に回っている
            player = new Player(new Vector2(96 * 2 + 15, 96 * 6 + 15), GameDevice.Instance(), gameObjectManager, 0.1f);
            gameObjectManager.Add(player);


            //最初に止まっている
            player2 = new Player2(new Vector2(96 * 1 + 15, 96 * 6 + 15), GameDevice.Instance(), gameObjectManager, player.AddRadian());
            gameObjectManager.Add(player2);
            player.SetPos(player2.GetPosition());
            camera.SetPosition(new Vector2(Screen.Width / 2 - 48, Screen.Height / 2));
            cameraPos       = player2.GetPosition();
            cameraDirection = CameraDirection.IDLE;

            motion.Add(0, new Rectangle(500 * 0, 500 * 0, 500, 500));
            motion.Add(1, new Rectangle(500 * 1, 500 * 0, 500, 500));
            motion.Add(2, new Rectangle(500 * 2, 500 * 0, 500, 500));
            motion.Add(3, new Rectangle(500 * 3, 500 * 0, 500, 500));
            motion.Add(4, new Rectangle(500 * 0, 500 * 1, 500, 500));
            motion.Add(5, new Rectangle(500 * 1, 500 * 1, 500, 500));
            motion.Add(6, new Rectangle(500 * 2, 500 * 1, 500, 500));
            motion.Add(7, new Rectangle(500 * 3, 500 * 1, 500, 500));
            motion.Add(8, new Rectangle(500 * 2, 500 * 1, 500, 500));
            motion.Add(9, new Rectangle(500 * 1, 500 * 1, 500, 500));
            motion.Add(10, new Rectangle(500 * 0, 500 * 1, 500, 500));
            motion.Add(11, new Rectangle(500 * 3, 500 * 0, 500, 500));
            motion.Add(12, new Rectangle(500 * 2, 500 * 0, 500, 500));
            motion.Add(13, new Rectangle(500 * 1, 500 * 0, 500, 500));

            motion.Initialize(new Range(0, 13), new CountDownTimer(0.1f));

            motion2.Add(0, new Rectangle(64 * 0, 64 * 0, 64, 64));
            motion2.Add(1, new Rectangle(64 * 1, 64 * 0, 64, 64));
            motion2.Add(2, new Rectangle(64 * 0, 64 * 1, 64, 64));
            motion2.Add(3, new Rectangle(64 * 1, 64 * 1, 64, 64));
            motion2.Initialize(new Range(0, 3), new CountDownTimer(0.1f));
        }
Пример #6
0
        public void Initialize(SceneType scene)
        {
            endFlag = false;
            motion  = new Motion();
            for (int i = 0; i < 30; i++)
            {
                motion.Add(i, new Rectangle(170 * 7, 0, 170, 70));
            }
            for (int i = 0; i < 7; i++)
            {
                motion.Add(30 + i, new Rectangle(170 * i, 0, 170, 70));
            }
            motion.Initialize(new Range(0, 36), new Timer(0.05f));

            fog = new FogBackground(gameDevice);
        }
Пример #7
0
        public override void Initialize()
        {
            position = new Vector2(Screen.Width / 2, Screen.Height / 2) + new Vector2(0, 480 - 32);
            motion   = new Motion();

            //下向き
            for (int i = 0; i < 4; i++)
            {
                motion.Add(i, new Rectangle(32 * (i % 4), 32 * (i / 4), 32, 32));
            }
            //上向き
            for (int i = 4; i < 8; i++)
            {
                motion.Add(i, new Rectangle(32 * (i % 4), 32 * (i / 4), 32, 32));
            }

            //右向き
            for (int i = 8; i < 12; i++)
            {
                motion.Add(i, new Rectangle(32 * (i % 4), 32 * (i / 4), 32, 32));
            }
            //左向き
            for (int i = 12; i < 16; i++)
            {
                motion.Add(i, new Rectangle(32 * (i % 4), 32 * (i / 4), 32, 32));
            }

            motion.Initialize(new Range(0, 3), new CountDownTimer(0.2f));

            direction      = Direction.DOWN;
            directionRange = new Dictionary <Direction, Range>()
            {
                { Direction.DOWN, new Range(0, 3) },
                { Direction.UP, new Range(4, 7) },
                { Direction.RIGHT, new Range(8, 11) },
                { Direction.LEFT, new Range(12, 15) }
            };

            stepVelocity = Vector2.Zero;
            stepTimer    = new CountUpTimer(stepTime);
            stepRelease  = true;
        }
Пример #8
0
        /// <summary>
        /// コンストラクタ
        /// </summary>
        /// <param name="position"></param>
        /// <param name="gameDevice"></param>
        /// <param name="width"></param>
        /// <param name="height"></param>
        public Player(Vector2 position, GameDevice gameDevice, int width, int height, Boss boss)
        {
            this.position     = position;
            this.width        = width;
            this.height       = height;
            this.boss         = boss;
            Hp                = 100;
            AttackPower       = 10;
            weakAttackCounter = 0;
            rectangle         = new Rectangle(0, 0, 30, 128);
            gameDevice        = GameDevice.Instance();
            sound             = gameDevice.GetSound();


            #region アニメーション関連
            //idleアニメーション設定
            motion = new Motion(
                new Range(0, 1),
                new CountDownTimer(0.3f));

            for (int i = 0; i < 2; i++)
            {
                motion.Add(i, new Rectangle(128 * i, 0, 128, 128));
            }

            //runアニメーション設定
            motionRun = new Motion(
                new Range(0, 3),
                new CountDownTimer(0.3f));

            for (int i = 0; i < 4; i++)
            {
                motionRun.Add(i, new Rectangle(128 * i, 0, 128, 128));
            }

            //スキルエフェクト
            skillmotion = new Motion(
                new Range(0, 9),
                new CountDownTimer(0.075f));
            for (int i = 0; i < 10; i++)
            {
                skillmotion.Add(i, new Rectangle(0, 240 * i, 320, 240));
            }

            //スキルエフェクト五右衛門
            skillGmotion = new Motion(
                new Range(0, 9),
                new CountDownTimer(0.075f));
            for (int i = 0; i < 9; i++)
            {
                skillGmotion.Add(i, new Rectangle(0, 240 * i, 320, 240));
            }
            #endregion
        }
Пример #9
0
        public Player2(Vector2 position, GameDevice gameDevice, IGameObjectMediator mediator, float addRadian)
            : base("player4", position, 48, 48, gameDevice)
        {
            size            = 64;
            this.mediator   = mediator;
            reset           = false;
            stop            = true;
            this.addRadian  = addRadian;
            _hit            = false;
            nextscene       = 0;
            prevRadian      = 0;
            particleManager = new ParticleManager();

            motion = new Motion();

            motion.Add(0, new Rectangle(size * 0, size * 0, size, size));
            motion.Add(1, new Rectangle(size * 1, size * 0, size, size));
            motion.Add(2, new Rectangle(size * 0, size * 1, size, size));
            motion.Add(3, new Rectangle(size * 1, size * 1, size, size));
            motion.Initialize(new Range(0, 3), new CountDownTimer(0.1f));
        }
Пример #10
0
        public override void Initialize()
        {
            position = new Vector2(300, 400);

            motion = new Motion();
            //下向き
            for (int i = 0; i < 4; i++)
            {
                motion.Add(i, new Rectangle(64 * (i % 4), 64 * (i / 4), 64, 64));
            }
            //上向き
            for (int i = 4; i < 8; i++)
            {
                motion.Add(i, new Rectangle(64 * (i % 4), 64 * (i / 4), 64, 64));
            }

            //右向き
            for (int i = 8; i < 12; i++)
            {
                motion.Add(i, new Rectangle(64 * (i % 4), 64 * (i / 4), 64, 64));
            }
            //左向き
            for (int i = 12; i < 16; i++)
            {
                motion.Add(i, new Rectangle(64 * (i % 4), 64 * (i / 4), 64, 64));
            }
            //下向きの画像の範囲0~3と切り替え時間を設定
            motion.Initialize(new Range(0, 15), new CountDownTimer(0.2f));
            //最初は下向きに
            direction      = Direction.DOWN;
            directionRange = new Dictionary <Direction, Range>()
            {
                { Direction.DOWN, new Range(0, 3) },
                { Direction.UO, new Range(4, 7) },
                { Direction.RIHT, new Range(8, 11) },
                { Direction.LEFT, new Range(12, 15) }
            };
        }
Пример #11
0
        public Player(Vector2 position) : base("kamato", position, 32, 8, ActorSide.Player)
        {
            shotTimer        = new CountDownTimer(0.1f);
            hormingShotTimer = new CountDownTimer(0.5f);
            sound            = GameDevice.Instance().GetSound();
            invinsibleTimer  = new CountDownTimer(invinsibleTime);

            motion = new Motion();
            for (int i = 0; i < 4; i++)
            {
                motion.Add(i, new Rectangle(32 * i, 0, 32, 32));
            }
            motion.Initialize(new Range(0, 3), new CountDownTimer(0.1f));
        }
Пример #12
0
 public void InitializeAnim()
 {
     motion = new Motion(new Range(0, nowAnim.KeyCount - 1), new Timer(nowAnim.KeySecond), nowAnim.IsLoop);
     for (int i = 0; i < nowAnim.KeyCount; i++)
     {
         motion.Add(
             i,
             new Rectangle((i % nowAnim.RowCount) * (int)animSpriteSize.X,
                           (i / nowAnim.RowCount) * (int)animSpriteSize.Y,
                           (int)animSpriteSize.X,
                           (int)animSpriteSize.Y)
             );
     }
 }
Пример #13
0
        private Motion motion;        //モーション

        /// <summary>
        /// コンストラクタ
        /// </summary>
        /// <param name="position">初期位置</param>
        /// <param name="gameDevice">ゲームデバイス</param>
        /// <param name="fileName">出力したいテキストファイル名</param>
        public MessageBox(Vector2 position, GameDevice gameDevice, string fileName)
            : base("owl_motion", position, 64, 64, gameDevice)
        {
            this.fileName = fileName;
            isMessage     = false;
            timer         = new CountDownTimer(5);

            motion = new Motion();
            for (int i = 0; i < 5; i++)
            {
                motion.Add(i, new Rectangle(i * 64, 0, 64, 64));
            }
            motion.Initialize(new Range(0, 4), new CountDownTimer(0.20f));
        }
Пример #14
0
        public SmokeEffect(Vector2 position, GameDevice gameDevice)
            : base("smoke_effect", position, 64, 64, gameDevice)
        {
            this.Position = position;

            motion = new Motion();
            for (int i = 0; i < 3; i++)
            {
                motion.Add(i, new Rectangle(i * 64, 0, 64, 64));
            }
            motion.Initialize(new Range(0, 2), new CountDownTimer(0.15f));

            timer = new CountDownTimer(0.45f);
        }
Пример #15
0
        public void Initialize()
        {
            isEndFlag = false;
            Tmotion   = new Motion();
            Tmotion.Add(0, new Rectangle(250 * 0, 250 * 0, 250, 250));
            Tmotion.Add(1, new Rectangle(250 * 0, 250 * 0, 250, 250));
            Tmotion.Add(2, new Rectangle(250 * 1, 250 * 0, 250, 250));
            Tmotion.Add(3, new Rectangle(250 * 1, 250 * 0, 250, 250));
            Tmotion.Initialize(new Range(0, 1), new CountDownTimer(1));

            Smotion = new Motion();
            Smotion.Add(0, new Rectangle(250 * 0, 250 * 0, 250, 250));
            Smotion.Add(1, new Rectangle(250 * 0, 250 * 0, 250, 250));
            Smotion.Add(2, new Rectangle(250 * 1, 250 * 0, 250, 250));
            Smotion.Add(3, new Rectangle(250 * 1, 250 * 0, 250, 250));
            Smotion.Initialize(new Range(0, 1), new CountDownTimer(1));

            Rmotion = new Motion();
            Rmotion.Add(0, new Rectangle(250 * 0, 250 * 0, 250, 250));
            Rmotion.Add(1, new Rectangle(250 * 0, 250 * 0, 250, 250));
            Rmotion.Add(2, new Rectangle(250 * 1, 250 * 0, 250, 250));
            Rmotion.Add(3, new Rectangle(250 * 1, 250 * 0, 250, 250));
            Rmotion.Initialize(new Range(0, 1), new CountDownTimer(1));

            Tdirection   = Direction.NO;
            Sdirection   = Direction.NO;
            Rdirection   = Direction.NO;
            directiondic = new Dictionary <Direction, Range>()
            {
                { Direction.NO, new Range(0, 1) },
                { Direction.YES, new Range(2, 3) },
            };

            sentakucnt      = 0;
            particleManager = new ParticleManager();
            sound           = GameDevice.Instance().GetSound();
        }
Пример #16
0
        public Slash(CharacterBase actor, Vector3 position1, string name) : base()
        {
            this.actor     = actor;
            this.position1 = position1;
            this.name      = name;
            alpha          = 1.0f;
            size           = new Vector2(10, 10);

            motion = new Motion();
            for (int i = 0; i < 7; i++)
            {
                motion.Add(i, new Rectangle(256 * i, 0, 256, 256));
            }
            motion.Initialize(new Range(0, 6), new Timer(0.015f));
        }
Пример #17
0
        ///<summary>
        ///初期化メソッド
        /// </summary>
        public override void Initialize()
        {
            position = new Vector2(300, 400);

            motion = new Motion();

            /*
             * //下向き
             * motion.Add(0, new Rectangle(64 * 0, 64 * 0, 64, 64));
             * motion.Add(1, new Rectangle(64 * 1, 64 * 0, 64, 64));
             * motion.Add(2, new Rectangle(64 * 2, 64 * 0, 64, 64));
             * motion.Add(3, new Rectangle(64 * 3, 64 * 0, 64, 64));
             *
             * //上向き
             * motion.Add(4, new Rectangle(64 * 0, 64 * 1, 64, 64));
             * motion.Add(5, new Rectangle(64 * 1, 64 * 1, 64, 64));
             * motion.Add(6, new Rectangle(64 * 2, 64 * 1, 64, 64));
             * motion.Add(7, new Rectangle(64 * 3, 64 * 1, 64, 64));
             *
             * //下向き
             * motion.Add(8, new Rectangle(64 * 0, 64 * 2, 64, 64));
             * motion.Add(9, new Rectangle(64 * 1, 64 * 2, 64, 64));
             * motion.Add(10, new Rectangle(64 * 2, 64 * 2, 64, 64));
             * motion.Add(11, new Rectangle(64 * 3, 64 * 2, 64, 64));
             *
             * //下向き
             * motion.Add(12, new Rectangle(64 * 0, 64 * 3, 64, 64));
             * motion.Add(13, new Rectangle(64 * 1, 64 * 3, 64, 64));
             * motion.Add(14, new Rectangle(64 * 2, 64 * 3, 64, 64));
             * motion.Add(15, new Rectangle(64 * 3, 64 * 3, 64, 64));
             */

            for (int i = 0; i <= 15; i++)
            {
                motion.Add(i, new Rectangle(64 * (i % 4), 64 * (int)(i / 4), 64, 64));
            }

            motion.Initialize(new Range(0, 15), new CountDownTimer(0.2f));

            direction      = Direction.DOWN;
            directionRange = new Dictionary <Direction, Range>()
            {
                { Direction.DOWN, new Range(0, 3) },
                { Direction.UP, new Range(4, 7) },
                { Direction.RIGHT, new Range(8, 11) },
                { Direction.LEFT, new Range(12, 15) }
            };
        }
Пример #18
0
 public void Initialize()
 {
     isEndFlag = false;
     motion    = new Motion();
     motion.Add(0, new Rectangle(64 * 0, 0, 64, 64));
     motion.Add(1, new Rectangle(64 * 1, 0, 64, 64));
     motion.Add(2, new Rectangle(64 * 2, 0, 64, 64));
     motion.Add(3, new Rectangle(64 * 3, 0, 64, 64));
     motion.Add(4, new Rectangle(64 * 4, 0, 64, 64));
     motion.Add(5, new Rectangle(64 * 5, 0, 64, 64));
     motion.Initialize(new Range(0, 5), new CountDownTimer(0.05f));
 }
Пример #19
0
 public Player(Vector2 position, GameDevice gameDevice, IGameObjectMediator mediator)
     : base("P2", position, 64, 64, gameDevice)
 {
     velocity      = Vector2.Zero;
     this.mediator = mediator;
     slideModify   = Vector2.Zero;
     yVectol       = 0.1f;
     xVectol       = 2f;
     ySpeedMax     = 4;
     xSpeedMax     = 8;
     hp            = 1000;
     goal          = false;
     motion        = new Motion();
     for (int i = 0; i < 2; i++)
     {
         motion.Add(i, new Rectangle(64, 66 * (i / 2), 64, 62));
     }
     motion.Initialize(new Range(0, 1), new CountDownTimer(0.2f));
 }
Пример #20
0
        public Player(Vector3 position, PlayerStatus status, GameDevice gameDevice, CharacterManager characterManager, ParticleManager pManager, GameManager gameManager, DungeonUI ui)
            : base(new CollisionSphere(position, 5.0f), "player", characterManager, "プレイヤー", "White")
        {
            tag = "Player";

            this.gameDevice  = gameDevice;
            input            = gameDevice.InputState;
            projector        = gameDevice.MainProjector;
            this.gameManager = gameManager;
            this.pManager    = pManager;
            this.status      = status;
            this.ui          = ui;
            aiManager        = new AiManager_Player(gameDevice.InputState, status);
            aiManager.Initialize(this);
            motion = new Motion();
            rand   = new Random();
            for (int i = 0; i < 6; i++)
            {
                motion.Add(i, new Rectangle(i * 64, 0, 64, 64));
            }
            motion.Initialize(new Range(0, 5), new Timer(0.1f));
        }
Пример #21
0
        /// <summary>
        /// 初期化
        /// </summary>
        public void Initialize()
        {
            isEndFlag = false;

            motion = new Motion();

            /*
             * motion.Add(0, new Rectangle(64 * 0, 0, 64, 64));
             * motion.Add(1, new Rectangle(64 * 1, 0, 64, 64));
             * motion.Add(2, new Rectangle(64 * 2, 0, 64, 64));
             * motion.Add(3, new Rectangle(64 * 3, 0, 64, 64));
             * motion.Add(4, new Rectangle(64 * 4, 0, 64, 64));
             * motion.Add(5, new Rectangle(64 * 5, 0, 64, 64));
             */

            for (int i = 0; i <= 5; i++)
            {
                motion.Add(i, new Rectangle(64 * i, 0, 64, 64));
            }

            motion.Initialize(new Range(0, 5), new CountDownTimer(0.05f));
        }
Пример #22
0
        /// <summary>
        /// クローン
        /// </summary>
        /// <param name="status"></param>
        /// <param name="collision"></param>
        /// <param name="manager"></param>
        /// <param name="textureName"></param>
        /// <param name="characterManager"></param>
        public EnemyBase(Status status, CollisionSphere collision, BaseAiManager manager, string textureName, CharacterManager characterManager, int exp, GameDevice gameDevice, string name, int id, string color, int attackID)
            : base(collision, textureName, characterManager, name, color)
        {
            tag             = "Enemy";
            this.status     = status;
            this.exp        = exp;
            this.name       = name;
            this.gameDevice = gameDevice;
            this.id         = id;
            this.attackID   = attackID;
            aiManager       = manager;
            motion          = new Motion();
            pManager        = new ParticleManager(gameDevice);
            for (int i = 0; i < 6; i++)
            {
                motion.Add(i, new Rectangle(i * 64, 0, 64, 64));
            }

            motion.Initialize(new Range(0, 5), new Timer(0.1f));
            aiManager.Initialize(this);
            InitRange();
            Initialize();
        }
Пример #23
0
        public void Initialize()
        {
            StageState.isClear     = false;
            StageState.isMusic     = false;
            StageState.sceneNumber = 3;
            isEndFlag = false;
            playNow   = false;
            isstart   = false;
            _end      = false;
            safe      = false;
            cnt       = 0;
            alpha     = 0;
            end       = 0;
            gameObjectManager.Initialize();
            firstpositions = new List <int>()
            {
                5, 5, 7, 6, 6, 5, 13, 7, 10, 24, 5, 14, 5, 11, 14
            };
            map2 = new Map2(GameDevice.Instance());

            map2.Load(StageState.worldsStage + "-" + StageState.stageStage + ".csv", "./csv/");
            gameObjectManager.Add(map2);

            if (StageState.worldsStage == 2 || (StageState.worldsStage == 1 && StageState.stageStage == 5))
            {
                bpm       = 150;
                addradian = 0.125f;
                motionbpm = 0.4f;
            }
            else
            {
                bpm       = 120;
                addradian = 0.1f;
                motionbpm = 0.5f;
            }

            positions = new int[, ]
            {
                { 5, 5, 7, 6, 6 },
                { 5, 13, 7, 10, 24 },
                { 5, 4, 5, 11, 14 },
            };
            for (int i = 1; i <= 3; i++)
            {
                for (int j = 1; j <= 5; j++)
                {
                    if (StageState.worldsStage == i)
                    {
                        if (StageState.stageStage == j)
                        {
                            playerposition = new Vector2(96 * 5 + 16, 96 * positions[i - 1, j - 1] + 16);
                        }
                    }
                }
            }

            player       = new Player(new Vector2(playerposition.X + 96, playerposition.Y), GameDevice.Instance(), gameObjectManager, addradian);
            player.stop  = true;
            player.alpha = 1;
            gameObjectManager.Add(player);

            //最初に止まっている
            player2 = new Player2(playerposition, GameDevice.Instance(), gameObjectManager, player.AddRadian());
            gameObjectManager.Add(player2);
            camera.SetPosition(player2.GetPosition());
            cameraPos       = player2.GetPosition();
            cameraDirection = CameraDirection.IDLE;



            player.SetPos(player2.GetPosition());
            metoronome.Initialize();
            metoronome.SetBpm(bpm);
            motion = new Motion();
            motion.Add(0, new Rectangle(200 * 0, 200 * 0, 200, 200));
            motion.Add(1, new Rectangle(200 * 1, 200 * 0, 200, 200));
            motion.Add(2, new Rectangle(200 * 0, 200 * 1, 200, 200));
            motion.Add(3, new Rectangle(200 * 1, 200 * 1, 200, 200));
            motion.Add(4, new Rectangle(1, 1, 1, 1));
            motion.Add(5, new Rectangle(1, 1, 1, 1));
            motion.Initialize(new Range(4, 5), new CountDownTimer(motionbpm));
            startmotion  = StartMotion.NULL;
            startmotions = new Dictionary <StartMotion, Range>()
            {
                { StartMotion.START, new Range(0, 3) },
                { StartMotion.NULL, new Range(4, 5) },
            };
            isp = false;

            startcnt  = 0;
            cameracnt = 0;
            a         = 60;

            motion2 = new Motion();
            motion2.Add(0, new Rectangle(0, 0, 800, 400));
            motion2.Add(1, new Rectangle(0, 0, 800, 400));
            motion2.Add(2, new Rectangle(0, 0, 1, 1));
            motion2.Add(3, new Rectangle(0, 0, 1, 1));
            motion2.Initialize(new Range(2, 3), new CountDownTimer(0.5f));
            clearmotion  = ClearMotion.NULL;
            clearmotions = new Dictionary <ClearMotion, Range>()
            {
                { ClearMotion.CLEAR, new Range(0, 1) },
                { ClearMotion.NULL, new Range(2, 3) },
            };
        }