GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - dionrhys/chip8-win-console: Windows console implementation of the CHIP-8 interpreted programming language

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
CHIP-8
CHIP-8
 
 
.gitignore
.gitignore
 
 
CHIP-8.sln
CHIP-8.sln
 
 
LICENCE.txt
LICENCE.txt
 
 
README.md
README.md
 
 
screenshot.png
screenshot.png
 
 

Repository files navigation

chip8-win-console

For science!

Screenshot of the implementation playing PONG

Running

  1. Build the source
  2. Run the program
  3. Type in a path to a CHIP-8 game (relative to the exe)
  4. Press Enter to play!

(This project relies on P/Invoke to interact with the native Windows API, and thus only Windows Desktop platforms are supported at the moment)

Keyboard Input

A CHIP-8 / COSMAC-VIP keyboard is made up of 16 keys and is laid out like this:

1 2 3 C
4 5 6 D
7 8 9 E
A 0 B F

These are mapped to the following keys on a typical QWERTY keyboard:

1 2 3 4
Q W E R
A S D F
Z X C V

If you have a non-QWERTY keyboard that has the same mechanical layout, the keys should map across to your setup equally well. For example, the keys for a Russian ЙЦУКЕН keyboard should be mapped like so:

1 2 3 4
Й Ц У К
Ф Ы В А
Я Ч С М

TODOs / Up For Grabs

  • Implement a less flickery method of drawing to the console
    • Collision detection is done by inverting pixels on the screen, and it's quite evident...
  • Less abrupt audio cut off
    • Sound is implemented by looping a dynamically-generated WAV file until a timer hits 0
    • Stopping the sound sometimes results in a little pop noise that's caused by the waveform dropping to 0 very suddenly, instead of smoothing out
  • Configurable keyboard layout
  • Get rid of some magic numbers / constants
  • Support exiting / changing / resetting programs

About

Windows console implementation of the CHIP-8 interpreted programming language

Topics

chip-8chip8chip8-emulatorconsole-applicationemulatorfor-sciencewindows-desktop

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.