Example #1
0
        /**
         * Carrega os assets
         */
        protected override void LoadContent()
        {
            // ambientSound.



            content = Content;

            ButtonFactory.initialize(Content, ".\\Sprites\\GUI\\simpleButton", ".\\Sprites\\GUI\\simpleButtonXML", ".\\Sprites\\font\\Luckiest");
            _spriteBatch        = new SpriteBatch(GraphicsDevice);
            _spriteBatchIntro   = new SpriteBatch(GraphicsDevice);
            _spriteBatchPreGame = new SpriteBatch(GraphicsDevice);
            _spriteBatchShop    = new SpriteBatch(GraphicsDevice);
            _spriteBatchCard    = new SpriteBatch(GraphicsDevice);
            screenManager       = new ScreenManager();
            screenManager.addScreen(new GameScreen(ScreenLabels.GAME_SCREEN, _spriteBatch, Content));
            screenManager.addScreen(new IntroScreen(ScreenLabels.INIT_SCREEN, _spriteBatchIntro, Content));
            screenManager.addScreen(new PreGameScreen(ScreenLabels.PRE_GAME_SCREEN, _spriteBatchPreGame, Content));
            screenManager.addScreen(new ShopScreen(ScreenLabels.SHOP_SCREEN, _spriteBatchShop, Content));
            screenManager.change(ScreenLabels.INIT_SCREEN);

            infoCard.init(Content);
            statisticCard.init(Content);
            devInfoCard.init(Content);
            helpCard.init(Content);
            //SoundEffect soundEngine = Content.Load<SoundEffect>(".\\sounds\\teste");
            //soundEngine.Play();
        }