sacckey/rubyboy
소개
A Game Boy emulator written in Ruby
게임 및 에뮬레이션측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original
A Game Boy emulator written in Ruby
Try it in your browser: ruby.wasm version (CRuby compiled to WebAssembly) / Spinel version (the same Ruby code compiled to C by Spinel, then to WebAssembly)
Screenshots
Installation
Rubyboy requires Ruby 4.0 or higher and SDL2.
$ gem install rubyboy
[!TIP] Run with YJIT (
RUBYOPT=--yjit) for better performance.
Usage
$ RUBYOPT=--yjit rubyboy [rom_path]
Without a ROM path, it runs the bundled Tobu Tobu Girl.
Controls
| Key | Button |
|---|---|
W A S D |
↑ ← ↓ → |
K |
A |
J |
B |
U |
Select |
I |
Start |
1–0 |
Save state to slot 1–9, 0 |
Left Shift + 1–0 |
Load state from that slot |
Battery-backed games save to <rom>.sav, and save states go to <rom>.state<N>,
next to the ROM file.
Options
| Option | Effect |
|---|---|
--frames N |
Exit after N frames |
--unlimited |
Run as fast as possible; audio that cannot be played in time is dropped |
Benchmark
On an Apple M4, Rubyboy runs at about 110 FPS on CRuby, 290 FPS with YJIT and 800 FPS when compiled with Spinel. See BENCHMARK.md for the method and details.
Other ways to run
- WebAssembly builds: the browser versions (ruby.wasm and Spinel)
- Spinel: compile Rubyboy to a native executable
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/sacckey/rubyboy. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
License
The gem is available as open source under the terms of the MIT License.
관련 프로젝트 살펴보기
불러오는 중…