
I don't think Pac-Man is the best example of this. "We don't want to leave them as neutral because then Pac-Man would stop dead in his tracks in between direction changes," These shorthand rules can be confusing, so I'll step through an example with the 8-way joystick.

Putting all of this together, we can turn the joystick maps shown in the previous section into strings of numbers and letters: The only other value we need to represent is the sticky, which is denoted with an "s".įinally, we distinguish individual rows of the 9x9 grid by separating them with a period. Note that this is the same direction/number mapping that appears on the NumPad of a keyboard.
