Game Development Reference
In-Depth Information
Exporting to Kongregate
Kongregate is an online hosting service that hosts free-to-play games. Kongregate has a lot
of web traffic and if you have a good game, you should upload it there. You will need to
sign up for a Kongregate account. In order to upload to Kongregate, you need to perform
the following steps:
1. Export the game as an HTML5 website.
2. Download Kongregate's JavaScript API located at ht-
tp://developers.kongregate.com/docs/api-overview/client-api .
3. Extract the contents using a file unzipper and drag them over to the game's content
folder that was created when you exported the game.
4. Open the kongregate_shell.html file and add the following code at the
bottom:
<div id="contentdiv" style="top:0px; left:0px;
width:700px; height:500px; borders:none;"></div>
5. Place the following code within the content div . You should put the following
code before the </div> tag:
<iframesrc = "index.html" width = "[gamewidth]" height
= "[gameheight]">
<p>This Browser does not support the iFrame.</p>
</iframe>
6. Sign up for a Kongregate account.
7. Upload your HTML5 game. The Kongregate icon looks like the following screen-
shot:
Search WWH ::




Custom Search