コード例 #1
0
ファイル: MenuScreen.cs プロジェクト: rockem/spaceintruders
        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);
        }
コード例 #2
0
ファイル: PlayScreen.cs プロジェクト: rockem/spaceintruders
        public PlayScreen(Game i_Game)
            : base(i_Game)
        {
            r_Factory = new XNAViewFactory(Game, this);

            r_PauseScreen = new PauseScreen(i_Game);

            init(6);
        }
コード例 #3
0
 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();
 }
コード例 #4
0
        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();
        }
コード例 #5
0
ファイル: LevelScreen.cs プロジェクト: rockem/spaceintruders
 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);
 }
コード例 #6
0
ファイル: PauseScreen.cs プロジェクト: rockem/spaceintruders
        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);
        }