mirror of
https://github.com/wassname/phaser.git
synced 2026-07-14 01:10:16 +08:00
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:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user