An example of two kinds of collision detection in Scratch: "touching sprite" and "touching colour". When pacman touches the dot sprites they disappear. When pacman touches the blue-coloured walls, he stops moving in that direction. Use the left and right arrow keys to control pacman.
Pacman is a trademark of Namco.