I was asked this today if a scratch game could be embedded in a website and didn’t think it was ‘do-able’ – my apologies to Rebecca!
It’s much easier than I thought.
Basically there are 2 files that you need:
- ScratchApplet.jar and
These get copied into the same folder as your web page. You also need to save your game in that same folder as an example my ‘game’ was called button.sb
Now create the index page and you’ll have a folder like this:
The index page should contain the code:
<applet id=”ProjectApplet” style=”display:block” code=”ScratchApplet” codebase=”./” archive=”ScratchApplet.jar” height=”387″ width=”482″>
<param name=”project” value=”button.sb”>
I hope you can see that the red text may need changing to the name of your file.
Now run the index file and all should be good. That’s all there is to it! – it may look ‘techy’ but once you’ve done it once it is really easy.