Get 5 complete royalty-free HTML5 game templates made with Phaser and use them in your projects or learn by studying the source code

This is going to be one the posts with the longest title I ever published, but there’s really a lot to talk about because Richard Davey himself, the mind behind the awesome Phaser framework, released a package with 5 royalty-free game templates, with full commented source code, PSD files and guide to use them in your own commercial projects. montage 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;

    }
As you can see, the function is commented, and each variable has a proper name to let you quickly understand its role in the game. You’ll also get two Phaser plugins: A powerful flood fill routine that extends the BitmapData class (as used in the Colouring Book template), and a flexible Jigsaw piece cutting plugin, where you can easily use just the plugins to cut out shapes, with their own stroke thickness. This package is a must have even if you are an experienced developer: having five game templates ready to go is always an opportunity to save development time, and the way each game source code is structured allows an enormous space for customisation. Get your 5 royalty-free game templates and start building your own game! Please understand these are not tutorials. Although the code is well commented, a basic level of Phaser experience is expected to get the most from them. If you are an absolute beginner, you should also have From null to full HTML5 cross platform game or Interphase #1 to get you started with Phaser.

Get the most popular Phaser 3 book

Through 202 pages, 32 source code examples and an Android Studio project you will learn how to build cross platform HTML5 games and create a complete game along the way.

Get the book

215 GAME PROTOTYPES EXPLAINED WITH SOURCE CODE
// 1+2=3
// 100 rounds
// 10000000
// 2 Cars
// 2048
// A Blocky Christmas
// A Jumping Block
// A Life of Logic
// Angry Birds
// Angry Birds Space
// Artillery
// Astro-PANIC!
// Avoider
// Back to Square One
// Ball Game
// Ball vs Ball
// Ball: Revamped
// Balloon Invasion
// BallPusher
// Ballz
// Bar Balance
// Bejeweled
// Biggification
// Block it
// Blockage
// Bloons
// Boids
// Bombuzal
// Boom Dots
// Bouncing Ball
// Bouncing Ball 2
// Bouncy Light
// BoxHead
// Breakout
// Bricks
// Bubble Chaos
// Bubbles 2
// Card Game
// Castle Ramble
// Chronotron
// Circle Chain
// Circle Path
// Circle Race
// Circular endless runner
// Cirplosion
// CLOCKS - The Game
// Color Hit
// Color Jump
// ColorFill
// Columns
// Concentration
// Crossy Road
// Crush the Castle
// Cube Jump
// CubesOut
// Dash N Blast
// Dashy Panda
// Deflection
// Diamond Digger Saga
// Don't touch the spikes
// Dots
// Down The Mountain
// Drag and Match
// Draw Game
// Drop Wizard
// DROP'd
// Dudeski
// Dungeon Raid
// Educational Game
// Elasticity
// Endless Runner
// Erase Box
// Eskiv
// Farm Heroes Saga
// Filler
// Flappy Bird
// Fling
// Flipping Legend
// Floaty Light
// Fuse Ballz
// GearTaker
// Gem Sweeper
// Globe
// Goat Rider
// Gold Miner
// Grindstone
// GuessNext
// Helicopter
// Hero Emblems
// Hero Slide
// Hexagonal Tiles
// HookPod
// Hop Hop Hop Underwater
// Horizontal Endless Runner
// Hundreds
// Hungry Hero
// Hurry it's Christmas
// InkTd
// Iromeku
// Jet Set Willy
// Jigsaw Game
// Knife Hit
// Knightfall
// Legends of Runeterra
// Lep's World
// Line Rider
// Lumines
// Magick
// MagOrMin
// Mass Attack
// Math Game
// Maze
// Meeblings
// Memdot
// Metro Siberia Underground
// Mike Dangers
// Mikey Hooks
// Nano War
// Nodes
// o:anquan
// One Button Game
// One Tap RPG
// Ononmin
// Pacco
// Perfect Square!
// Perfectionism
// Phyballs
// Pixel Purge
// PixelField
// Planet Revenge
// Plants Vs Zombies
// Platform
// Platform game
// Plus+Plus
// Pocket Snap
// Poker
// Pool
// Pop the Lock
// Pop to Save
// Poux
// Pudi
// Pumpkin Story
// Puppet Bird
// Pyramids of Ra
// qomp
// Quick Switch
// Racing
// Radical
// Rebuild Chile
// Renju
// Rise Above
// Risky Road
// Roguelike
// Roly Poly
// Run Around
// Rush Hour
// SameGame
// SamePhysics
// Save the Totem
// Security
// Serious Scramblers
// Shrink it
// Sling
// Slingy
// Snowflakes
// Sokoban
// Space Checkers
// Space is Key
// Spellfall
// Spinny Gun
// Splitter
// Spring Ninja
// Sproing
// Stabilize!
// Stack
// Stairs
// Stick Hero
// String Avoider
// Stringy
// Sudoku
// Super Mario Bros
// Surfingers
// Survival Horror
// Talesworth Adventure
// Tetris
// The Impossible Line
// The Moops - Combos of Joy
// The Next Arrow
// Threes
// Tic Tac Toe
// Timberman
// Tiny Wings
// Tipsy Tower
// Toony
// Totem Destroyer
// Tower Defense
// Trick Shot
// Tunnelball
// Turn
// Turnellio
// TwinSpin
// vvvvvv
// Warp Shift
// Way of an Idea
// Whack a Creep
// Wheel of Fortune
// Where's my Water
// Wish Upon a Star
// Word Game
// Wordle
// Worms
// Yanga
// Yeah Bunny
// Zhed
// zNumbers