Comment by oersted
12 hours ago
How was this built? It's gorgeous, I've been wanting to have a cool-retro-term in the browser for a long while.
If this was built bespoke for this game, fair play, but I would love to have this library if it's a library.
EDIT: I found the repo https://github.com/jscalo/haunt
> js/terminal.js implements the I/O layer: a typewriter-speed character queue drained via requestAnimationFrame, an inline editable prompt with command history, and two promise-based input methods (readToken for OPS5 accept, readLine for acceptline).
> css/crt.css creates the retro look: a bezel frame with power LED, a perspective-transformed screen, repeating scanlines, a slow horizontal band, flicker animation, and triple-layer phosphor text glow. Three themes are available — green P1 (default), amber P3, and white — switchable from the settings menu.
No comments yet
Contribute on Hacker News ↗