Skip to content

mhimanshu712/Chip8_emulator_js

Repository files navigation

Chip8 Emulator 📟

JavaScript CSS

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

Getting Started

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).

Key Mappings

Space invaders can be played by using w ,a and d keys.
All the key mappings are present in Keyboard.js

Read More

How To : https://tobiasvl.github.io/blog/write-a-chip-8-emulator/
Technical Reference : http://devernay.free.fr/hacks/chip8/C8TECH10.HTM

About

Awesome looking chip8 emulator in the browser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published