Phaser 3 Tutorials

Phaser Game Tutorials 

Greeting fellow developer! My name is William. Welcome to my site on Phaser Game Tutorials.

I’ve been a professional game coder for most of the last 20 years, and I love writing and talking about game code. I’ve been working with Phaser for over 6 years now.

I am actively working to replace a lot of the flash work I previously made with Html5 content, and this is the library that is working well for me. In 2015, within just two weeks of starting Phaser, I created games just as fast as I had done after 15 years of flash!

Here you will find a lot of Phaser Game Tutorials! There are also free and premium resources and code snippets for building  Phaser Games.  What is Phaser? Phaser is an html5/Javascript library that can work equally well on both mobile and computers. This library is growing strongly in popularity, and in many cases, it serves as a replacement for Abobe Flash. Like flash, it uses masks, sprites, tweens, animations, and groups. I have no official association with Phaser, but I work in it almost every day.  You can find the official website here. It has a lot of wonderful resources. 

Source code for Ebooks

Looking for the source code to “Create and Publish HTML5 Game in 24 hours”? Click Here

The Ultimate Game Part Template For Phaser 3

My latest Phaser Game Tutorials

In my last post, I went over how to load tileMaps in phaser 3 using arrays. It is a good method for loading small maps, but most game developers use tools like the Tiled Map editor to create large maps. When we use tools like this, we need to load the map from a JSON file. I won't go over how to use the software because it is fairly easy to use, but if you need help, there are tons of videos on it, including mine. Loading the JSON There are two steps in preloading for the tileMaps. The first ...
TileMaps in Phaser 3 are very popular with developers because they allow us to rapidly build worlds for our players to explore. Not just in Phaser! Most modern game frameworks support TileMaps. I'll admit I've had trouble with tileMaps in Phaser 3 before. I kept giving up and writing code to get around them. I finally sat down with some coffee and dove in. I'm not sure what my stumbling block was, but I finally got past it. They are quite easy when you come down to it. I found the best way was breaking down the parts. I've also ...
Change Image On Click
I received a request for help from another developer who wanted to be able to click on different cards and have a big image of that card appear so I offered to give him my solution and here it is below. I've tried to keep everything very simple and I've made a corresponding video to go along with his blog post.  I'm using the utility template to be able to size and layout the cards. I've also kept things simple by number the cards from 1 to 6. That way I'm able to Loop through them.  I've made a couple of ...
climbing ladders
Using ladders in Phaser 3 is tricky. Not only do you need to detect when a player touches the ladder, but you also need to know when it stops touching as well. The technique that I've decided to use here, will allow us to call a function to check if any ladder is being touched by the character at any given time. This is part of the series on making platform games in Phaser 3. This tutorial also uses the Utility Template which helps scale and align objects in Phaser 3. Placing the ladder Preload the image First, let's preload ...
dispatching events
One of the most useful features of Flash/Actionscript was the ability to dispatch custom events. Phaser does have an event class built-in and with a little ES5 magic, we can easily create a global messaging system. This post is part of a series of building a platform game in Phaser 3. You can find the start of the posts here. It also uses the Utility template that helps in scaling and positioning in Phaser. Events vs Callbacks A callback is where you inject a function into a class to be called when the class has finished doing something. myClass.onDone=this.setUpTanks(); I'm ...
NES Controller
I'm sure that some of you may be nostalgic for the days of youth when the Nintendo NES was the most popular game system on the planet. My first video game was pong, which was followed quickly by the Atari 2600. I saw the Nintendo controller a bit of a breakout. The way it was set up it allowed not only for player movement and two actions, but it also provided a way to navigate on-screen menus. When the Nintendo NES first came out in 1985, I was still using a computer without a mouse. (or internet, copy and paste, ...



About Me

What would you like to learn?

If you have questions, a suggestion for what you’d like to see in a post or need support there are links to groups, or just feel free to contact me. I love talking about code especially when it comes to games.  If you are into making Phaser Games already then please check out our Phaser Game makers group.

Phaser 3

Recently Phaser 3 was released. I am scrambling to update the site with resources while balancing my day job. You’ll find plenty of Phaser CE items here, and the list for Phaser 3 will continue to grow as time goes on. If you’ve any specific requests about Phaser please contact me, and I’ll do my best to accommodate.