-
Notifications
You must be signed in to change notification settings - Fork 0
Example Graphic
github-actions[bot] edited this page Jul 18, 2026
·
3 revisions
Goal: Play a tiny arena game drawn entirely in the terminal — move, shoot, avoid the opponent.
- Upload GraphicExample.
- Terminal at 9600 baud, UTF-8 on.
- Click inside the terminal window so keystrokes go to the game.
| Key | Action |
|---|---|
| W A S D | Move |
| Space | Fire |
| R | Restart after win/lose |
Mouse reporting is turned off in this example so random mouse bytes do not interfere with play.
- Blue walls (including a center barrier)
- Green player face / red opponent
- Yellow / magenta projectiles
-
YOU WIN!orGAME OVERplus restart hint
- Keep the baud rate at 9600; faster redraws need a solid USB link.
- If movement feels sticky, close other programs using the serial port.
- This example shows a proper continuous
loop()— a good pattern for your own games and dashboards.
A tiny arena game using WASD keys.


ANSITerm is open source under the LGPL-3.0 license. · Repository · Issues