Rectangle

Module: engine.geometry
new game.Rectangle(width, [height], [x], [y])

Parameters:

  • width Number
  • height Number (optional)
  • x Number (optional)
  • y Number (optional)

Properties

height Number (Default: 0)

(No description yet)

width Number (Default: 0)

(No description yet)

x Number (Default: 0)

(No description yet)

y Number (Default: 0)

(No description yet)

Methods

set(width, height, x, y)

(No description yet)

Parameters:

  • width Number
  • height Number
  • x Number
  • y Number