Skip to content

CherSu/group4_pacman

 
 

Repository files navigation

group4_pacman

Game Instruction

In this game, your objective is to guide the iconic character, Pacman, as he roams around the pathways, eating all the dots scattered throughout. You need to clear the road by devouring every dot you encounter within a limited number of lives. Eating the dots will increase your score (eating each small dot gets 10 points, and eating each big dot gets 50 points), the score will be shown on the lower-left corner of the screen.

You can control Pacman's movement using the arrow keys on your keyboard. Press the up arrow to move Pacman upward, the down arrow to move him downward, and so on.

Avoid coming into contact with the ghosts. If Pacman touches a ghost, he will be eaten, losing one life, and goes back to its original place to restart again. You start the game with three lives, indicated by Pacman's life icon on the lower right corner of the screen. When all three lives are lost, the game ends, and if you haven't eaten up all the dots, you will fail.

Occasionally, you will come across big dots located in four parts of the maze. When Pacman consumes a big dot, the ghosts' will become vulnerable and do no harm to Pacman for 10 seconds. During this time, you can safely pass through the ghosts.

Your goal is to control Pacman to clear the maze of all the dots before losing all your lives.

Game download and run

Running the game you will only need 4 files in this project, including the main game loop in game.py; the file for environment set up enviroment.py; ghost clas in the ghost.py file and the last player class in player.py. Other files you see in the projects are all the extra files that we have created in the progress of making the game.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%