Find a file
2016-09-26 21:28:53 +10:00
bin init commit 2016-05-08 17:20:05 +10:00
documentation added keymap image 2016-09-01 21:04:46 +10:00
exe init commit 2016-05-08 17:20:05 +10:00
lib fix doc spelling typos and removed doc for removed inaccurate behaviour 2016-09-26 17:29:05 +10:00
spec fixed cpu timing spec 2016-09-26 21:28:53 +10:00
.gitignore init commit 2016-05-08 17:20:05 +10:00
.rspec init commit 2016-05-08 17:20:05 +10:00
.ruby-version init commit 2016-05-08 17:20:05 +10:00
.travis.yml init commit 2016-05-08 17:20:05 +10:00
CODE_OF_CONDUCT.md init commit 2016-05-08 17:20:05 +10:00
Gemfile init commit 2016-05-08 17:20:05 +10:00
Guardfile init commit 2016-05-08 17:20:05 +10:00
Rakefile init commit 2016-05-08 17:20:05 +10:00
README.md Update README.md 2016-09-01 21:11:22 +10:00
waterfoul.gemspec cleanup gemspec 2016-09-18 23:18:42 +10:00

Waterfoul

Waterfoul is a Gameboy emulator written in Ruby-lang. It is a casual excersize by myself to learn the internals of the device and how it works.

Getting Started

To start the emulator:

bundle exec exe/waterfoul start <path to rom>

Make sure to bundle install first and install required libraries.

By default the emulator will run the boot rom, if you wish to skip it then add --skip-boot as an option.

Requirements

The sdl2 library is currenty used to render pixels. Most platforms have packages avaliable, else see here. This library is required and needs to be installed before you can run the emulator.

Can it play roms?

Yes! but the list of roms that i know work is very limited to just Tetris, Super Mario Land and Pokemon Red. But a lot of work is being put into making other games compatable. The device does run the internal boot program succesfully and is passing test programs sucesfully (barggs).

Controls

The following shows the mapped keys to control the game. gameboy key mapping

Testing

If you wish to run the test suite, download the source code (make sure to run bundle install) and run bundle exec rspec