The engine that draws games with characters.
Every Arcade ASCII game runs on one in-house engine family: the Glyph Engine, a JavaScript game engine where every frame is a grid of characters, and the Pocket Engine built on top of it for one-screen handheld games. Designed by Thee TM Soontornsing and Jarus Soontornsing (Toni Maxx).
At a glance
| Language | Plain JavaScript, about 2,000 lines for the whole family |
| Dependencies | None. No libraries, no build step: a page loads one script |
| Looks | ASCII and PIXEL in every game, an LCD look for Pocket games, and a slot for a REMASTER look |
| Platforms | Any modern browser, desktop and phone, wide or upright |
| Games built on it | ASCII Airways, Cable Diver, Lantern Keeper (all live) |
| Availability | In-house: it powers every Arcade ASCII game |
How it is built
The engine is a stack of small layers. Each game adds its own rules and pictures on top; the engine never knows which game is running.
GAMES ASCII Airways · Cable Diver · Lantern Keeper ───────────────────────────────────────────────────────────────────── POCKET ENGINE beat clock · tempo · Game A/B · lives · LCD look · data packs ───────────────────────────────────────────────────────────────────── GLYPH MODULES looks · Thumb Pad + views · menu · passport · cloud save ───────────────────────────────────────────────────────────────────── GLYPH CORE character grid · ASCII + PIXEL renderers · pieces · input sound · versioned save · seeded loop · test mode · packs
Optional parts come as separate files, so a game only loads what it uses, and the core stays small and stable.
The ideas behind it
The character grid is the truth
A game writes letters and colours into a grid. Everything else, including the pixel art, is drawn from that grid, so the two looks can never disagree.
One game, two looks
Every piece of art exists twice: as characters and as pixels. Players switch at any time and the game plays exactly the same.
Deterministic by design
The world comes from a seed, scenery from a hash, and test runs step in fixed frames. The same seed and the same taps always give the same game, which makes replays, fair daily challenges and exact testing possible.
Every tap is answered
On phones the engine answers every touch at once with a ripple, a flash and a sound, and queues a press that arrives during a move so it is never lost.
Content as data
New cities and festival nights are data packs: art, rules within safe limits, calendar dates and stamps, checked and loaded by the engine.
Online is optional
Sign-in and cloud save sit behind one small door that does nothing until a player chooses it, and never touches the game itself.
Quality you can measure
- Engine fingerprint: after every engine change, each live game is replayed from fixed seeds and its whole state, grid and sprites are hashed. The hashes must match, so a change in the engine can never quietly change a game.
- Replay identity: when Lantern Keeper moved onto the Pocket Engine, 60 recorded replays (29,964 steps) played back identical to the live game.
- Automated checks: hundreds of browser checks per game (ASCII Airways alone runs about 490) plus logic tests that run in Node in under a second.
- Measured speed: the PIXEL renderer draws a full Bangkok frame of ASCII Airways in about 1.4 to 2.2 ms.
Try it
This small Snake game is about 60 lines on top of the Glyph Engine: two looks (press X), bound keys, a versioned save and test mode, all from the engine.
Designed by
The Glyph Engine and the Pocket Engine are designed by Thee TM Soontornsing and Jarus Soontornsing (Toni Maxx) for Arcade ASCII, a LogicBaker brand.
Questions? Ask Glyph
Glyph is our AI guide. It knows every page of this site and loves helping people make their own retro games. Answers can be wrong; Glyph cites the page it used.