How to Use Phaser Signals to Save Game Statistics

Sometimes in a game you want to be aware of events that occur in your game the whole time, wether it would be to save game statistics or to build an achievement system. For example, your game may need to know when an enemy is killed to save the number of killed enemies, or because … Read moreHow to Use Phaser Signals to Save Game Statistics

How to Create a Game HUD Plugin in Phaser

In a game, the heads-up display (HUD) is how game information is visually showed to the player, providing a feedback from the game. Usually, it provides information about player stats like health, items and menus. The HUD is very important in many games to make sure the player understands what is happening in the game. … Read moreHow to Create a Game HUD Plugin in Phaser

How to Procedurally Generate a Dungeon in Phaser – Part 2

In the previous tutorial we procedurally generated¬†a dungeon with multiple rooms, allowing our hero to navigate through it. In this tutorial, we are going to populate those¬†rooms with obstacles, enemies and add an exit, so the hero can leave the dungeon. The following topics will be covered in this tutorial: A strategy to procedurally populate … Read moreHow to Procedurally Generate a Dungeon in Phaser – Part 2

How to Procedurally Generate a Dungeon in Phaser – Part 1

Some games have a fixed number of levels created by a level designer. This way, the designer can create the levels so as to provide the desired gameplay experience to the player. However, it reduces the replay value of the game, since the levels will always be the same every time they are played. Another … Read moreHow to Procedurally Generate a Dungeon in Phaser – Part 1

How to Use State Machines to Control Behavior and Animations in Phaser

Suppose you’re building a platformer game, where the hero can walk, jump and attack. The hero can jump while standing or walking, but he can’t attack while jumping or walking. Also, the player can not jumping again while it is in the air (no double jumping). We can start implementing the hero code as below. … Read moreHow to Use State Machines to Control Behavior and Animations in Phaser

How to use Pathfinding in Phaser

Suppose you’re building a strategy game. The game will have player and enemy units which navigate through a map full of obstacles. While the player units will be controlled by clicking on the map positions, the enemies will walk alone, following any AI strategy. You may have noticed that, given an origin and target positions, … Read moreHow to use Pathfinding in Phaser

How to Make a Turn-Based RPG Game in Phaser – Part 3

In the last tutorial we added a WorldState where the player can navigate and linked it with the BattleState created in the first tutorial. Now, we are going to improve our BattleState, to include the following: Battle reward including experience and items A level system based on an experience table The possibility of using items … Read moreHow to Make a Turn-Based RPG Game in Phaser – Part 3

How to Make a Turn-Based RPG Game in Phaser – Part 2

In the last tutorial, we created the BattleState for our turn-based RPG. Now, we are going to create a WorldState were the player can explore and eventually find enemies. In addition, we will improve our battle system to consider units speed. The following topics will be covered in this tutorial: Creating a WorldState which the … Read moreHow to Make a Turn-Based RPG Game in Phaser – Part 2

How to Make a Turn-Based RPG Game in Phaser – Part 1

In this tutorial series, we will create a turn-based RPG game, such as the Final Fantasy series. First, we will create the battle state for our game. Then we will create a state for the world, which will change to the battle state every time an enemy is found. Finally, we will add content, such … Read moreHow to Make a Turn-Based RPG Game in Phaser – Part 1

How to Make a Bomberman Game in Phaser – Part 3

In the last tutorial, we added content to our Bomberman game, such as lives, items and more levels. In this tutorial, we will make it multiplayer, by adding a second player. We will also add a battle game mode, where the two players must compete agains each other. The following topics will be covered: Creating … Read moreHow to Make a Bomberman Game in Phaser – Part 3