joamag / boytacean

A GB emulator that is written in Rust 🦀!
https://boytacean.joao.me
Apache License 2.0
624 stars 32 forks source link

Use as a lib #2

Open Allakazan opened 1 year ago

Allakazan commented 1 year ago

There's any way that can i use your emulator as a library out-of-the-box ? I want to integrate on a project of mine but i can't see any ways to make it work

joamag commented 1 year ago

@Allakazan Yes, absolutely I'll try to compile a simple example of how you can use it as a library. Are you planning to use in a web or Rust native context?

joamag commented 1 year ago

@Allakazan can you provide some context on the kind of usage your aiming at?

Allakazan commented 1 year ago

Sorry for the delay ! I'm looking foward to use boytacean as a simple out of the box js lib on the web. Without any front end.

The goal must be something like, you initialize the Gameboy Class passing the canvas id/element and some configuration object that will contain the another options. I tried to enter further on your code to see what i could do but some code is from the emu-kit package so i couldn't had any success on it.

My question was if there's is any way to use boytacean as a js lib :)

joamag commented 1 year ago

That should be possible let me compile an example and send that to you

Allakazan commented 1 year ago

Thanks ! Your emulator is the best i found for web, the sound is really smooth

joamag commented 1 year ago

Thanks ! Your emulator is the best i found for web, the sound is really smooth

@Allakazan Thanks, man, and sorry for taking so long to create the embed example. Still on my queue no worries.

bartoverwater commented 1 year ago

Could you share it here or in the readme? Iam interested in this too.

aacai commented 10 months ago

这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。