Beispiel #1
0
 public GameDisplay(SystemDisplay display)
 {
     _up = 1;
     _down = 1;
     _enter = 1;
     _choice = 0;
     _display = display;
 }
Beispiel #2
0
 public GameDisplay(SystemDisplay display)
 {
     _up      = 1;
     _down    = 1;
     _enter   = 1;
     _choice  = 0;
     _display = display;
 }
 public QuizResultsDisplay(SystemDisplay display, Score s, bool isdone)
 {
     _isdone  = isdone;
     _up      = 1;
     _down    = 1;
     _enter   = 1;
     _choice  = 0;
     _display = display;
     _score   = s;
 }
 public QuizResultsDisplay(SystemDisplay display, Score s, bool isdone)
 {
     _isdone = isdone;
     _up = 1;
     _down = 1;
     _enter = 1;
     _choice = 0;
     _display = display;
     _score = s;
 }
Beispiel #5
0
        public QuizDisplay(Quiz q, SystemDisplay sysDisplay)
        {
            _display = sysDisplay;

            _currentQuiz = q;
            _currentQuestion = _currentQuiz.GetNextQuestion();
            _currentQuestionAnswers = _currentQuestion.GetRandomAnswers();
            _currentQuizScore = new Score("Eric", ActivityType.Quiz, 0, _currentQuiz.GetTitle());
            _menu = new ScreenMenu(_currentQuestionAnswers,_currentQuiz.GetTitle(),_currentQuestion.Title);
            SystemMain.Drawing.DestroyTips();
            SystemMain.Drawing.DrawInstruction(40, 660, " to confirm your answer!", SystemMain.TexturePackage["A"], -1);
        }
Beispiel #6
0
        public QuizDisplay(Quiz q, SystemDisplay sysDisplay)
        {
            _display = sysDisplay;

            _currentQuiz            = q;
            _currentQuestion        = _currentQuiz.GetNextQuestion();
            _currentQuestionAnswers = _currentQuestion.GetRandomAnswers();
            _currentQuizScore       = new Score("Eric", ActivityType.Quiz, 0, _currentQuiz.GetTitle());
            _menu = new ScreenMenu(_currentQuestionAnswers, _currentQuiz.GetTitle(), _currentQuestion.Title);
            SystemMain.Drawing.DestroyTips();
            SystemMain.Drawing.DrawInstruction(40, 660, " to confirm your answer!", SystemMain.TexturePackage["A"], -1);
        }
Beispiel #7
0
        public Shooter(SystemDisplay main, int level)
        {
            _main = main;
            _ship = new ShooterShip(0, _width);

            _levels = new List<ShooterLevel>();

            _herdList = new List<ShooterHerd>();

            //remove later
            SystemMain.Drawing.DestroyTips();
            SystemMain.Drawing.DrawInstruction(40, 560, " to try and kill SQUIDS!", SystemMain.TexturePackage["A"], 3);
            StartGame(level);
        }
Beispiel #8
0
        //projectile list
        public Shooter(SystemDisplay main)
        {
            _main = main;
            _ship = new ShooterShip();
            //_shipRect = new Rectangle(_ship.GetX(), _ship.GetY(), _ship.GetWidth(), _ship.GetHeight());

            #region sample level - delete when xml works

            _enemies = new List<ShooterEnemy>
                       			{
                       				new ShooterEnemy(0, 0, 10, Color.White),
                       				//new ShooterEnemy(1, 0, 10, Color.Gainsboro),
                       				//new ShooterEnemy(4, 0, 10, Color.Goldenrod)
                       			};
            #endregion
        }
Beispiel #9
0
 public BreakOut(SystemDisplay main, int level)
 {
     //here is where we can take in things like level
     _paddle = new BreakOutPaddle();
     _leftWall = new BreakOutWall(0, Width, Height);
     _rightWall = new BreakOutWall(1, Width, Height);
     _ceiling = new BreakOutCeiling(Width);
     _main = main;
     _a = 0;
     _space = 0;
     _score = 0;
     _lives = 20;
     _buffer = (Width % 78) / 2;
     _running = false;
     _ballList = new List<BreakOutBall>();
     _balls = 0;
     SystemMain.Drawing.DrawInstruction(40, 560, " to launch ball", SystemMain.TexturePackage["A"], 3);
     //SystemMain.Drawing.DrawInstruction(40, 560, " to go back", SystemMain.TexturePackage["B"], 3);
     StartGame(level);
 }