Coder Social home page Coder Social logo

obsfx / console8 Goto Github PK

View Code? Open in Web Editor NEW
12.0 3.0 1.0 1.34 MB

Yet another CHIP-8 emulator but works on your terminal.

Home Page: https://www.npmjs.com/package/console8

License: GNU General Public License v3.0

JavaScript 100.00%
chip-8 chip8 chip8-emulator nodejs javascript terminal tool command-line-tool command-line-app command-line-interface emulator

console8's Introduction

console8 npm version

console8 is yet another chip8 emulator but works on your command line. console8 simply uses your command line to render the graphics and does not require any GUI.

installation

npm install -g console8

console8 uses iohook package to handle the keyboard events so you may have to install with sudo and --unsafe-perm=true for post installation and execute with sudo to get necessary permissions from your system.

how to use

You can simply use by passing --rom argument with the path of the rom file.

console8 --rom=./roms/wipeoff.rom

You can customize the display color and character by using this additional arguments;

--color=<rendering color of ON bits> (optional, default: white)
available colors: white, red, green, yellow, blue, magenta, cyan

--speed=<speed of cycle execution, 1000 / speed> (optional, default: 450)

--rendering_char=<ascii char that represents ON bits> (optional, default: โ–ˆ)

You can also see all available arguments by using --help argument;

console8 --help
wall

ufo

wipeoff with custom rendering character

a warning

console8 is an experimental learning project so some roms can be buggy.

compatibility

I have tested on Ubuntu 19.10 / Lubuntu 19.10 / Windows 10 x64. I am not sure about macOS compatibility.

for rom files

Rom files are not included with npm installation but you can find some of them in this github repository;

badlogic / chip8 https://github.com/badlogic/chip8/tree/master/roms

cool resources

I learned tons of things from these great resources. If you are interested in emulators and if you want to learn how they work, you may want to check them out;

Guides

BUILDING A CHIP-8 EMULATOR [C++] https://austinmorlan.com/posts/chip8_emulator/

How to write an emulator (CHIP-8 interpreter) http://www.multigesture.net/articles/how-to-write-an-emulator-chip-8-interpreter/

CHIP-8 References

Cowgod's Chip-8 Technical Reference v1.0 http://devernay.free.fr/hacks/chip8/C8TECH10.HTM

Chip 8 instruction set http://devernay.free.fr/hacks/chip8/chip8def.htm

Source Reading

JamesGriffin / CHIP-8-Emulator https://github.com/JamesGriffin/CHIP-8-Emulator

console8's People

Contributors

dependabot[bot] avatar obsfx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

sushantlp

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.