Livl-Corporation / livl-pacman

Insane Pac-Man clone from © Livl Corporation 🕹️
MIT License
0 stars 1 forks source link

Alternade mode change (CHASE <-> SCATTER) #84

Closed FranckG28 closed 1 year ago

FranckG28 commented 1 year ago

Ghosts alternate between scatter and chase modes during gameplay at predetermined intervals. These mode changes are easy to spot as the ghosts simultaneously reverse direction when they occur. Scatter modes happen four times per level before the ghosts stay in chase mode indefinitely.

Good players will take full advantage of the scatter periods by using the brief moment when the ghosts are not chasing Pac-Man to clear dots from the more dangerous areas of the maze. The scatter/chase timer gets reset whenever a life is lost or a level is completed. At the start of a level or after losing a life, ghosts emerge from the ghost pen already in the first of the four scatter modes.

For the first four levels, the first two scatter periods last for seven seconds each. They change to five seconds each for level five and beyond. The third scatter mode is always set to five seconds. The fourth scatter period lasts for five seconds on level one, but then is only 1/60th of a second for the rest of play. When this occurs, it appears as a simple reversal of direction by the ghosts.

The first and second chase periods last for 20 seconds each. The third chase period is 20 seconds on level one but then balloons to 1,033 seconds for levels two through four, and 1,037 seconds for all levels beyond-lasting over 17 minutes! If the ghosts enter frightened mode, the scatter/chase timer is paused.

When time runs out, they return to the mode they were in before being frightened and the scatter/chase timer resumes. This information is summarized in the following table (all values are in seconds):

Mode Level 1 Levels 2-4 Levels 5+
Scatter 7 7 5
Chase 20 20 20
Scatter 7 7 5
Chase 20 20 20
Scatter 5 5 5
Chase 20 1033 1037
Scatter 5 1/60 1/60
Chase indefinite indefinite indefinite