In preparation for Milestone 4, we discussed what variables are needed to represent the state of the game. As an exercise, we considered Pacman, and came up with these:
pacManPositionX,Y
dotVisibility : array of booleans
livesLeft : int
ghostX,Y (× 4)
ghostHome : Boolean × 4
bonusesCollected : int
score : int
level : int
pacManDirection: int
ghostDirection : int × 4
ghostVulnerabilityRemaining : int (milliseconds)
ghostPrisonRemaining : int (milliseconds) × 4