An awesome looking Chip8 emulator written in vanilla javascript, initially loads Space Invaders
But custom ROM can be loaded, by clicking on the power button (RED)
Click to launch
This project uses ParcelJs to bundel the files. To get started run
npm run start
The Chip8 cpu instructions (36 instructions) have been implemented in the Chip.js file.
It also implements memory and the registers.
The file SpaceInvaders.js contains the binary of the game stored in an Uint8Array.
Rest of the files handle keyboard, screen (64 x 32) and sound (basically an annoying buzzer).
Space invaders can be played by using w
,a
and d
keys.
All the key mappings are present in Keyboard.js
How To : https://tobiasvl.github.io/blog/write-a-chip-8-emulator/
Technical Reference : http://devernay.free.fr/hacks/chip8/C8TECH10.HTM