ARCADEASCII
ENGINE · GLYPH ENGINE

Glyph Engine: a grid of letters, a whole world.

The core of every Arcade ASCII game. One plain JavaScript file sets up the screen, draws in ASCII or pixels, reads keyboard and touch, plays sound, saves progress and runs the game loop. Designed by Thee TM Soontornsing and Jarus Soontornsing (Toni Maxx).

01

Start a game in a few lines

A game declares its screen, its pieces and its hooks. The engine does the rest.

GE.screen({ cols: 40, rows: 24, bg: '#05080a' });
GE.piece('hero', { ascii: ['@'], col: '#5eead4', w: 1, h: 1,
  pixel: (px, py, pw, ph) => GE.px.R(px, py, pw, ph, 't') });
GE.game('mygame', {
  init()    { S = { x: 20 }; },
  frame(dt) { S.x += (keys.r - keys.l) * 10 * dt; },
  render()  { GE.clear(); GE.draw('hero', S.x, 12); GE.paint(); },
});
GE.start('mygame');
02

Grid, pieces and two looks

The screen is a grid of cells; each cell holds one character and a colour. Art is registered as pieces, and each piece has an ASCII form and a pixel form drawn over the same cells.

  • ASCII look: crisp characters with an optional CRT glow and scanlines.
  • PIXEL look: a low-resolution canvas scaled with hard pixels, a built-in 5×7 pixel font with an outline for any text on top, palettes and hit flashes.
  • Mask rule: text drawn before a sprite is hidden, text drawn after it sits on top, so HUDs stay readable.
  • Look registry: ASCII, PIXEL and LCD today; backends with fallback and lazy loading leave room for a REMASTER look.
ASCII Airways rendered by the Glyph Engine in ASCIIASCII Airways rendered by the Glyph Engine in pixel art

The same frame of ASCII Airways in both looks, drawn from one grid.

03

Controls for every hand

  • Keyboard: games bind their own keys; the engine releases them on key-up and when the window loses focus.
  • Touch stick + fire for action games.
  • Thumb Pad for one-screen games: layouts for 2 buttons side by side, 2 stacked, 3, 4 or a D-pad, for the left hand, right hand or both, shown, hinted or hidden.
  • Swipe on top of the pad: one swipe, one step, or steer mode that keeps a direction.
  • Every tap is answered with a ripple, a zone flash and the game’s own sound.

The rule behind it: tapping first, then the thumb zone, one hand, two hands, and the D-pad last.

04

Screens and views

Games can play wide or tall (upright on a phone, one thumb), in SPLIT view with the pad below the picture or FULL view with the picture filling the screen; a pinch switches between them. A status bar, a modern menu kit (sheets, alerts, toasts, a 3·2·1 countdown, game home and results screens), a help overlay and an Add to Home Screen hint come ready made.

05

Saves, passport and cloud

  • Versioned saves: one record per game with step-by-step migrations, so old progress always loads in a new version.
  • Shared passport: one add-only stamp book across every game.
  • Shared settings: sound, look, screen and hand follow the player between games.
  • Optional cloud save: sign-in through the site, a queue that waits while offline, retries with back-off, and a merge when two devices both played. Nothing runs until the player chooses it.
06

Built to be tested

  • Seeded worlds: world randomness from a seeded generator, scenery from a hash, so a seed always builds the same world.
  • Test mode: no animation loop; tests step exact 1/60 s frames and read the grid as text.
  • Dev overlay: hitboxes, frame rate, quarter-speed, freeze and single-frame stepping, with saving switched off.
  • Sprite gallery: every piece shown in both looks, animated, for art reviews.
  • Packs: content packs declare the engine version they need and are refused if it is too old.
CREDITS

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.

ASK

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.