Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
0
        public void SetupGame(int Level)
        {
            // Create Game Board
            // gameboard.CreateBoardImage(this, Level);
            facade.CreateBoardImage(this, Level);
            // Create Player
            player.CreatePlayerDetails(this);
            player.CreateLives(this);

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

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

            // Create Food
            regularFood.CreateFoodImages(this);
            superFood.CreateFoodImages(this);
            megaFood.CreateFoodImages(this);

            // Create Ghosts
            ghost.CreateGhostImage(this);
        }
Ejemplo n.º 3
0
        public void SetupGame()
        {
            food.RemoveFoodImages(this);
            player = new Player();

            pacman.SetFormElement(formelements);

            // Create Game Board
            gameboard.CreateBoardImage(this, 1);

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

            player.RemoveLives(this);

            // 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.RemovePacmanImage(this, PacmanStartCoordinates.Item1, PacmanStartCoordinates.Item2);

            pacman.CreatePacmanImage(this, PacmanStartCoordinates.Item1, PacmanStartCoordinates.Item2);
        }
Ejemplo n.º 4
0
 public Food_Test()
 {
     Food.CreateFoodImages(new Form1());
 }