When the player chooses to play with sounds, it means the game should feature sounds. Crack Alien Code will have three sounds: one to be played each time… Continue reading
Category: Phaser for Beginners
The first thing we need to think about when turning the prototype into a real game, is the title screen, which means giving the game a name, create… Continue reading
The basics behind shuffling the tiles is to shuffle the array of tile values, that tileArray which will be used to assign each tile its own value. There… Continue reading
Phaser allows us to create a variety of time driven events, in a simple and intuitive way. time.events.add(tick, callback, callbackContext) adds a timer event which will execute callback… Continue reading
Once we have selected two tiles, then selectedArray has two elements, and we have to check for their values. We will remove the tiles if values match, or… Continue reading
As said, not only we have to let the player select only two tiles, but we also have to prevent the same tile from being selected twice. A… Continue reading
To give players a visual feedback of the tiles they select, we need to change their frame according to their value once selected. We know each tile value… Continue reading
Before we continue interacting with tiles and buttons, we have to store somewhere all tile values. And above all, assign each tile a value which will represent its… Continue reading
Adding interactivity to images by turning them into clickable and touchable buttons
As you know we are going to build a cross platform game. This means it has to run properly on each device, from desktop computers to smart phones… Continue reading
Before we start typing some new code, here is how sprite sheet works: each image is identified by a number, called index, which starts from zero. So starting… Continue reading