Skip to content

Commit 04e70e8

Browse files
committed
Updated KeyCode docs placement phaserjs#2653
1 parent 33748ec commit 04e70e8

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,8 @@ You can read all about the philosophy behind Lazer [here](http://phaser.io/news/
333333
* As a result of changes in #2573 Graphics objects were calling `updateLocalBounds` on any shape change, which could cause dramatic performances drops in Graphics heavy situations (#2618). Graphics objects now have a new flag `_boundsDirty` which is used to detect if the bounds have been invalidated, i.e. by a Graphics being cleared or drawn to. If this is set to true then `updateLocalBounds` is called once in the `postUpdate` method (thanks @pengchuan #2618)
334334
* Phaser.Image now has the ScaleMinMax component.
335335
* Animations now allow for speeds greater than 0, rather than forcing them to be greater than 1. This allows you to have animation speeds slower than 1 frame per second (thanks @jayrobin #2664)
336+
* Weapon.fire and all related methods (fireAtXY, fireAtPointer, fireAtSprite) now all return the instance of the Phaser.Bullet that was fired, or `null` if nothing was fired. Previously it would return a boolean, but this change allows you to perform additional processing on the Bullet as required (thanks @JTronLabs #2696)
337+
* Sound.loopFull now returns the Sound instance that was looped (thanks @hilts-vaughan #2697)
336338

337339
### Bug Fixes
338340

resources/docstrap-master/template/tmpl/layout.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@
128128
<li class="class-depth-1"><a href="Phaser.Mouse.html">Mouse</a></li>
129129
<li class="class-depth-1"><a href="Phaser.Keyboard.html">Keyboard</a></li>
130130
<li class="class-depth-1"><a href="Phaser.Key.html">Key</a></li>
131+
<li class="class-depth-1"><a href="Phaser.KeyCode.html">Key Codes</a></li>
131132
<li class="class-depth-1"><a href="Phaser.Gamepad.html">Gamepad</a></li>
132133
</ul>
133134
</li>

src/input/Keyboard.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ Phaser.Keyboard.prototype.constructor = Phaser.Keyboard;
604604
* _Note_: Use `Phaser.KeyCode.KEY` instead of `Phaser.Keyboard.KEY` to refer to a key code;
605605
* the latter approach is supported for compatibility.
606606
*
607-
* @namespace
607+
* @class Phaser.KeyCode
608608
*/
609609
Phaser.KeyCode = {
610610
/** @static */
@@ -814,8 +814,10 @@ Phaser.KeyCode = {
814814
};
815815

816816
// Duplicate Phaser.KeyCode values in Phaser.Keyboard for compatibility
817-
for (var key in Phaser.KeyCode) {
818-
if (Phaser.KeyCode.hasOwnProperty(key) && !key.match(/[a-z]/)) {
817+
for (var key in Phaser.KeyCode)
818+
{
819+
if (Phaser.KeyCode.hasOwnProperty(key) && !key.match(/[a-z]/))
820+
{
819821
Phaser.Keyboard[key] = Phaser.KeyCode[key];
820822
}
821823
}

0 commit comments

Comments
 (0)