Skip to content

DylanBulfin/GBEmu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GBEmu

This is a basic Gameboy emulator. Sound is not implemented at all and not all games work perfectly, but most I've tested do.

Demo Videos

Full playlist for ease of access - https://www.youtube.com/playlist?list=PLinm6frsc3SR5eT5ezNUtylG4ntSj3-oa

Packages

Only Win32 package is available right now until I get a new hard drive and reinstall Linux, I'm afraid. Will add package for 64 bit Linux ASAP.

Win32 - https://drive.google.com/open?id=1FjN35oSYPVvWA0Gz-M1omJld56OMzTSH

Instructions for use

If you want to test it with your own games, simply download the package for your specific OS. Extract it to some folder. Put your roms in the roms folder, ensure they all have the file extension .gb (if it comes with extension .gbc just rename, if it comes with any other extension it probably isn't a Game Boy game but feel free to try your luck). To run, open up a terminal in the folder and type "./emulator.exe " (or "./emulator on Linux), replacing with the name of the rom without the filename. For example, running the command "./emulator.exe tetris" will use the file ./roms/tetris.gb (unless you change the roms folder in the settings file).

Also, membrane keyboards have issues recognizing several key presses at once, if you run into issues with this it's not my emulator's fault, try changing the A and B buttons to Left Alt and Left Ctrl respectively.

Settings

  • FAST_FORWARD - Set to true or false, if set to true it doesn't wait between frame draws and will run significantly faster.
  • WINDOW_HEIGHT - Set to height of window in pixels.
  • WINDOW_WIDTH - Set to width of window in pixels, preferably equal to 10/9 * WINDOW_HEIGHT.
  • COLOR_MODE - Set to green or grey/gray, determines palette that will be used for rendering the pixel array.
  • SAVE_DIRECTORY - Set to name of save directory with trailing forward slash.
  • GAME_DIRECTORY - Set to name of game directory with trailing forward slash.
  • LOAD_SAVE - Set to true or false, if set to false it won't load saves from save directory even if they exist.
  • A_KEY - Set to SDL-compliant name of key corresponding to A
  • B_KEY - Set to SDL-compliant name of key corresponding to B
  • START_KEY - Set to SDL-compliant name of key corresponding to Start
  • SELECT_KEY - Set to SDL-compliant name of key corresponding to Select
  • UP_KEY - Set to SDL-compliant name of key corresponding to Up
  • DOWN_KEY - Set to SDL-compliant name of key corresponding to Down
  • LEFT_KEY - Set to SDL-compliant name of key corresponding to Left
  • RIGHT_KEY - Set to SDL-compliant name of key corresponding to Right

About

Gameboy emulator in C

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published