示例#1
0
 public GameOverMenu(int fromLevel)
 {
     _fromLevel = fromLevel;
     _background = ResourceManager.tex_background_level1;
     _gameOverMsg = new TextBox("Game Over", new Rectangle(100, 50, 600, 100));
     _backToMenuBtn = new TextButton("Back to Menu", new Rectangle(100, 250, 200, 100));
     _continueBtn = new TextButton("Continue", new Rectangle(500, 250, 200, 100));
     _quitBtn = new TextButton("Quit", new Rectangle(500, 450, 150, 100));
 }
示例#2
0
 public MainMenu()
 {
     _background = ResourceManager.tex_background_level1;
     _hc = new HandCursors();
     _aventureBtn = new TextButton("The Epic Quest of Squick", new Rectangle(50, 50, 600, 100));
     _level1Btn = new TextButton("Level 1", new Rectangle(50, 200, 200, 100));
     _level2Btn = new TextButton("Level 2", new Rectangle(50, 350, 200, 100));
     _quitBtn = new TextButton("Quit", new Rectangle(500, 450, 150, 100));
 }
示例#3
0
        public VictoryMenu()
        {
            _background = ResourceManager.tex_background_level1;
            _hc = new HandCursors();
            _victoryMsg = new TextBox("Thanks for playing", new Rectangle(100, 50, 600, 100));

            if (ScoreHolder.hasLevel1) _level1Box = new TextBox("Level 1 : " + ScoreHolder.Level1.ToString("000000"), new Rectangle(350, 200, 350, 50));
            if (ScoreHolder.hasLevel2) _level2Box = new TextBox("Level 2 : " + ScoreHolder.Level2.ToString("000000"), new Rectangle(350, 275, 350, 50));
            if (ScoreHolder.hasLevel1 && ScoreHolder.hasLevel2)
                _levelTotal = new TextBox("Total   : " + ScoreHolder.Total.ToString("000000"), new Rectangle(350, 350, 350, 50));
            _backToMenuBtn = new TextButton("Back to Menu", new Rectangle(100, 200, 200, 100));
            _quitBtn = new TextButton("Quit", new Rectangle(500, 450, 150, 100));
        }
示例#4
0
文件: Level1.cs 项目: aenario/Squick
        //private Player _squick;
        public Level1(KinectInterface gameInput, bool modeAdventure = false)
        {
            _levelBackground = ResourceManager.tex_background_level1;
            _modeAdventure = modeAdventure;

            _bombEffect = new Fade();

            _HUD_score = new Score(new Vector2(10,0));
            _backToMenu = new TextButton("Menu", new Vector2(690, 10));

            squick = new DizzySquick(gameInput);
            squick.Pos = new Vector2(400, 400);

            _gameEventMessage = new Message("Ready?  Set...  Go!", new Vector2(20, 220),2.0f,Message.DISPLAY_LBL,250);
            _gameScoreMessage = new Message("",new Vector2(10,160),1.0f,Message.DISPLAY_LBL,1000);

            // Level score
            _score = 0;
            _bonusChain = 0;
        }
示例#5
0
 public DebugMenu()
 {
     _startButton = new TextButton("Level1", new Vector2(100, 100));
     _start2Button = new TextButton("Level2", new Vector2(300, 100));
     _quitButton = new TextButton("Quit", new Vector2(100, 300));
 }