Line#clone()

clone(output) → {Phaser.Line} Returns a new Line object with the same values for the start and end properties as this Line object. Parameters Name Type Description output Phaser.Line Optional Line object. If given the values will be set into the object, otherwise a brand new Line object will be created and returned. Returns Phaser.Line - The cloned Line object. Source code: geom/Line.js (Line 336)

Line#centerOn()

centerOn(x, y) → {Phaser.Line} Centers this Line on the given coordinates. The line is centered by positioning the start and end points so that the lines midpoint matchesthe coordinates given. Parameters Name Type Description x number The x position to center the line on. y number The y position to center the line on. Returns Phaser.Line - This line object Source code: geom/Line.js (Line 200)

Line#bottom

[readonly] bottom : number Gets the bottom-most point of this line. Source code: geom/Line.js (Line 476)

Line#angle

[readonly] angle : number Gets the angle of the line in radians. Source code: geom/Line.js (Line 372)

Keyboard#upDuration()

upDuration(keycode, duration) → {boolean} Returns true if the Key was pressed down within the duration value given, or false if it either isn't down,or was pressed down longer ago than then given duration. Parameters Name Type Argument Default Description keycode Phaser.KeyCode | integer The keycode of the key to check, i.e. Phaser.KeyCode.UP or Phaser.KeyCode.SPACEBAR. duration number <optional> 50 The duration within which the key is considered as being just released. Give

Keyboard#update()

update() Updates all currently defined keys. Source code: input/Keyboard.js (Line 344)

Keyboard#stop()

stop() Stops the Keyboard event listeners from running (keydown, keyup and keypress). They are removed from the window. Source code: input/Keyboard.js (Line 260)

Keyboard#reset()

reset(hard) Resets all Keys. Parameters Name Type Argument Default Description hard boolean <optional> true A soft reset won't reset any events or callbacks that are bound to the Keys. A hard reset will. Source code: input/Keyboard.js (Line 463)

Keyboard#removeKeyCapture()

removeKeyCapture(keycode) Removes an existing key capture. Parameters Name Type Description keycode integer The keycode to remove capturing of. Source code: input/Keyboard.js (Line 321)

Keyboard#removeKey()

removeKey(keycode) Removes a Key object from the Keyboard manager. Parameters Name Type Description keycode integer The keycode of the key to remove. Source code: input/Keyboard.js (Line 191)