Integrate Kongregate’s JavaScript API in HTML5 Game to Submit High Score

Though Kongregate’s API can be directly initialized in the main game’s HTML, the better way is to always create a Kongregate’s Shell which is nothing but another HTML file which you refer for running the game in stead of your default game’s HTML file. The Shell file in turn embeds your game’s default HTML file using an iFrame. Code for Shell HTML can be used from the code snippet below

You can change index.html to refer to your game’s HTML file name. Also, you need to ensure the width and height is properly set for your game for “contentdiv”. Define your localStorage as following in a separate js file (for ex storage.js)

Now in the game’s HTML add code as highlighted below

High scores should be submitted twice. Once at the completion of game’s stage, whenever high score is achieved. And then second time whenever game is initially[…]

How to make a Video available in top YouTube search?

YouTube is one of the largest mediums to connect with your audience and has been ranked The second most popular site by Alexa as of April 2017. So more and more people are looking for better search ranking of their videos. We are going to look at some basic tips which will help your videos rank higher in YouTube search.  ⇒⇒ PRIMARY TIPS ⇐⇐ Making of a better content ultimately leads to the video showing up higher in YouTube search results. Following key points are not only going to help your videos becoming available in top searches but also getting more views: 1. Keyword Search  The first step is to search for a related video in YouTube and you would see search phrase suggestions as you type. These search phrases are the most popular search phrases for related content so you get some idea about what all things people are looking for and what all[…]