Class: Phaser::Point
- Inherits:
-
Object
- Object
- Phaser::Point
- Includes:
- Native
- Defined in:
- lib/opal/phaser/geometry/point.rb
Instance Method Summary collapse
-
#initialize(_x = 0, _y = 0) ⇒ Point
constructor
When its automatically aliased we just pass the object to super.
Constructor Details
#initialize(_x = 0, _y = 0) ⇒ Point
When its automatically aliased we just pass the object to super
6 7 8 9 10 11 12 13 |
# File 'lib/opal/phaser/geometry/point.rb', line 6 def initialize(_x = 0, _y = 0) if `typeof(#{_x})` == "object" super(_x) else @native = `new Phaser.Point(#{_x}, #{_y})` super(@native) end end |