Skip to content

Commit 94d9fa6

Browse files
committed
Tidying up some docs.
1 parent de34a13 commit 94d9fa6

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Version 1.1.3 - in build
4444
* New: Added Mouse.pointerLock signal which you can listen to whenever the browser enters or leaves pointer lock mode.
4545
* New: StageScaleMode.forceOrientation allows you to lock your game to one orientation and display a Sprite (i.e. a "please rotate" screen) when incorrect.
4646
* New: World.visible boolean added, toggles rendering of the world on/off entirely.
47+
* New: Polygon class & drawPolygon method added to Graphics (thanks rjimenezda)
4748
* Fixed: Mouse.stop now uses the true useCapture, which means the event listeners stop listening correctly (thanks beeglebug)
4849
* Fixed: Input Keyboard example fix (thanks Atrodilla)
4950
* Updated: ArcadePhysics.updateMotion applies the dt to the velocity calculations as well as position now (thanks jcs)

src/utils/Utils.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
*/
1111
Phaser.Utils = {
1212

13+
/**
14+
* A standard Fisher-Yates Array shuffle implementation.
15+
* @method Phaser.Utils.shuffle
16+
* @param {array} array - The array to shuffle.
17+
* @return {array} The shuffled array.
18+
*/
1319
shuffle: function (array) {
1420

1521
for (var i = array.length - 1; i > 0; i--)
@@ -26,14 +32,14 @@ Phaser.Utils = {
2632

2733
/**
2834
* Javascript string pad http://www.webtoolkit.info/.
29-
* pad = the string to pad it out with (defaults to a space)<br>
35+
* pad = the string to pad it out with (defaults to a space)
3036
* dir = 1 (left), 2 (right), 3 (both)
3137
* @method Phaser.Utils.pad
3238
* @param {string} str - The target string.
3339
* @param {number} len - Description.
3440
* @param {number} pad - the string to pad it out with (defaults to a space).
3541
* @param {number} [dir=3] the direction dir = 1 (left), 2 (right), 3 (both).
36-
* @return {string}
42+
* @return {string} The padded string
3743
*/
3844
pad: function (str, len, pad, dir) {
3945

0 commit comments

Comments
 (0)