You can now use the hitArea property on Sprites and Image objects. hitArea can be a geometry object (Rectangle, Circle, Polygon, Ellipse) and is used in pointerOver checks.

This commit is contained in:
photonstorm
2014-02-07 17:14:10 +00:00
parent 890e52008a
commit bc3a3fd43d
11 changed files with 417 additions and 18 deletions
+1 -2
View File
@@ -457,6 +457,7 @@ Phaser.Game.prototype = {
this.world.boot();
this.input.boot();
this.sound.boot();
this.state.boot();
this.load.onLoadComplete.add(this.loadComplete, this);
@@ -467,8 +468,6 @@ Phaser.Game.prototype = {
this.raf = new Phaser.RequestAnimationFrame(this);
this.raf.start();
this.state.boot();
}
},
+2
View File
@@ -70,6 +70,8 @@ Phaser.World.prototype.boot = function () {
*/
Phaser.World.prototype.preUpdate = function () {
this.currentRenderOrderID = 0;
for (var i = 0, len = this.children.length; i < len; i++)
{
if (this.children[i]['preUpdate'])