Ejemplo n.º 1
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            //spriteBatch = new SpriteBatch(GraphicsDevice);

            RenderingDevice.Initialize(Graphics, Program.Cutter, GameManager.Space, Content.Load <Effect>("shaders/shadowmap"));
            RenderingDevice.Camera = new CharacterCamera();
            RenderingDevice.SetUpLighting(RenderingDevice.LightingData.Generic);
            MyExtensions.Initialize(GraphicsDevice);
            loadingScreen = new LoadingScreen(Content, GraphicsDevice);
            loadingSplash = Content.Load <Texture2D>("textures/loading");

            SoundEffect e = Content.Load <SoundEffect>("music/main");

            BGM          = e.CreateInstance();
            BGM.IsLooped = true;
            BGM.Play();

            GameManager.Initialize(null, Content.Load <SpriteFont>("font/font"), null);
        }