Get 5 complete royalty-free HTML5 game templates made with Phaser and use them in your projects or learn by studying the source code
Talking about Game development, HTML5, Javascript, Monetize and Phaser.
Learn cross platform HTML5 game development
Check my Gumroad page for commented source code, games and books.
It’s an incredible opportunity to learn how to create games with Phaser or just to reskin them and sell to your clients or publish as brand new games on various marketplaces.
Let’s have a look at the games included in the package:
* Black Jack – The famous casino card game.
* Coloring Book – A free-form coloring app, great for making kids apps.
* Jigsaw – A powerful jigsaw template, easily cut any image up, to any size.
* Sliding Puzzle – The classic puzzle game, easily customised and solvable.
* Word Search – A powerful word search template, with flexible word selection.
Along with the games, you will also receive the PSD files and a 10 pages guide which explains how to make your games run on a web server and shows how games are organised into folders.
This is how each game is structured:
As you can see, it’s very easy to figure out what is the content of each folder, but most of all I want you to have a quick look at the source code.
This is BlackJack’s startRound function:
/**
* This starts a new round going.
*
* It removes all of the cards (if visible) and swaps in the betting UI
* and text fields, unless you've run out of money!
*/
startRound: function () {
this.cardsGroup.removeAll(true, true);
if (this.bet > this.money)
{
this.bet = this.money;
}
this.turn = BlackJack.PLAYER;
this.hitButton.alpha = 1;
this.standButton.alpha = 1;
this.doubleDownButton.alpha = 1;
if (this.money === 0)
{
this.moneyText.text = "You are bankrupt!";
this.playButton.visible = false;
this.upButton.visible = false;
this.downButton.visible = false;
this.betText.visible = false;
}
else
{
this.moneyText.text = "Bank $" + this.money;
this.betText.text = "Bet $" + this.bet;
}
this.betGroup.visible = true;
this.playGroup.visible = false;
}
Never miss an update! Subscribe, and I will bother you by email only when a new game or full source code comes out.