Ejemplo n.º 1
0
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);

            fontStore = new FontStore(new ContentManager(Content.ServiceProvider, Path.Combine(Content.RootDirectory, "Fonts")));
            fontStore.Add("Arial");

            textureStore = new TextureStore(new ContentManager(Content.ServiceProvider, Path.Combine(Content.RootDirectory, "Textures")));

            Texture2D beatSquareTexture = new Texture2D(GraphicsDevice, 1, 1);

            beatSquareTexture.SetData(new Color[] { Color.White });
            textureStore.Add("BeatSquareTexture", beatSquareTexture);

            beatmapStore = new BeatmapStore("Songs");
            BeatmapStoreInfo beatmapStoreInfo = new BeatmapStoreInfoRaw(testBeatmap.Metadata, testBeatmap);

            beatmapStore.Add(beatmapStoreInfo);
            beatmapStore.Add(beatmapStoreInfo);
            beatmapStore.Add(beatmapStoreInfo);
            beatmapStore.Add(beatmapStoreInfo);
            beatmapStore.Add(beatmapStoreInfo);
            beatmapStore.Add(beatmapStoreInfo);

            settings = new Settings();

            DependencyInjectedObject.AddDependency(fontStore);
            DependencyInjectedObject.AddDependency(textureStore);
            DependencyInjectedObject.AddDependency(beatmapStore);
            DependencyInjectedObject.AddDependency(settings);

            AudioTrack.EngineInit();
            AudioTrack.GlobalVolume = 0.5f;

            //LoadScreen(new PlayingScreen(testBeatmap.Difficulties[0]));
            LoadScreen(new SongSelect());
        }