2020-01-10 16:26:48 +00:00
2023-09-29 18:27:28 +01:00
2023-09-29 18:27:28 +01:00
2020-11-10 17:52:04 +00:00
2020-01-10 15:27:30 +00:00
2020-01-10 15:27:30 +00:00
2023-09-29 18:27:28 +01:00

cc-web-term

A simple library for web-based ComputerCraft terminals.

Features

  • Renders ComputerCraft terminal using a canvas.
  • Bundles both the standard and "high definition" ComputerCraft fonts.
  • Near-perfect event emulation.
  • Gif recording and screenshot functionality

Building

  • npm run prepack will build the appropriate files.
  • npm run rollup && npm run host will build the example, and host it at http://localhost:8080/example.

Usage

See the example/main.tsx file for a basic example. When distributing, you should bundle the contents of the assets folder, as we depend on all files in there.

See copy-cat and cloud-catcher for more complex (and complete) examples.

Languages
TypeScript 93.5%
JavaScript 2.8%
CSS 2%
HTML 1.7%