예제 #1
0
        public static void LoadCustomAssets(Game p_game)
        {
            JKContentManager.LevelTexture = p_game.Content.Load <Texture2D>("mods/level");

            //default
            //JKContentManager.TitleLogo = p_game.Content.Load<Texture2D>("mods/title_logo");
            JKContentManager.TitleLogo         = SmartLoad(p_game, "title_logo");
            JKContentManager.NexileLogo        = Sprite.CreateSprite(p_game.Content.Load <Texture2D>("JK_Nexile_Logo"));
            JKContentManager.NexileLogo.center = Vector2.One / 2f;
            JKContentManager.SlopeTexture      = p_game.Content.Load <Texture2D>("slopes");
            JKContentManager.SlopeSprites.LoadSprites();
            JKContentManager.GUI.Load(p_game.Content);
            JKContentManager.Shaders.Mask      = new MaskShader(p_game.Content.Load <Effect>("shaders/Mask"));
            JKContentManager.Shaders.test_mask = p_game.Content.Load <Texture2D>("shaders/test_mask");

            //custom screens
            JKContentManager.m_foregrounds        = JKExtensions.UltraContent.LoadCunt <Texture2D>(p_game.Content, "mods/screens/foreground", ".*");
            JKContentManager.m_backgrounds        = JKExtensions.UltraContent.LoadCunt <Texture2D>(p_game.Content, "mods/screens/midground", ".*");
            JKContentManager.m_backbackgrounds    = JKExtensions.UltraContent.LoadCunt <Texture2D>(p_game.Content, "mods/screens/background", ".*");
            JKContentManager.ScrollingBackgrounds = JKExtensions.UltraContent.LoadCunt <Texture2D>(p_game.Content, "mods/screens/scrolling/textures", ".*");
            JKContentManager.m_weather_masks      = JKExtensions.UltraContent.LoadCunt <Texture2D>(p_game.Content, "mods/screens/masks", ".*");
            JKContentManager.m_scrolling_bg_data  = UltraContent.LoadXmlFiles <JumpKing.Level.Data.ScrollingBGdata>(p_game, "mods/screens/scrolling", ".xml");

            //modded
            NPCs.Load(p_game.Content);
            Raven.Load(p_game.Content);
            Particles.Load(p_game.Content);
            Music.Load(p_game.Content);
            Props.Load(p_game.Content);
            Fonts.Load(p_game.Content);
            Endings.Load(p_game.Content);
            King.Load(p_game.Content);
            JKContentManager.MiscSettings.CustomLoad(p_game.Content);
        }