phaserjs / phaser-ce

Phaser CE is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
http://phaser.io
MIT License
1.34k stars 491 forks source link

Uncaught TypeError: Phaser.Math.fuzzyEquals is not a function #634

Closed Cerlancism closed 5 years ago

Cerlancism commented 5 years ago

It seems in Phaser.Point.fuzzyEquals has a typing mistake when calling a static method from Phaser.Maths.

It should be Phaser.Math.fuzzyEqual instead of Phaser.Math.fuzzyEquals.

In Point class https://github.com/photonstorm/phaser-ce/blob/da7bdf93b52ff1fb889612f03ef47293ec6af6ba/src/geom/Point.js#L790-L796

In Math class https://github.com/photonstorm/phaser-ce/blob/da7bdf93b52ff1fb889612f03ef47293ec6af6ba/src/math/Math.js#L183-L199