public EngineStatePause(Engine engine) : base(engine) { List<string> menuOptions = new List<string>(); menuOptions.Add(c_ReturnToGame); menuOptions.Add(c_Settings); menuOptions.Add(c_Quit); Point temp = m_engine.GraphicsDevice.Viewport.TitleSafeArea.Center; m_menuList = new MenuList(menuOptions, new Vector2(temp.X, temp.Y + 100)); m_menuList.Font = FontEnum.Kootenay48; m_menuList.ItemSpacing = 70; m_menuList.SpaceAvailable = 400; }
public EngineStateMainMenu(Engine engine) : base(engine) { List<string> menuOptions = new List<string>(); menuOptions.Add(c_StartGame); menuOptions.Add(c_Settings); menuOptions.Add(c_Credits); menuOptions.Add(c_Quit); Point temp = m_engine.GraphicsDevice.Viewport.TitleSafeArea.Center; m_menuList = new MenuList(menuOptions, new Vector2(temp.X, temp.Y + 100)); m_menuList.Font = FontEnum.Kootenay48; m_menuList.ItemSpacing = 70; m_menuList.SpaceAvailable = 400; SoundEngine.getInstance().playMusic("Menu"); }
public EngineStateCredits(Engine engine) : base(engine) { Point center = m_engine.GraphicsDevice.Viewport.TitleSafeArea.Center; int top = m_engine.GraphicsDevice.Viewport.TitleSafeArea.Bottom; List<String> credits = new List<String>(); credits.Add("CREDITS"); credits.Add(""); credits.Add(""); credits.Add("SUPER METROID"); credits.Add("Nintendo"); credits.Add(""); credits.Add("METROID GENERATIONS"); credits.Add("Ken Hartsook"); credits.Add("Dallas McCall"); credits.Add("Alexander Zook"); credits.Add(""); credits.Add("TEAM COMMANDO"); credits.Add("Eric Barnes"); credits.Add("Andrew Pitman"); credits.Add("Jared Segal"); credits.Add("Ken Hartsook"); credits.Add(""); credits.Add("CODE SUPPORT"); credits.Add("ecassidy"); credits.Add(""); credits.Add("SPRITES"); credits.Add("Tommy Lee ([email protected])"); credits.Add("jathys"); credits.Add(""); credits.Add("MUSIC"); credits.Add("Metroid Metal"); credits.Add("Stemage"); credits.Add(""); credits.Add("SPECIAL THANKS"); credits.Add("Mark Riedl"); credits.Add("Boyang \"Albert\" Li"); credits.Add(""); m_menuList = new MenuList(credits, new Vector2(center.X, top)); m_menuList.Font = FontEnum.Kootenay14; m_menuList.ItemSpacing = 50; m_menuList.SpaceAvailable = 20000; }
public EngineStateSettings(Engine engine) : base(engine) { List<string> menuOptions = new List<string>(); if (Settings.getInstance().IsSoundAllowed) { menuOptions.Add(c_SoundOn); } else { menuOptions.Add(c_SoundOff); } if (Settings.getInstance().IsInDebugMode) { menuOptions.Add(c_DebugOn); } else { menuOptions.Add(c_DebugOff); } if (Settings.getInstance().IsCameraFreeform) { menuOptions.Add(c_CameraFreeForm); } else { menuOptions.Add(c_CameraSmart); } if (Settings.getInstance().IsExplorer) { menuOptions.Add(c_PlayerTypeExplorer); } else { menuOptions.Add(c_PlayerTypeKiller); } menuOptions.Add(c_Back); Point temp = m_engine.GraphicsDevice.Viewport.TitleSafeArea.Center; m_menuList = new MenuList(menuOptions, new Vector2(temp.X, temp.Y + 50)); m_menuList.Font = FontEnum.Kootenay48; m_menuList.ItemSpacing = 70; m_menuList.SpaceAvailable = 400; }