Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.-. how do i embed emulator for my website #69

Open
shavedchaff5106 opened this issue Jul 23, 2020 · 3 comments
Open

.-. how do i embed emulator for my website #69

shavedchaff5106 opened this issue Jul 23, 2020 · 3 comments

Comments

@shavedchaff5106
Copy link

help :(

@LeonisX
Copy link

LeonisX commented Jul 23, 2020

Please describe what you have already done and we will see how it can be finished

@shavedchaff5106
Copy link
Author

shavedchaff5106 commented Jul 25, 2020 via email

@db48x
Copy link
Owner

db48x commented Sep 14, 2020

I'm sorry that I didn't see this earlier; my spam filter seems to have gotten above itself.

I recommend starting with one of the examples, such as example_dosbox.html. At the top of the file you'll see instructions for downloading the files that it needs, such as the precompiled DosBox emulator and a zip file containing the program to run in the emulator.

Further down you can see the HTML I use; your webpage will need to include the same scripts, and it will need to run something similar to the Javascript code there in order to start up the emulator. The code you see in this file is of course customized specifically for running Doom; it will need to change for every game you want to embed in your website.

I also recommend checking out example_ia.html, as it takes a much simpler approach. It uses the IALoader to embed a game directly from the Internet Archive. This means that you don't need to have as many files on your own web server making it much easier to set up. This example runs Pitfall for the Atari 2600, but you can embed any game you find on the Internet Archive simply by changing the identifier you pass to IALoader.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants