コード例 #1
0
ファイル: NuclearGame.cs プロジェクト: elisee/NuclearWinter
        //----------------------------------------------------------------------
        protected override void Initialize()
        {
            SpriteBatch = new SpriteBatch(GraphicsDevice);

            ScissorRasterizerState = new RasterizerState();
            ScissorRasterizerState.ScissorTestEnable = true;

            if (UseGameStateManager)
            {
                GameStateMgr = new GameFlow.GameStateMgr <NuclearGame>(this);
                Components.Add(GameStateMgr);
            }

            InputMgr = new Input.InputManager(this);
            Components.Add(InputMgr);

            base.Initialize();
        }
コード例 #2
0
ファイル: NuclearGame.cs プロジェクト: ViGor-Thinktank/GCML
        //----------------------------------------------------------------------
        protected override void Initialize()
        {
            SpriteBatch = new SpriteBatch( GraphicsDevice );

            ScissorRasterizerState = new RasterizerState();
            ScissorRasterizerState.ScissorTestEnable = true;

            if( UseGameStateManager )
            {
                GameStateMgr = new GameFlow.GameStateMgr<NuclearGame>( this );
                Components.Add( GameStateMgr );
            }

            #if WINDOWS || LINUX || MACOSX || XBOX
            InputMgr                = new Input.InputManager( this );
            Components.Add( InputMgr );
            #endif

            #if WINDOWS_PHONE
            TouchMgr                = new Input.TouchManager( this );
            Components.Add( TouchMgr );
            #endif

            base.Initialize();
        }