Beispiel #1
0
/// public メソッド
///---------------------------------------------------------------------------

        /// シーンの初期化
        public bool Init(DemoGame.SceneManager sceneMgr)
        {
            /// ゲーム制御開始
            GameCtrlManager.GetInstance().Start();

            /// 配置情報のセット
            SetupObjPlaceData.Load();

            setupLyout();

            AppSound.GetInstance().PlayBgm(AppSound.BgmId.Main, true);

            AppDispEff.GetInstance().SetFadeIn(0xffffff, 10, true);

            useSceneMgr = sceneMgr;

            GameCtrlManager ctrlResMgr = GameCtrlManager.GetInstance();

            DemoGame.GraphicsDevice useGraphDev = ctrlResMgr.GraphDev;

            pauseFlag = false;


            return(true);
        }
/// 配置情報の保存
///---------------------------------------------------------------------------

        public bool frameSavePlaceParam()
        {
            DemoGame.InputGamePad pad = AppInput.GetInstance().Pad;
            /// 初期化
            if (nowSubTask == 0)
            {
                SetupObjPlaceData.Save();
                nowSubTask++;
            }

            if (pad.Trig != 0)
            {
                changeTask(debugMenuTaskId.MenuTop);
            }
            return(true);
        }
Beispiel #3
0
/// public メソッド
///---------------------------------------------------------------------------

        /// シーンの初期化
        public bool Init(DemoGame.SceneManager sceneMgr)
        {
            taskId      = 0;
            useSceneMgr = sceneMgr;
            eventState  = 0;

            AppLyout.GetInstance().ClearSpriteAll();
//        AppLyout.GetInstance().SetSprite( AppLyout.SpriteId.Logo );

            GameCtrlManager.GetInstance().Start();

            /// 配置情報のセット
            SetupObjPlaceData.Load();

            AppDispEff.GetInstance().SetFadeIn(0xffffff, 5, true);

            fadeFlag  = false;
            fadeCount = 0;

            return(true);
        }