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 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); }
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); }
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); }
//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 }
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); }