Linux Format

Creating Pac-Man style games in Python

Pac-Man is arguably one of the most famous video game characters in the world. First shooting to fame in 1980 with the release of the arcade version, Pac-Man has seen many iterations, remakes and sequels over the years, but nothing compares to the original.

It’s a simple premise, really. Pac-Man is a yellow, disk-shaped, mainly feature-less character, who roams around a 2D environment collecting dots. The player has to collect all the dots in the room without being touched by any of the four enemy characters in the form of ghosts. Pinky, Blinky, Inky and Clyde are brightly coloured to stand out against the black background, being pink, red, cyan and orange, respectively. Pac-Man must avoid the ghosts and collect all the dots to progress to the next level.

Pac-Man can only move up, down, left or right, through the maze of dots, but does have some advantages in his arsenal. By collecting large

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format4 min read
Linux
The #1 open source mag Future Publishing Limited, Quay House, The Ambury, Bath, BA1 1UA Email contact@linuxformat.com EDITORIAL Editor-in-chief Neil Mohr Art editor Fraser McDermott Production editor Katharine Davies Group editor-in-chief Graham Bar
Linux Format2 min read
Suitability For Beginners
These distros are focused on a technical area of computer use, penetration testing, but that doesn’t mean they’re T not suitable for beginners in this discipline. It’s not much of a surprise that a Gentoo-based distro like Pentoo is more complicated
Linux Format3 min read
Hacker Distros
Kali has it all if you want a pre-made networkhacking distribution. It has an impressive number K of editions to cover most installation scenarios, plus a slick-looking lightweight desktop and a huge set of built-in, well-categorised hacking tools. I

Related