예제 #1
0
 /// <summary>
 /// Set the loading screen.
 /// This screen should have already loaded it's content
 /// </summary>
 /// <param name="loadingScreen">The loadingscreen of the game</param>
 public void SetLoadingScreen(LoadingScreen loadingScreen)
 {
     this.loadingScreen = loadingScreen;
 }
예제 #2
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);

            /* 1 game 1 font */
            var fontFilePath = Path.Combine(Content.RootDirectory, @"fonts\segoe32.fnt");
            var fontFile = FontLoader.Load(fontFilePath);
            var fontTexture = Content.Load<Texture2D>(@"fonts\segoe32_0.png");

            fontRenderer = new FontRenderer(fontFile, fontTexture);

            LoadingScreen loading = new LoadingScreen(Content);
            ScreenManager.Instance.SetLoadingScreen(loading);

            ScreenManager.Instance.SetScreen(new MenuScreen());
            //ScreenManager.Instance.SetScreen(new LevelCreator(0));
        }
예제 #3
0
 /// <summary>
 /// Set the loading screen.
 /// This screen should have already loaded it's content
 /// </summary>
 /// <param name="loadingScreen">The loadingscreen of the game</param>
 public void SetLoadingScreen(LoadingScreen loadingScreen)
 {
     this.loadingScreen = loadingScreen;
 }