.-. how do i embed emulator for my website
help :(
Please describe what you have already done and we will see how it can be finished
?.-. im confused - idk how to embed - i havent started because idk how to do it
From: Leonis [email protected] Sent: 23 July 2020 23:44 To: db48x/emularity Cc: Humayun Kiani; Author Subject: Re: [db48x/emularity] .-. how do i embed emulator for my website (#69)
Please describe what you have already done and we will see how it can be finished
You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/db48x/emularity/issues/69#issuecomment-663267756, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQKVHX7EIUJX7JQ6FROCDFDR5C4L7ANCNFSM4PFXJSOA.
Bradford Academy, Teasdale Street, Bradford, BD4 7QJ | 01274 256789 | www.bradfordacademy.co.uk
CONFIDENTIALITY NOTICE: This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify us immediately. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Bradford Academy. Finally, the recipient should check this email and any attachments for the presence of viruses. Although we do thoroughly check for viruses, Bradford Academy accepts no liability for any damage caused by any virus transmitted by this email.
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.