|
How To: Add an externally hosted game to PUArcade |
|
Thursday, 20 March 2008 |
As many PUArcade users know, there isn't an obvious way to load up games that are hosted at a different website. While streamlining this may be part of a future PUArcade version update, it is possible to install externally hosted games right into PUArcade. The best part is that the version of PUArcade you are using now probably already has this feature - you just didn't know it! Read on below for step by step directions on how to add an externally hosted game into PUArcade.
- Locate your externally hosted game. Be sure you have permission to link to this game! There are some websites that allow you to hotlink their games. You may also have another arcade site of your own that you want to link games from. Either way, you will need the URL of the game you want to link to, for example: http://www.yoursite.com/components/flash/game.swf.
- Create a new text file. In that text file, paste in the following code. Remember to replace all occurences of "http://www.yoursite.com/components/flash/game.swf" with the actual URL to the game you are installing:
<object type='application/x-shockwave-flash' allowScriptAccess='always' allowNetworking='all' height='480' width='640' data='http://www.yoursite.com/components/flash/game.swf'> <param name="movie" value="http://www.yoursite.com/components/flash/game.swf"/> <param name="menu" value="false"/> <comment> <embed src="http://www.yoursite.com/components/flash/game.swf"></embed> <noembed></noembed> </comment> </object> - Save the text file as "gamename.html" where "gamename" is the name of the game that you are installing.
- Install it in PUArcade by going to the administrative control panel and selecting "Manage Games", then clicking the "New" button in the top menu bar. Then, use your html file as the game file. You can fill out the rest of the form as you would for any other game. Note that height and width won't take affect here. Those values will come from the HTML file we made above.
- Thats it! PUArcade has the ability to show html/javascript games, so what we are doing here is using that feature to load a flash game instead. You could follow this same process to show a WMV/Quicktime video file by adjusting the code above to show a movie instead of a flash image.
NOTE: Games installed in this way cannot save scores. Be sure to select "No" for score saving when you install the game. If you have any trouble with it, please post in our forums here . If you enjoy PUArcade, please consider making a donation using the donate button at the bottom of the page.
|
|
Last Updated ( Tuesday, 10 June 2008 )
|
Greetings Tina