Placing assets according to game size is really easy, once you know game size. If you look at game declaration, you can see its width and height are… Continue reading
Category: Phaser for Beginners
Do you remember we are going to build a 4 rows x 5 columns game field? Let’s place some tiles on the table. For the same reason that… Continue reading
As the sprite sheet is now preloaded, change create function this way:
1 2 3 |
create: function() { game.add.image(0, 0, "tiles"); } |
Now, run the game, and that’s what you are going to see: The magic started!… Continue reading
One of the worst things you can do in the making of a game is to handle graphic assets before you actually loaded them. That’s why we will… Continue reading
We are going to create a board with 4 rows and 5 columns, for a total of 20 tiles on the stage. Since each tile has a symbol… Continue reading
Although managing Phaser states is an advanced feature, it’s very important to learn how to use states from the beginning of your Phaser programming course, as they will allow… Continue reading
To run the game on your local server, simply point your browser to your game folder which in most cases will be http://localhost/phasergame/ and this is what you… Continue reading
Every HTML5 game is a web page with some magic in it, so that’s what we are going to do: the creation of a web page in a… Continue reading