Brick Game
The Brick Game brings a classic arcade game to an embedded GUI: bounce the ball with the paddle, clear the rows of bricks, and see how far you get. What you are playing here was compiled for the browser with the JavaScript/WebGL Platform Package.
What the Brick Game Demo Shows
- A paddle that you steer to keep the ball in play
- Rows of colored bricks to clear
- Level, score, and lost balls on LCD-style number displays
- A starry night landscape in the background
How the Brick Game Is Built
The game needs only a small set of Embedded Wizard building blocks. Image views display the bitmaps for ball, paddle, bricks, and background, and the LCD-style digits come from a single bitmap of number segments. A timer keeps the game running, and a simple touch handler processes touch input, complemented by a key press handler for keyboard input. The game logic lives in its own classes for the ball position, the brick rows, and the game data, separate from the views that display them. That separation is also how you would connect a real product GUI to its hardware and application data.
Why Games Make Good GUI Benchmarks
Few embedded products ship with an arcade game, but a game is a demanding test for any GUI platform. The ball moves continuously, collisions have to be detected on time, and the paddle has to follow the finger without noticeable delay. If a platform handles this smoothly, it has headroom for the animations and touch interactions of a real product, such as scrolling lists, sliders, or animated gauges.
For product managers, a quick interactive demo like this is also a simple way to judge responsiveness on a target board before committing to a design. Our paper on GUI development for resource-constrained systems explains how to keep graphics smooth and responsive on limited hardware. For a game with more going on at once, try Jump ānā Run. For real products, see our page on embedded GUIs for consumer electronics.
Build Your Own Interactive GUI
Want to create something similar? Learn more about Embedded Wizard Studio and the Platform Package for your target, or get started right away with the free version.