phaser
phaser copied to clipboard
Accept Vector2Likes for Path creation
Currently, we can start a path with a separate x and y or a JSON object in the creator function, and then functions like lineTo and moveTo accept separate x and y values or Vector2s. It would be convenient if Vector2Like were added to the input options, so that we could easily build paths using existing objects' positions, output from various Phaser operations, etc.