Exemplo n.º 1
0
        //----------------------------------------------------------------------
        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();
        }
Exemplo n.º 2
0
        //----------------------------------------------------------------------
        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();
        }