示例#1
0
        /// <summary>
        /// Carrega os assets do jogo e o estado inicial
        /// </summary>
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);
            scene       = new Scene(spriteBatch);
            Cena        = scene;
            font        = Content.Load <SpriteFont>("MyFont");
            WeaponsManager.LoadContent(Content);
            EnemyManager.LoadContent(Content, random);
            kbLimit       = 0;
            timeToRestart = 0;
            timerTextos   = 0;
            texto         = new KeyValuePair <string, Vector2>("", Vector2.Zero);
            textoBridge1  = new KeyValuePair <string, Vector2>("", Vector2.Zero);
            textoBridge2  = new KeyValuePair <string, Vector2>("", Vector2.Zero);
            textoEnd      = new KeyValuePair <string, Vector2>("", Vector2.Zero);

            LoadLevel(GameState.Menu);
        }