Ejemplo n.º 1
0
 public SmallStage(GameDevice gameDevice)
 {
     inputState = gameDevice.GetInputState();
     sever      = gameDevice.GetStageSaver();
     mapIndex   = 0;
     mapnum     = 0;
     sound      = gameDevice.GetSound();
 }
Ejemplo n.º 2
0
        /// <summary>
        /// 初期化
        /// </summary>
        /// <param name="stageIndex">ステージの番号</param>
        public void Initialize(int stageIndex)
        {
            StartTimer = new Timer(1f);
            mapIndex   = stageIndex;
            isEnd      = false;
            isClear    = false;
            //葉梨竜太
            isOver  = false;
            isPause = false;    //一時停止状態 By 張ユービン
            //isStarting = true;
            isView = false;

            //全局Animation一時停止のスイッチ By 張ユービン
            FuncSwitch.AllAnimetionPause = false;

            MapManager.SetNowMap(mapIndex, sound);  // by柏 SE実装 2016.12.14
            map        = MapManager.GetNowMapData();
            fires      = new List <Fire>();
            waterLines = new List <WaterLine>();
            foreach (var ice in map.MapThings.FindAll(x => x is Ice))
            {
                ((Ice)ice).SetWaters(waterLines);
            }
            coals    = new List <GameObject>();
            coals    = map.MapThings.FindAll(x => x is Coal);
            nowCoals = new List <GameObject>();

            //張ユービン
            player = new Player(gameDevice, MapManager.PlayerStartPosition(), Vector2.Zero, ref fires, ref waterLines, isView);

            clearSelect = new ClearSelect(gameDevice.GetInputState(), player, sound);   //by 柏 2016.12.14 SE実装

            camera = new Camera(player.Position + new Vector2(32, 32), Parameter.CameraScale, true);
            player.SetCamera(camera);
            fireMeter = new FireMeter();

            //Goalを取得とCamera設置  By 張ユービン
            goal = map.GetGoal();
            goal.SetCamera(camera);

            //柏
            stageSaver      = gameDevice.GetStageSaver();
            playTime        = 0;
            particleControl = new ParticleControl(); //Clear演出実装 2016.12.22
            clearLevel      = -1;                    //Clear関連内容の表示段階管理
            clearLevelTimer = new Timer(1.0f);       //Clear関連内容の段階表示タイミング

            //PlayBGM
            sound.PlayBGM("forest1");
        }
Ejemplo n.º 3
0
 public Stage(GameDevice gameDevice)
 {
     inputState = gameDevice.GetInputState();
     sound      = gameDevice.GetSound();
     sever      = gameDevice.GetStageSaver();
     herol      = new List <Vector2>()
     {
         new Vector2(143 - 32, 200 - 55),
         new Vector2(307 - 32, 317 - 55),
         new Vector2(736 - 32, 348 - 55),
         new Vector2(967 - 32, 469 - 55),
         new Vector2(1052 - 32, 369 - 55),
     };
 }