Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/squiddev-cc/cc-web-term
A common library for a ComputerCraft web terminal
https://github.com/squiddev-cc/cc-web-term
computercraft emulator preact
Last synced: 3 days ago
JSON representation
A common library for a ComputerCraft web terminal
- Host: GitHub
- URL: https://github.com/squiddev-cc/cc-web-term
- Owner: SquidDev-CC
- License: bsd-3-clause
- Created: 2020-01-10T15:24:30.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-06T23:26:28.000Z (about 1 year ago)
- Last Synced: 2024-12-30T17:24:42.562Z (4 days ago)
- Topics: computercraft, emulator, preact
- Language: TypeScript
- Size: 320 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.
[copy-cat]: https://github.com/SquidDev-CC/copy-cat
[cloud-catcher]: https://github.com/SquidDev-CC/cloud-catcher