Code Monkey home page Code Monkey logo

chip8-emu's Introduction

Chip8-Emu

My Chip-8 Emulator. Works quite nicely.

Written in C++11 (possibly some C++14), feel free to join development!

Features

  • Can run any valid Chip-8 roms (.ch8 files).
  • Emulator can be hard reset.
  • Working buzzer (audio) support.
  • Configurable
  • ... and many more features to come!

Planned important features

  • Somewhat working GUI (inside the emulator, software rendered).
  • Strongly configurable (volume, keyboard mapping, foreground render color, etc.)

Emulator in action (GIFs)

Breakout!

Preview

Bowling!

Preview

Current key mapping

Your Keyboard | Chip-8 Keyboard

  1 2 3 4          1 2 3 C
  Q W E R          4 5 6 D
  A S D F          7 8 9 E
  Z X C V          A 0 B F


Special keys:

[Esc] - Quit
[Return] - Hard reset

Dependencies (for compiling)

Runtime (running the emulator)

Syntax: ./Chip-8\ Emu <rom.ch8>

The emulator expects the dotfile .chip8_pref to be found at it's binary location. This is a JSON file, storing the emulator preferences.

Here is a sample .chip8_pref file, listing all existing settings:

{                //   xxrrggbb
  "RenderDrawColor": "FFFFFFFF",  // XXRRGGBB
  "RenderClearColor": "FFAA0000", // XXRRGGBB
  "Volume": 0.5,                  // Buzzer volume (0.0 - 1.0)
  "Resizable": true,              // Is the window resizable?
  "Width": 960,                   // The window width.
  "Height": 480,                  // The window height.
  "Ticks": 8                      // How many Chip-8 processor ticks per frame (1 - 999999).
}

All these settings listed are optional, the emulator has hard-coded defaults.

chip8-emu's People

Contributors

haudan avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

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.