There’s another small optimization to do in order to keep your code organized, especially if you are working on a small game which does not require that much… Continue reading
Category: Phaser for Beginners
You should be proud of your first game, but having a look at your project folder it looks a bit unorganized. We have images, sounds and scripts all… Continue reading
When playing a game, you will quickly realize there is no point in making a great score if you can’t save it and try to beat it later…. Continue reading
We’ll make the game look good on any device in two steps: first, we have to scale up the game to cover the largest area possible, then we’ll… Continue reading
We have to give the player something to do when all tiles have been removed and there’s still time to play. Listen to this idea: if you removed… Continue reading
Until now, we learned how to detect the click / touch on a button, but this time we don’t have buttons on the stage. We will need to… Continue reading
When the player runs out of time, we need to stop the game and show a game over screen. How can we make a game over screen? Right,… Continue reading
What if you had a time limit to complete the game? Let’s increase the difficulty by giving you only a minute to solve the game. timeLeft variable will keep track… Continue reading
To keep track of the score, I am sure you find it obvious now, we need to store it in a variable. Let’s create a variable called score…. Continue reading
The idea is to store all sounds in an array and then play the right song according to what’s going on in the game. We are going a… Continue reading