Phaser API Documentation

  Version: 
lineBetween(x1, y1, x2, y2)

Description:

Draw a line between the given points.

Parameters:

name type description
x1 number

The x coordinate of the start point of the line.

y1 number

The y coordinate of the start point of the line.

x2 number

The x coordinate of the end point of the line.

y2 number

The y coordinate of the end point of the line.

Returns:
Description:

This Game Object.

Since: 3.0.0