Tween#onRepeat

onRepeat : Phaser.Signal The onRepeat event is fired if the Tween and all of its children repeats. If this tween has no children this will never be fired.It will be sent 2 parameters: the target object and this tween. Source code: tween/Tween.js (Line 92)

Point#divide()

divide(x, y) → {Phaser.Point} Divides Point.x and Point.y by the given x and y values. Parameters Name Type Description x number The value to divide Point.x by. y number The value to divide Point.x by. Returns Phaser.Point - This Point object. Useful for chaining method calls. Source code: geom/Point.js (Line 154)

Graphics#drawRoundedRect()

drawRoundedRect(x, y, width, height, radius) Parameters Name Type Description x Number The X coord of the top-left of the rectangle y Number The Y coord of the top-left of the rectangle width Number The width of the rectangle height Number The height of the rectangle radius Number Radius of the rectangle corners. In WebGL this must be a value between 0 and 9. Source code: pixi/primitives/Graphics.js (Line 550)

Matrix#clone()

clone(output) → {Phaser.Matrix} Creates a new Matrix object based on the values of this Matrix.If you provide the output parameter the values of this Matrix will be copied over to it.If the output parameter is blank a new Matrix object will be created. Parameters Name Type Argument Description output Phaser.Matrix <optional> If provided the values of this Matrix will be copied to it, otherwise a new Matrix object is created. Returns Phaser.Matrix - A clone of this Matrix. So

Tween#updateTweenData()

updateTweenData(property, value, index) → {Phaser.Tween} Updates either a single TweenData or all TweenData objects properties to the given value.Used internally by methods like Tween.delay, Tween.yoyo, etc. but can also be called directly if you know which property you want to tweak.The property is not checked, so if you pass an invalid one you'll generate a run-time error. Parameters Name Type Argument Default Description property string The property to update. value number | functi

Video#changeSource()

changeSource(src, autoplay) → {Phaser.Video} On some mobile browsers you cannot play a video until the user has explicitly touched the video to allow it.Phaser handles this via the setTouchLock method. However if you have 3 different videos, maybe an "Intro", "Start" and "Game Over"split into three different Video objects, then you will need the user to touch-unlock every single one of them. You can avoid this by using just one Video object and simply changing the video source. Once a Video e

Video#complete()

complete() Called when the video completes playback (reaches and ended state).Dispatches the Video.onComplete signal. Source code: gameobjects/Video.js (Line 623)

Video#connectToMediaStream()

connectToMediaStream(video, stream) → {Phaser.Video} Connects to an external media stream for the webcam, rather than using a local one. Parameters Name Type Description video HTMLVideoElement The HTML Video Element that the stream uses. stream MediaStream The Video Stream data. Returns Phaser.Video - This Video object for method chaining. Source code: gameobjects/Video.js (Line 311)

RenderTexture#RenderTexture

new RenderTexture(width, height, renderer, scaleMode, resolution) A RenderTexture is a special texture that allows any Pixi display object to be rendered to it. Hint: All DisplayObjects (i.e. Sprites) that render to a RenderTexture should be preloaded otherwise black rectangles will be drawn instead. A RenderTexture takes a snapshot of any Display Object given to its render method. The position and rotation of the given Display Objects is ignored. For example: var renderTexture = new PIXI.Re

BitmapData#blendSourceIn()

blendSourceIn() → {Phaser.BitmapData} Sets the blend mode to 'source-in' Returns Phaser.BitmapData - This BitmapData object for method chaining. Source code: gameobjects/BitmapData.js (Line 2065)