Line

Class: Phaser.Line

Constructor

new Line(x1, y1, x2, y2)

Creates a new Line object with a start and an end point.

Parameters
Name Type Argument Default Description
x1 number <optional>
0

The x coordinate of the start of the line.

y1 number <optional>
登录查看完整内容