public MenuScreen(Game i_Game) : base(i_Game) { r_Factory = new XNAViewFactory(i_Game, this); Add(new Background(i_Game)); r_MenuManager = new MenuManager(this); r_MenuManager.SetCurrentMenu(eMenu.MainMenu); }
public PlayScreen(Game i_Game) : base(i_Game) { r_Factory = new XNAViewFactory(Game, this); r_PauseScreen = new PauseScreen(i_Game); init(6); }
public WelcomeScreen(Game i_Game) : base(i_Game) { r_Factory = new XNAViewFactory(i_Game, this); Add(new Background(Game)); r_WelcomeMessage = new Sprite(@"Sprites\MarsIntruders", i_Game); Add(r_WelcomeMessage); r_Instructions = createInstructions(); }
public GameOverScreen(Game i_Game, int i_Green, int i_Blue) : base(i_Game) { r_Factory = new XNAViewFactory(i_Game, this); Add(new Background(i_Game)); r_GameOver = new Sprite(@"Sprites\GameOver", i_Game); r_Ranks = r_Factory.CreateFontComponent(@"Fonts\PauseFont"); r_Ranks.Text = "Green: " + i_Green + " Blue: " + i_Blue; r_Instructions = createInstructions(); }
public LevelScreen(Game i_Game) : base(i_Game) { IsModal = true; r_Factory = new XNAViewFactory(i_Game, this); Sprite background = new Background(i_Game); background.TintColor = Color.Gray; Add(background); m_LevelMessage = r_Factory.CreateFontComponent(@"Fonts\LevelFont"); m_NumberMessage = r_Factory.CreateFontComponent(@"Fonts\LevelFont"); r_PlayScreen = new PlayScreen(i_Game); }
public PauseScreen(Game i_Game) : base(i_Game) { r_Factory = new XNAViewFactory(i_Game, this); IsModal = true; IsOverlayed = true; UseGradientBackground = true; BlackTintAlpha = 0.60f; r_PauseMessage = new Sprite(@"Sprites\Pause", Game); r_ResumeMessage = r_Factory.CreateFontComponent(@"Fonts\PauseFont"); r_ResumeMessage.Text = "Press R To Resume"; Add(r_PauseMessage); }