Crates.io | rgy |
lib.rs | rgy |
version | 0.1.0 |
source | src |
created_at | 2019-12-14 10:54:35.765554 |
updated_at | 2019-12-14 10:54:35.765554 |
description | No-std Rust GameBoy emulator library |
homepage | https://github.com/yushiomote/rgy |
repository | https://github.com/yushiomote/rgy |
max_upload_size | |
id | 189331 |
size | 375,253 |
No-std cross-platform Rust GameBoy emulator library. Rust GameboY (RGY, or Real GaY).
Once you implement OS-specific part, i.e. Hardware
trait, you will get a GameBoy emulator for your environment.
struct Hardware;
// 1. Implement `rgy::Hardware`.
impl rgy::Hardware for Hardware {
...
}
// 2. Call `rgy::run`.
fn main() {
let cfg = Config::new();
let rom = include_bytes!("rom,gb");
rgy::run(cfg, &rom, Hardware);
}
$ cargo run --example pc <a ROM file>
The example runs the GameBoy emulator in UNIX environment. It depends on libasound2-dev
and libxcursor-dev
.
The ROM files can be easily downloaded from the Internet.
The following projects use this library to run a GameBoy emulator.