Breakout
Breakout begins with five rows of bricks, each row a different color.
The color order from the bottom up is blue, cyan, green, green and red.
Using a single ball, the player must knock down as many bricks as possible by using the walls and/or the paddle below to ricochet the ball against the bricks and eliminate them. Blue bricks earn one point each, cyan bricks earn two points, green bricks earn three points, yellow bricks earn four and the top-level red bricks score five points each. To add to the challenge, the paddle shrinks to one-half its size after the ball has broken through the red row and hit the upper wall.
(adapted from Wikipedia)
Game Controls:
Paddle is controlled with mouse.
Nine speed levels, changed using num-keys: 1...9.
Sound effects are switched on/off using 'S'.
Game is paused either with mouse press or 'P'.
Example:
breakout % Start Main Breakout Interface
Cite As
Per-Anders Ekstrom (2024). Breakout (https://www.mathworks.com/matlabcentral/fileexchange/14152-breakout), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Acknowledgements
Inspired: DFT - Delayed Feedback Tracking
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | New pointer control, by Joseph Kirk (jdkirk630@gmail.com) |