Easily create modal windows for your games

Article by Richard Davey. Posted on 23rd Feb 2015.   @phaser_

"Recently as I was building a new game, I realized that one of the most re-used elements across a variety of games is the “modal”, whether it is a countdown, a message modal or a game-over modal."

"So I thought to create a little snippet that would make creating a modal an easier task, with the following script we can create a large combination of either text, bitmaptext or images."

"So enough with the presentation, lets see how it looks, in this codepen I created six examples for all tastes."

See the Pen Phaser Modals by Michael Dobekidis (@netgfx) on CodePen.

Read the full tutorial