mirror of
https://github.com/wassname/phaser.git
synced 2026-07-11 00:40:20 +08:00
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:
+1
-2
@@ -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();
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user