예제 #1
0
        /*
         * *******************************
         * Constructors
         * *******************************
         */
        protected BaseGame(GameMain gameMain)
        {
            mGameMain = gameMain;
            mContent = gameMain.Content;
            mHelperScreen = gameMain.HelperScreen;

            mHelperBackgroundTexture = new HelperBackgroundTexture(gameMain.Content);
            mHelperMusic = new HelperMusic(gameMain.Content);

            setCommonUi();
        }
예제 #2
0
        /*
         * *******************************
         * Game Logic
         * *******************************
         */
        protected override void Initialize()
        {
            mHelperScreen = new HelperScreen(this);
            mHelperScreen.ChangeScreen(new ScreenTitle(this));
            mSpriteBatch = new SpriteBatch(mGraphicsDeviceManager.GraphicsDevice);

            base.Initialize();
        }