The menu screen of a noodle bar's terminal in the Rue basse: a bowl over a message panel, and in the panel four lines of a narrow font at a 6-pixel pitch, none of them on the tile grid, composed in RAM and sent to VRAM: the text module puts one glyph per tile, and a game that wants proportional text, or a label at any x and y, composes its own 2bpp layer. The primitive is tileBlitGlyph2bpp(), which ORs rows of a glyph into one tile and the tile to its right at a pixel shift; two calls per glyph cover the four tiles a glyph at (x, y) can touch. Press A and every line moves one pixel right, the glyphs crossing tile boundaries as they go. The text is not an asset: a 5x7 font declared as bits becomes 2bpp glyphs at boot.
| Word address | Content |
|---|---|
| $0400 | BG1 map: the layer's 160 tiles placed at column 6, row 10 |
| $0800 | BG2 map: the terminal |
| $1000 | BG1 tiles: the layer, then one blank tile |
| $2000 | BG2 tiles: the terminal |
| File | What | Made by |
|---|---|---|
| res/terminal.png | the bar terminal's screen, 256x224, four colours, 2bpp (res/terminal.png.toml) | devtools/art_assets/build.py (bar_terminal) |
The font is the font5x7 table of main.c, drawn by hand, CC0 like the rest of the Néo-Lumen assets (assets/neo-lumen/README.md).
| Button | Action |
|---|---|
| A | Shift every line one pixel to the right (six steps, then back) |
console, dma, background, input, tile, string