Phaser API Documentation

  Version: 

Member of: Phaser.Curves.Path

lineTo(x, [y])

Description:

Creates a line curve from the previous end point to x/y.

Parameters:

name type arguments description
x number | Phaser.Math.Vector2

The X coordinate of the line's end point, or a Vector2 containing the entire end point.

y number <optional>

The Y coordinate of the line's end point, if a number was passed as the X parameter.

Returns:
Description:

This Path object.

Since: 3.0.0
Source: src/curves/path/Path.js (Line 736)