Class: Phaser::Rectangle

Inherits:
Object
  • Object
show all
Includes:
Native
Defined in:
lib/opal/phaser/geometry/rectangle.rb

Instance Method Summary collapse

Constructor Details

#initialize(x, y, w, h) ⇒ Rectangle

Returns a new instance of Rectangle.



5
6
7
# File 'lib/opal/phaser/geometry/rectangle.rb', line 5

def initialize(x, y, w, h)
  super `new Phaser.Rectangle(x, y, w, h)`
end