Phaser API Documentation

  Version: 
lineTo(x, y)

Description:

Draw a line from the current drawing position to the given position.

Moves the current drawing position to the given position.

Parameters:

name type description
x number

The x coordinate to draw the line to.

y number

The y coordinate to draw the line to.

Returns:
Description:

This Game Object.

Since: 3.0.0