The Debug panel now works in WebGL mode. Pay attention to the warning at the top of the Debug docs (feature request #499)

All the Debug methods have had the word 'render' removed from the start. So where you did `debug.renderSpriteInfo` before, it's now just `debug.spriteInfo`.
Debug methods that rendered geometry (Rectangle, Circle, Line, Point) have been merged into the single method: `Debug.geom`.
This commit is contained in:
photonstorm
2014-03-03 00:46:03 +00:00
parent 418a161b46
commit c4a68e3e87
5 changed files with 192 additions and 325 deletions
+4 -6
View File
@@ -17,12 +17,10 @@ var sprite;
function create() {
sprite = game.add.tileSprite(0, 0, 800, 600, 'starfield');
sprite.autoScroll(0, 200);
var tile = game.add.tileSprite(0, 0, 800, 600, 'starfield');
tile.autoScroll(0, 200);
game.add.image(200, 200, 'mummy');
game.world.scale.set(2);
sprite = game.add.image(200, 200, 'mummy');
}
@@ -32,6 +30,6 @@ function update() {
function render() {
game.debug.renderText(sprite.frame, 32, 32);
game.debug.spriteInfo(sprite, 32, 32);
}