Fixed bug where children of Groups wouldn't have their preUpdate methods called.

This commit is contained in:
Richard Davey
2013-08-09 20:03:36 +01:00
parent 0b1bcaf270
commit aff7d99a8a
6 changed files with 37 additions and 10 deletions
+6
View File
@@ -217,6 +217,12 @@ module Phaser {
}
static renderSpriteWorldViewBounds(sprite: Phaser.Sprite, color: string = 'rgba(0,255,0,0.3)') {
Phaser.DebugUtils.renderRectangle(sprite.worldView, color);
}
/**
* Render debug infos. (including name, bounds info, position and some other properties)
* @param x {number} X position of the debug info to be rendered.