Exemplo n.º 1
0
/// public メソッド
///---------------------------------------------------------------------------

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

            AppLyout.GetInstance().ClearSpriteAll();

            useFont = new Font(FontAlias.System, 20, FontStyle.Regular);
            DemoGame.Graphics2D.SetFont(useFont);

            imageBg = new Texture2D("/Application/res/data/2D/2d_02.png", false);

            pageTbl       = new cPageData();
            pageTbl.sprBg = new DemoGame.Sprite(imageBg, 0, 0, imageBg.Width, imageBg.Height,
                                                pageBgPosTbl[0] + AppLyout.GetInstance().OffsetW,
                                                pageBgPosTbl[1] + AppLyout.GetInstance().OffsetH);
            pageTbl.sprObj = new DemoGame.Sprite[pageImgMax];
            pageTbl.imgObj = new Texture2D[pageImgMax];

            taskId       = 0;
            pageNow      = 0;
            touchMoveX   = 0;
            touchMoveFlg = false;

            trlDataTbl    = new TutorialData[pageMax];
            trlDataTbl[0] = new TutorialDataP01();
            trlDataTbl[1] = new TutorialDataP02();
            trlDataTbl[2] = new TutorialDataP03();
            trlDataTbl[3] = new TutorialDataP04();
            trlDataTbl[4] = new TutorialDataP05();
            trlDataTbl[5] = new TutorialDataP06();
            trlDataTbl[6] = new TutorialDataP07();
            trlDataTbl[7] = new TutorialDataP08();
            trlDataTbl[8] = new TutorialDataP09();
            trlDataTbl[9] = new TutorialDataP10();


            loadPageImage(pageNow);

            setStateTask(StateId.Start);

            return(true);
        }
Exemplo n.º 2
0
        /// public メソッド
        ///---------------------------------------------------------------------------
        /// シーンの初期化
        public bool Init( DemoGame.SceneManager sceneMgr )
        {
            useSceneMgr = sceneMgr;

            AppLyout.GetInstance().ClearSpriteAll();

            useFont = new Font( FontAlias.System, 20, FontStyle.Regular );
            DemoGame.Graphics2D.SetFont( useFont );

            imageBg        = new Texture2D( "/Application/res/data/2D/2d_02.png", false);

            pageTbl        = new cPageData();
            pageTbl.sprBg  = new DemoGame.Sprite( imageBg, 0, 0, imageBg.Width, imageBg.Height,
                                                        pageBgPosTbl[0]+AppLyout.GetInstance().OffsetW,
                                                        pageBgPosTbl[1]+AppLyout.GetInstance().OffsetH );
            pageTbl.sprObj = new DemoGame.Sprite[pageImgMax];
            pageTbl.imgObj = new Texture2D[pageImgMax];

            taskId         = 0;
            pageNow        = 0;
            touchMoveX     = 0;
            touchMoveFlg   = false;

            trlDataTbl		= new TutorialData[pageMax];
            trlDataTbl[0]	= new TutorialDataP01();
            trlDataTbl[1]	= new TutorialDataP02();
            trlDataTbl[2]	= new TutorialDataP03();
            trlDataTbl[3]	= new TutorialDataP04();
            trlDataTbl[4]	= new TutorialDataP05();
            trlDataTbl[5]	= new TutorialDataP06();
            trlDataTbl[6]	= new TutorialDataP07();
            trlDataTbl[7]	= new TutorialDataP08();
            trlDataTbl[8]	= new TutorialDataP09();
            trlDataTbl[9]	= new TutorialDataP10();

            loadPageImage( pageNow );

            setStateTask( StateId.Start );

            return true;
        }