Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chip-8 emultor using raylib in C

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.

demo

Windows Users

There are two compiler toolchains available for windows, MinGW-W64 (a free compiler using GCC), and Microsoft Visual Studio

Using MinGW-W64

  • Double click the build-MinGW-W64.bat file
  • 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

Note on MinGW-64 versions

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

If you have installed raylib from the 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.

Microsoft Visual Studio

  • Run build-VisualStudio2022.bat
  • double click the .sln file that is generated
  • develop your game
  • you are good to go

Linux Users

  • CD into the build folder
  • run ./premake5 gmake
  • CD back to the root
  • run make
  • you are good to go

MacOS Users

  • CD into the build folder
  • run ./premake5.osx gmake
  • CD back to the root
  • run make
  • you are good to go

Output files

The built code will be in the bin dir

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages