You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,6 +80,7 @@ New features:
80
80
* Loader.progressFloat contains the actual non-rounded progress value, where-as Loader.progress contains a rounded value. Use progressFloat if you've > 100 files to load.
81
81
* Groups can now be added to other Groups as children via group.add() and group.addAt()
82
82
* Groups now have an 'alive' property, which can be useful when iterating through child groups with functions like forEachAlive.
83
+
* Added a new Project Template "Full Screen Mobile" which you can find in the resources folder. Contains html / css / layout needed for a deployed Phaser game.
83
84
84
85
85
86
New Examples:
@@ -135,6 +136,7 @@ Updates:
135
136
* Device.quirksMode is a boolean that informs you if the page is in strict (false) or quirks (true) mode.
136
137
* Canvas.getOffset now runs a strict/quirks check and uses document.documentElement when calculating scrollTop and scrollLeft to avoid Chrome console warnings.
137
138
* The Time class now has its own Phaser.Timer which you can access through game.time.events. See the new Timer examples to show how to use them.
139
+
* Added StateManager.getCurrentState to return the currently running State object (thanks Niondir)
Copy file name to clipboardExpand all lines: src/input/Keyboard.js
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,7 @@ Phaser.Keyboard.prototype = {
100
100
* The Key object can then be polled, have events attached to it, etc.
101
101
*
102
102
* @method Phaser.Keyboard#addKey
103
-
* @param {number} keycode - The keycode of the key, i.e. Phaser.Keyboard.UP or Phaser.Keyboard.SPACE_BAR
103
+
* @param {number} keycode - The keycode of the key, i.e. Phaser.Keyboard.UP or Phaser.Keyboard.SPACEBAR
104
104
* @return {Phaser.Key} The Key object which you can store locally and reference directly.
105
105
*/
106
106
addKey: function(keycode){
@@ -117,7 +117,7 @@ Phaser.Keyboard.prototype = {
117
117
* Removes a Key object from the Keyboard manager.
118
118
*
119
119
* @method Phaser.Keyboard#removeKey
120
-
* @param {number} keycode - The keycode of the key to remove, i.e. Phaser.Keyboard.UP or Phaser.Keyboard.SPACE_BAR
120
+
* @param {number} keycode - The keycode of the key to remove, i.e. Phaser.Keyboard.UP or Phaser.Keyboard.SPACEBAR
121
121
*/
122
122
removeKey: function(keycode){
123
123
@@ -339,7 +339,7 @@ Phaser.Keyboard.prototype = {
339
339
/**
340
340
* Returns the "just pressed" state of the key. Just pressed is considered true if the key was pressed down within the duration given (default 250ms)
341
341
* @method Phaser.Keyboard#justPressed
342
-
* @param {number} keycode - The keycode of the key to remove, i.e. Phaser.Keyboard.UP or Phaser.Keyboard.SPACE_BAR
342
+
* @param {number} keycode - The keycode of the key to remove, i.e. Phaser.Keyboard.UP or Phaser.Keyboard.SPACEBAR
343
343
* @param {number} [duration=250] - The duration below which the key is considered as being just pressed.
344
344
* @return {boolean} True if the key is just pressed otherwise false.
345
345
*/
@@ -359,7 +359,7 @@ Phaser.Keyboard.prototype = {
359
359
/**
360
360
* Returns the "just released" state of the Key. Just released is considered as being true if the key was released within the duration given (default 250ms)
361
361
* @method Phaser.Keyboard#justReleased
362
-
* @param {number} keycode - The keycode of the key to remove, i.e. Phaser.Keyboard.UP or Phaser.Keyboard.SPACE_BAR
362
+
* @param {number} keycode - The keycode of the key to remove, i.e. Phaser.Keyboard.UP or Phaser.Keyboard.SPACEBAR
363
363
* @param {number} [duration=250] - The duration below which the key is considered as being just released.
364
364
* @return {boolean} True if the key is just released otherwise false.
365
365
*/
@@ -379,7 +379,7 @@ Phaser.Keyboard.prototype = {
379
379
/**
380
380
* Returns true of the key is currently pressed down. Note that it can only detect key presses on the web browser.
381
381
* @method Phaser.Keyboard#isDown
382
-
* @param {number} keycode - The keycode of the key to remove, i.e. Phaser.Keyboard.UP or Phaser.Keyboard.SPACE_BAR
382
+
* @param {number} keycode - The keycode of the key to remove, i.e. Phaser.Keyboard.UP or Phaser.Keyboard.SPACEBAR
383
383
* @return {boolean} True if the key is currently down.
0 commit comments