Play Native Games

In the preceding sections, you learned about technologies that help you run games using virtual machines and emulators, but native games also exist for Linux. For example, on the LXDE desktop, you can find a compilation of some classic games written in Python: Four in a Row, Snake, and so on.

Because the Pi is a regular Linux system, you can run every game compatible with your current distribution as long as the Pi’s resources are sufficient. If you search the Web for classic games, such as Tetris or Pac-Man, you’ll quickly find really good clones.

 
pi@raspberrypi ~ $ ​sudo apt-get install ltris pacman

It’s worth trying to install all the games you find, but many are too demanding for the Pi. Surprisingly, the Pi is capable ...

Get Raspberry Pi, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.