public override void Load(params string [] args) { camera.Zoom = 3; camera.Position = Vector2.Zero; var cont = camera.Get_Controller(); penumbra.AmbientColor = new Color(1f, 1f, 1f, 1f); pre_origin = camera.Origin; camera.Origin = new Vector2(0, 0); called = false; actions = new Named_Action_List(new Dictionary <string, Action> { { "Start", () => { manager.Goto_Screen("Level 1", false); } }, { "Level Select", () => { manager.Goto_Screen("Level Select", false); } }, { "Settings", () => { Console.WriteLine("YOYOYOYO"); } }, { "Exit", () => { DesireAndDoom.SHOULD_QUIT = true; } } }); }
public override void Load(params string [] args) { camera.Zoom = 3; camera.Position = Vector2.Zero; called = false; var cont = camera.Get_Controller(); var list = new Named_Action_List(new Dictionary <string, Action>()); list.Add("Menu", () => screen_manager.Goto_Screen("Menu", false)); var current = Directory.GetCurrentDirectory(); var files = Directory.GetFiles(current + "/Content/Maps/"); foreach (var file in files) { var toks = file.Split('\\', '/'); list.Add(toks.Last(), () => { screen_manager.Goto_Screen("Level 1", false, toks.Last().Split('.').First()); }); } actions = list; penumbra.AmbientColor = new Color(1f, 1f, 1f, 1f); pre_origin = camera.Origin; camera.Origin = new Vector2(0, 0); }
public override void Load(params string [] args) { SkyVaultLogo = Assets.It.Load_Texture("logo", "Logo"); MonoGameLogo = Assets.It.Load_Texture("SquareLogo_1024px", "Mono"); float timing = 0.02f; tasker = new Tasker( (time) => { SkyLogoY = Math2.Lerp(SkyLogoY, DesireAndDoom.ScreenHeight / 2 - Logo_Size / 2, 0.08f); if (SkyLogoY < DesireAndDoom.ScreenHeight / 2 - (Logo_Size / 2) + 1) { tasker.Next(); } }, (time) => { sky_color = Math2.Lerp(sky_color, Color.Transparent, 0.02f); if (Vector4.Distance(sky_color.ToVector4(), Color.Transparent.ToVector4()) < 0.1f) { tasker.Next(); } }, (time) => { MonoLogoY = Math2.Lerp(MonoLogoY, DesireAndDoom.ScreenHeight / 2 - Logo_Size / 2, 0.08f); sky_color = Math2.Lerp(sky_color, Color.Transparent, 0.02f); if (MonoLogoY < DesireAndDoom.ScreenHeight / 2 - (Logo_Size / 2) + 1) { tasker.Next(); } }, (time) => { sky_color = Math2.Lerp(sky_color, Color.Transparent, 0.02f); mono_color = Math2.Lerp(mono_color, Color.Transparent, 0.02f); if (Vector4.Distance(mono_color.ToVector4(), Color.Transparent.ToVector4()) < 0.1f) { tasker.Next(); } }, (time) => { sky_color = Math2.Lerp(sky_color, Color.Transparent, 0.02f); mono_color = Math2.Lerp(mono_color, Color.Transparent, 0.02f); screen_manager.Goto_Screen("Menu", true); tasker.Next(); }, (time) => { } ); }