Skip to content
trustsig-euPublic

About

A Chip-8 emulator that runs purely in CSS & HTML.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chip8CSS

Chromium/Chrome only.

Try it out here

A Chip-8 emulator that runs purely in CSS & HTML. A Rust compiler converts Chip-8 ROMs into pure css. Try it out with Tetris, Space Invaders, Pong or any other Chip-8 program you got!

Questions

Is JavaScript / WebAssembly used?

No. There is not a single line of JavaScript ( or WebAssembly ) used anywhere in the demos.

Is HTML used?

HTML is used to load the actual styles, as well to provide controls ( via buttons & checkboxes ), a screen (div) for output, and a container (div) for the clock.

How is the output rendered?

It fills pixels individually on the 64×32 screen div via gradients ( background-image:linear-gradient )

What ROMs does it support?

Any standard Chip-8 ROM, it is not specific to the given demo games. The labels on controls have been mapped to make it easier to play the games - but thats just a visual QoL improvement.

Performance?

Brix reaches around 1.1k instructions per second. On low-end machines it can feel pretty laggy. On my mac m3 it is smooth enough to be playable.

No sound?

Sadly I’ve yet to figure out a way to dynamically generate and play sound in an elegant manner. While it is possible to trigger audio via css, I’ve not got around to testing it further.

References

Huge legwork was done by these people, full credits to them:

About

A Chip-8 emulator that runs purely in CSS & HTML.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages