dont-track-me-google
Firefox and Chrome extensions to prevent Google from making links ugly.
WGLT is a JavaScript/TypeScript library for creating ASCII games in the browser.
WGLT is absurdly overoptimized for performance, using WebGL for minimal CPU.
WGLT is modelled after libtcod and rot.js.
Add dependency to your package.json:
npm i -D wglt
Import library:
import { Colors, Terminal } from 'wglt';
Use it:
import { Colors, Terminal } from 'wglt';
const term = new Terminal(document.querySelector('canvas') as HTMLCanvasElement, 80, 45);
term.fillRect(0, 0, 80, 45, 0, Colors.YELLOW, Colors.DARK_BLUE);
let x = 10;
let y = 10;
term.update = () => {
const moveKey = term.getMovementKey();
if (moveKey) {
x += moveKey.x;
y += moveKey.y;
}
term.clear();
term.drawString(1, 1, 'Hello world!');
term.drawString(1, 3, 'Use arrow keys to move');
term.drawString(x, y, '@');
};
WGLT is a minimalist library. It is intended to be small, lightweight, and fast. It serves the very narrow use case of minimalist ASCII or ANSI games in the web browser.
By default, WGLT uses the original IBM CGA Character set, thick variant, dumped from addresses 0x1800-0x1fff the 5788005 IBM Character Generator ROM.
I do not have intentions to include support for formatted text (i.e., bold or underline), extended character sets, emoji, etc. While I am flattered by those feature requests, I suggest you look at alternate libraries such as:
WGLT supports custom font images, and provides built in support for standard fonts:
WGLT supports full 32-bit color, and also provides constants for standard palettes:
By default, WGLT renders crisp pixels. WGLT also provides an optional CRT filter with the following effects:
more like this
Firefox and Chrome extensions to prevent Google from making links ugly.
search projects, people, and tags