Pac-Man has no ending, but a computer programming integer overflow makes the 256th level impossible to clear.
During the 255 levels, if you eat every dot, power pellet, fruit and enemy, you will achieve 3,333,360 points – the highest possible score.