
Tiny Breakout is a brick-breaker game with 640x480 VGA output at 60 Hz. There is no frame buffer: every pixel is worked out from the beam position as the picture is drawn.
ui[0] to
ui[2]) has been pressed, the game plays itself. Connecting a controller or pressing a
direct button starts a new game. A direct button ends this demo until the next reset (the
demo after a wait, below, still comes); unplugging the controller instead resumes the demo,
in the current game. With a controller connected at reset, the game waits with the ball on
the paddle. The demo also starts, with or without a controller, when nothing is pressed for
about 16 s while the game waits at a start: on the game-over screen once the curtain is
down, or with a new game's first ball on the paddle (not a ball after a lost one, or after a
cleared wall). Left, right or fire, on the controller or the direct buttons, ends it and
starts a new game.uio[7]: a note for each brick (higher rows,
higher notes), a thock for the paddle, a low rumble for the side and top walls, a sigh for a
lost ball and a sad trombone at game over; a rising call for a new game and a fanfare for a
cleared brick wall, each doubled an octave below.uio[7]); it is optional.| Control | Gamepad | Direct input |
|---|---|---|
| Move left / right | D-pad left / right | ui[0] / ui[1] |
| Fire: launch the ball (once the wall is built), or start a new game after game over | A, X, L or R | ui[2] |
| Autoplay | SELECT switches it on; left, right or fire switches it off | ui[3] high |
The other gamepad buttons (B, Y, START, up and down) do nothing. There is no pause, and a
game you are playing can't be restarted before game over, except by a reset or by unplugging
the controller and plugging it back in. Only the first of the Gamepad PMOD's two controllers is
read (the one Psychogenic's gamepad_pmod_single reads: the last 12 bits of each report); with
only the second one connected, the game sees no controller.
The direct inputs are active high, for plain buttons or for simulators that can't produce
the gamepad's serial signal. Pressing left, right or fire (ui[0] to ui[2]) also ends the
demo. Hold unused direct inputs low with pull-downs: a high ui[3] keeps autoplay on, and a
high ui[0] to ui[2] holds that button down. On the demo board, switch off the DIP switches
for ui[0] to ui[3], and those for ui[4] to ui[6] too when the Gamepad PMOD is fitted.
uo[7:0], with a VGA monitor.ui[6:4], with an
SNES-compatible controller. Optional: without it, use the direct inputs.ui[3:0], active high, with pull-downs.uio[7], with
headphones or a speaker, for sound.| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | left button (active high) | R1 | |
| 1 | right button (active high) | G1 | |
| 2 | fire button (active high) | B1 | |
| 3 | autoplay switch (active high) | VSync | |
| 4 | gamepad latch | R0 | |
| 5 | gamepad clk | G0 | |
| 6 | gamepad data | B0 | |
| 7 | HSync | audio (Audio Pmod) |