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
Zitieren als
Per-Anders Ekstrom (2024). Breakout (https://www.mathworks.com/matlabcentral/fileexchange/14152-breakout), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxTags
Quellenangaben
Inspiriert: DFT - Delayed Feedback Tracking
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.0.0 | New pointer control, by Joseph Kirk (jdkirk630@gmail.com) |