This game is inspired by the iconic video game, PAC-MAN.
- Use the arrow keys ⬆️ ⬇️ ⬅️ ➡️ or swipe to move Pac-Man around the maze.
- Complete the level by eating all the dots.
- Avoid the ghosts! If they catch you, you will lose a life.
- You only have 3 lives. Be careful!
- Create walls on the gameboard
- Create dots on the gameboard
- Check if the character (Pac-Man, ghost) hits the wall (collision function)
- Check if Pac-Man hits the ghost (collision function)
- Pac-Man will change direction when the arrow key is pressed or when a swipe is detected
- Pac-Man's position is rounded to the nearest multiple of 40 (size of each 'grid') at every turn
- If Pac-Man hits a wall, he will stop
- If Pac-Man hits a ghost, check for game over
- Ghost will move in a default direction
- If ghost hits a wall, he will move in a new random direction (ghostHitWallNewDir function) (randomGhostDirection function)
- Keep track of the score based on the number of dots eaten by Pac-Man
- If all the dots have been eaten, check for game over
- Display screen depends on the result (win, lose, lives > 1)
- The speed of Pac-Man and ghosts will increase by 1
- Start new game
- Reset all variables
- Ghost AI
- Audio on Mobile
- Better User Interface for Device in Landscape Mode
- HTML5
- CSS3
- Javascript
- jQuery Mobile