Create HTML5 Vertical Endless Runner cross platform games

Using Phaser framework and other FREE software
Endless runner games are gaining more and more popularity and they are really easy to code.
I will take you by hand through the creation of a complete HTML5 vertical endless runner cross platform game with a lot of features and room for customization.
100 pages + 31 source code examples with a free update to come in a few days.

Easily add Google’s DoubleClick ads in your HTML5 games with a little Phaser plugin

Emanuele Feronato Game design, HTML5, Javascript, Monetize, Phaser

When you create an HTML5 game, sooner or later you will want to monetize it.

If you plan to add ads, it can be quite a pain since there isn’t that much information around the web about HTML5 content and ads.

DoubleClick network seems to be a good choice and there are good news because Orange Games developed a plugin for providing nice ads integration in your Phaser games, have a look at this example:

You may have to reload the iframe to see it back in action.

You can find all the required docs in the official GitHub page, anyway here is the core of the integration:

Let me explain highlighted lines:

Line 45: the game itself.

Line 46: the id of game container.

Line 47: the id of ad container.

Line 48: the tag of your video ad. It’s not that easy to generate a working tag for video ads, so let me know if you need a tutorial about it.

I think I’ll try this service in a game I am about to publish.

From null to full HTML5 cross platform game

I will take you by hand from the bare bones of JavaScript programming through the creation of a full cross platform HTML5 game, with detailed explainations and source code.

If you don't know where to start, then From null to full HTML5 cross platform game is the book for you.

Comments 12

  1. Tom Vencel

    Hi Emanuel

    Thank you for this post! Could you please tell me where I can sign up for double click.

    Also, is this different from Google Adsense? (which you’re not allowed to put inside games).

    Thank you!

    1. Post
      Author
  2. Maxi

    Hi Emanuele,

    thanks for the tutorials.
    I need put ads in my HTML5 games but how can create an account in DoubleClick and get the tag for video ads to show ads in my games?

    Thanks.
    Maxi.

    1. Post
      Author
      1. Maxi

        How can create a tag video to monetize my game? I have an account, but is very confuse create ads and get money hehe

    1. Post
      Author
  3. Frederik

    Interesting plugin, excited to try it out – especially for the browser version of my new unreleased Phaser game. But a follow-up tutorial on how to generate a valid video ad tag for both desktop and mobile web with DoubleClick for Publishers would be very helpful. There are so many parameters in a video tag, but some of them are automatically added by the IMA SDK, or how?

Leave a Reply

Your email address will not be published. Required fields are marked *