Пример #1
0
        /*<summary>
         * The Resources Class stores all of the Games Media Resources, such as Images, Fonts
         * Sounds, Music.
         *</summary>
         */
        public static void LoadResources()
        {
            int width;
            int height;

            width  = SwinGame.ScreenWidth();
            height = SwinGame.ScreenHeight();
            SwinGame.ChangeScreenSize(800, 600);
            GameResources.ShowLoadingScreen();
            GameResources.ShowMessage("Loading fonts...", 0);
            GameResources.LoadFonts();
            SwinGame.Delay(100);
            GameResources.ShowMessage("Loading images...", 1);
            GameResources.LoadImages();
            SwinGame.Delay(100);
            GameResources.ShowMessage("Loading sounds...", 2);
            GameResources.LoadSounds();
            SwinGame.Delay(100);
            GameResources.ShowMessage("Loading music...", 3);
            GameResources.LoadMusic();
            SwinGame.Delay(100);
            SwinGame.Delay(100);
            GameResources.ShowMessage("Game loaded...", 5);
            SwinGame.Delay(100);
            GameResources.EndLoadingScreen(width, height);
        }