Chip-8

The chip8 emulator was built with Raylib and compiled to WebAssembly.

Controls: - Spacebar: Pause / Resume emulation

CHIP-8 Keypad (logical layout):

1 2 3 C
4 5 6 D
7 8 9 E
A 0 B F

To compile for web similarly use Emscripten SDK:

emcc -o main.html src/main.c -Os -Wall C:/raylib/raylib/src/libraylib.web.a -I. \\
-Iinclude -IC:/raylib/raylib/src -L. -LC:/raylib/raylib/src/libraylib.web.a -s \\
USE_GLFW=3 -s ASYNCIFY -s WASM=1 --preload-file resources@/resources --shell-file minshell.html -DPLATFORM_WEB

Source: chip8-raylib