Skip to content
/ coco-8 Public

Fantasy VM for games and creative coding

License

Notifications You must be signed in to change notification settings

PIWEEK/coco-8

Folders and files

NameName
Last commit message
Last commit date
Jul 18, 2024
Jul 19, 2024
Jul 19, 2024
Jul 18, 2024
Jul 18, 2024
Jul 18, 2024
Jul 16, 2024
Jul 12, 2024
Jul 12, 2024
Jul 15, 2024
Jul 16, 2024
Jul 18, 2024

Repository files navigation

COCO-8

COCO-8 (or 👻-8) is a fantasy VM for games and creative coding. COCO-8 runs on Wasm and it's written in Rust.

COCO-8 is made of these parts:

  • coco-core, the virtual CPU. It is basically Uxn, as documented (COCO-8 follows the documented spec, not the reference implementation of Uxn).

  • Devices, which interface with the CPU and provide input / output with peripherals or other systems (e.g. video, audio, controller input, etc.).

  • A web-based GUI, for users to load and run COCO-8 roms.

Build and run

Requirements

You need Rust and Cargo in your system. You can get them with rustup.

You will also need the wasm-bindgen CLI tool.

Build

cargo install wasm-bindgen-cli

The build.sh shell script builds the Rust code and generates ESM modules inside coco-ui/vendor.

./build.sh

Run

To run COCO-8, you just need to start a local web server in coco-ui.

If you have npm in your system:

npx http-server coco-ui

About

Fantasy VM for games and creative coding

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published