示例#1
0
 public void CreateFormElementsTest()
 {
     // Check Form Elements have been created
     FormElements.CreateFormElements(new Form());
     Assert.AreEqual("1UP", FormElements.PlayerOneScoreText.Text);
     Assert.AreEqual("HIGH SCORE", FormElements.HighScoreText.Text);
 }
示例#2
0
        public void SetupGame(int Level)
        {
            // Create Game Board
            gameboard.CreateBoardImage(this, Level);

            // Create Board Matrix
            Tuple <int, int> PacmanStartCoordinates = gameboard.InitialiseBoardMatrix(Level);

            // Create Player
            player.CreatePlayerDetails(this);
            player.CreateLives(this);

            // Create Form Elements
            formelements.CreateFormElements(this);

            // Create High Score
            highscore.CreateHighScore(this);

            // Create Food
            food.CreateFoodImages(this);

            // Create Ghosts
            ghost.CreateGhostImage(this);

            // Create Pacman
            pacman.CreatePacmanImage(this, PacmanStartCoordinates.Item1, PacmanStartCoordinates.Item2);
        }