Example #1
0
        protected V2DGame()
        {
            if (instance != null)
            {
                throw new Exception("There can be only one game class.");
            }

            Components.Add(new GamerServicesComponent(this));
            SignedInGamer.SignedIn += new EventHandler<SignedInEventArgs>(OnGamerSignIn);
            instance = this;
            graphics = new GraphicsDeviceManager(this);
            contentManager = Content;
            Content.RootDirectory = "Content";
            stage = new V2DStage();

            GetCursor();
        }
Example #2
0
        protected V2DGame()
        {
            if (instance != null)
            {
                throw new Exception("There can be only one game class.");
            }

#if !(WINDOWS_PHONE)
            Components.Add(new GamerServicesComponent(this));
            SignedInGamer.SignedIn += new EventHandler <SignedInEventArgs>(OnGamerSignIn);
#endif
            instance              = this;
            graphics              = new GraphicsDeviceManager(this);
            contentManager        = Content;
            Content.RootDirectory = "Content";
            stage = new V2DStage();

            GetCursor();
        }