Talking about Game development, HTML5, Javascript and Monetize.
Did you hear about Gamedistribution.com? According to the official website, it’s the biggest broker of high quality, cross-platform games and connects the best game developers to the biggest publishers. I have to say I did not test it yet (but I will), but there is a nice HTML5 catalog in the site, including the games developed by OrangeGames which is quite a big studio. Gamedistribution gives developers an easy integration API to make your game benefit of Gamedistribution services, so I tried to integrate their HTML5 API on my Just Jump game whose commented source code is available to be downloaded for free at LearnLazer site. So once you register as a developer and have your game in the dashboard like I did: You can change index.html this way:
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body{
background: #000000;
padding:0px;
margin:0px;
}
</style>
<script src="phaser.min.js"></script>
<script src = "game.js"></script>
<script>
var initialized = false;
function initGDApi(){
if(!initialized){
var settings = {
gameId: "xxxxxxxxxxxxxxxxxxxxxxxx",
userId: "yyyyyyyyyyyyyyyyyyyyyyyy",
resumeGame: resumeGame,
pauseGame: pauseGame,
onInit: function (data) {
initialized = true;
},
onError: function (data) {
console.log("Error:"+data);
}
};
(function(i,s,o,g,r,a,m){
i['GameDistribution']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)};i[r].l=1*new Date();a=s.createElement(o);m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a, m);
})(window, document, 'script', '//html5.api.gamedistribution.com/libs/gd/api.js', 'gdApi');
gdApi(settings);
function resumeGame() {
console.log("Resume game");
}
function pauseGame() {
console.log("Pause game");
}
}
}
initGDApi();
</script>
</head>
<body>
</body>
</html>
Never miss an update! Subscribe, and I will bother you by email only when a new game or full source code comes out.