From Emanuele Feronato: "Since Phaser is mainly a HTML5 framework, you may think you can use it to draw, animate and tween stuff on canvas to create your games, while other kind of routines like array management must be scripted directly with pure JavaScript.

It’s not true, because Phaser comes with some interesting utilities which will help you during the creation and the manipulation of arrays, handling some commons operations such as array population, picking a random array item, and some other interesting stuff we are going to see in this post.

The class responsible of array operations is ArrayUtils, and you can find the official docs at this page, however I found this class very interesting so I decided to write a more detailed guide."

Read More