Medium size project done during our first programing class "Intro to Programing-CS107" in which we learned basic concepts of object oriented programming and Java
- navigate to the Play.java file located at the path java/ch/epfl/cs107/play and run the main function of that file.
- After having passed the first two levels, eating diamonds and cherries and escaping ghosts, you have to eat the boss, the faster ghost, which you will encounter in the third level...
- Note that if you have 0 HP you lose and the game is ended.
- (not that if we don’t press a direction button, the player will go in a straight line (except in case of collision with a wall)
- To control Pacman, use the direction keys of your keyboard.
- You have to successfully find the key at each of the four levels of the game, and open all doors in order to win. You have 5 lives that you will lose of you collide with one of the ghosts.
- Is a simple introductory level where the key is visible from the start and no ghosts are there to bother you.
- Is a harder variation where the key is hidden until you eat 550 diamonds (blue dots). This time, there will be ghosts who will follow you and try to kill you.
- Is an even harder variation with more ghosts and more keys to find.
- It's a bonus... :)
- Cherries: gives you +200 points once collected
- Diamonds: gives you +10 points once collected
- Bonus(a coin): makes you invulnerable (thus makes the ghosts afraid) once collected
- The energy (a heart): gives you one more hp once collected
- Key: lets you to open some gates to access to the doors once collected
- The afraid ghosts: give you 500 points once eaten
- The ghosts: when they are fearless: they can eat you (remove one hp)
- The gates, they close the doors and they don’t let you reach the next levels or win the games
- Some other entities that you will discover in the bonus level ... ;)