mirror of
https://github.com/photonstorm/phaser
synced 2024-09-21 15:01:57 +00:00
Debug functions ? Seems last commit didn't work
This commit is contained in:
parent
2eab5d4815
commit
2669f81391
2 changed files with 3 additions and 0 deletions
|
@ -43,5 +43,6 @@ function update() {
|
|||
function render() {
|
||||
|
||||
game.debug.renderSpriteBounds(s);
|
||||
game.debug.renderSpriteInfo(s, 20, 32);
|
||||
|
||||
}
|
||||
|
|
|
@ -35,6 +35,8 @@ function create() {
|
|||
// The player
|
||||
sprite = group.create(300, 200, 'phaser');
|
||||
|
||||
sprite.physicsEnabled = true;
|
||||
|
||||
// Some trees
|
||||
for (var i = 0; i < 50; i++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue