Linux Format

Code your own Breakout retro game

Credit: www.pygame.org

Being of a certain age, we were hooked by the original Breakout. It’s one of those incredibly B simple-looking games that can become really difficult. As a challenge, we’re going to recreate Breakout, but first let’s describe the gameplay and how subsequent versions added to the original. The player moves a paddle from left to right. This paddle stays in the same vertical position on the screen and is used to ensure a ball can be bounced back up the screen. Above the paddle is an array of bricks. When these bricks are hit by the ball, they disintegrate. A level is completed when all the bricks have been hit by the ball.

It is possible to make the game more difficult by speeding up the ball, making the paddle smaller and requiring some bricks to be hit more than once before they disintegrate.

We spent many hours on an Archimedes A5000 playing This game has the same gameplay as but with extra features, such as being able to collect power-ups that drop from the bricks and give extra powers, such as two balls at once, the paddle being able to fire lasers

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

More from Linux Format

Linux Format2 min read
OBS Studio
Version: 30.0.2 Web: https://obsproject.com There are lots of good options for recording screencasts, but if you want to live-stream T your desktop, one of the best options is OBS Studio. The app works with all the major online streaming providers, s
Linux Format1 min read
Wine For Wayland
2023 was a great year for the Wayland driver for Wine. The goal was to move forward from the experimental phase and make the driver a proper upstream component. A year later, after several merge requests, many people are now already able to use the l
Linux Format2 min read
Back Issues Missed One?
ISSUE 313 April 2024 Product code: LXFDB0313 In the magazine Discover how to use the ultimate hacker’s toolkit, staying out of trouble while doing so. And join us as we take the Puppy Linux developer’s new distro for a run and explore its container

Related