Пример #1
0
        public void Initialize()
        {
            isEndFlag         = false;
            next              = Scene.Ending;
            gameObjectManager = new GameObjectManager();
            particleManager   = new ParticleManager();
            gameObjectManager.Initialize();
            particleManager.Initialize();
            LifeWall.Reset();
            var lifeWalls = LifeWall.GenerateWall(LifeWall.Count);

            gameObjectManager.AddWall(lifeWalls);
            nowMap = mapName[(int)Menu.GetDifficulty()];
            // csvからマップを読み込む場合

            var reader = GameDevice.Instance().GetCSVReader();

            //reader.Read("normal.csv");
            reader.Read(nowMap);
            var map = new Map(reader.GetData());

            gameObjectManager.Add(map);
            scroll     = map.Height;
            ScrollStop = false;
            hitStop    = new HitStop();
            fade       = new FadeIn();

            GameDevice.Instance().GetSound().PlayBGM(
                (Menu.GetDifficulty() == Menu.Difficulty.tutorial || Menu.GetDifficulty() == Menu.Difficulty.easy)
                ? "tutorial"
                : "stage"
                );
        }