Add a dropshadow to the given Phaser Sprite
Sprite to which to add the drop shadow
Shadow's x offset (default: 10)
Shadow's y offset (default: 10)
Shadow's alpha value (default: 0.2)
Returns a formatted url for a SZ microservice
The base url of the microservice
The relative url path to the api endpoint
(Optional) The microservice stage. If undefined, the current host will be used to determine the appropriate stage
Get a random boolean value
Random boolean
Get a random integer value within the range [min..max]
Min value
Max value
Random number
Calculate the dimensions and scale needed in order to fill an object within another (new bounds may exceed the bounds of the object to fill in)
The display object we want to calculate new dimensions and scale for
The display object to use as a reference to fit it
The percentage to fill within fitIn [0..1]. If 1, the horizontal or vertical dimension of target will match the width or height of fillIn
Calculate the dimensions and scale needed in order to fit an object within another (new bounds will not exceed the bounds of the object fitting in)
The display object we want to calculate new dimensions and scale for
The display object to use as a reference to fit it
The percentage to fill within fitIn [0..1]. If 1, the horizontal or vertical dimension of target will match the width or height of fitIn
Returns true if currently running from a development server
Uses a Phaser Tween to pulse the scale of a Phaser Sprite
Sprite to pulse
X Scale to tween to before returning (default: 1.2)
Y Scale to tween to before returning (default: 1.2)
Tween duration in ms (default: 200)
Optional callback after tween is complete
Round the corners of a sprite
The sprite to apply rounded corners on
Radius of each corner
Width in pixels of border (if any)
Color of border, if width is defined
Shuffle the elements of an array
The array
Collection of common utilities and helper methods