This is a simple Chip-8 emulator written in C using the raylib library for graphics and input handling. It is designed to be cross-platform and easy to build on Windows, Linux, and MacOS.
There are two compiler toolchains available for windows, MinGW-W64 (a free compiler using GCC), and Microsoft Visual Studio
- Double click the
build-MinGW-W64.batfile - CD into the folder in your terminal
- if you are usiing the W64devkit and have not added it to your system path environment variable, you must use the W64devkit.exe terminal, not CMD.exe
- If you want to use cmd.exe or any other terminal, please make sure that gcc/mingw-W64 is in your path environment variable.
- run
make - You are good to go
Make sure you have a modern version of MinGW-W64 (not mingw). The best place to get it is from the W64devkit from https://github.com/skeeto/w64devkit/releases or the version installed with the raylib installer
Make sure you have added the path
C:\raylib\w64devkit\bin
To your path environment variable so that the compiler that came with raylib can be found.
DO NOT INSTALL ANOTHER MinGW-W64 from another source such as msys2, you don't need it.
- Run
build-VisualStudio2022.bat - double click the
.slnfile that is generated - develop your game
- you are good to go
- CD into the build folder
- run
./premake5 gmake - CD back to the root
- run
make - you are good to go
- CD into the build folder
- run
./premake5.osx gmake - CD back to the root
- run
make - you are good to go
The built code will be in the bin dir
