Skip to content

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

Open

Description

@shavedchaff5106

help :(

Activity

  1. LeonisX commented on Jul 23, 2020

    @LeonisX

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

  2. shavedchaff5106 commented on Jul 25, 2020

    @shavedchaff5106
    Author
  3. db48x commented on Sep 14, 2020

    @db48x
    Owner

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions