From 61376093fdba30e1bcf240371a6c4279377e21f5 Mon Sep 17 00:00:00 2001 From: photonstorm Date: Mon, 3 Mar 2014 01:19:31 +0000 Subject: [PATCH] Updated all the examples to use the new Debug methods. --- examples/animation/change texture on click.js | 2 +- examples/audio/pause and resume.js | 2 +- examples/audio/play music.js | 2 +- examples/audio/protracker.js | 28 +++++++-------- examples/basics/04 - image follow input.js | 2 +- examples/buttons/button scale.js | 13 ------- examples/camera/basic follow.js | 6 ++-- examples/camera/camera cull.js | 4 +-- examples/camera/follow styles.js | 4 +-- examples/camera/moving the camera.js | 2 +- examples/camera/world sprite.js | 6 ++-- examples/collision/body scale.js | 4 +-- examples/collision/bounding box.js | 6 ++-- examples/collision/circle body.js | 6 ++-- examples/collision/circle vs polygon.js | 10 +++--- examples/collision/larger bounding box.js | 6 ++-- examples/collision/offset bounding box.js | 6 ++-- examples/collision/one way collision.js | 6 ++-- examples/collision/polygon body.js | 4 +-- examples/collision/process callback.js | 6 ++-- examples/collision/rotated bounding box.js | 6 ++-- examples/collision/sprite vs sprite.js | 4 +-- examples/collision/vertical collision.js | 4 +-- examples/debug/debug camera.js | 2 +- examples/debug/debug display.js | 4 +-- examples/debug/debug draw.js | 10 +++--- examples/debug/debug input.js | 6 ++-- examples/debug/debug physics.js | 4 +-- examples/debug/debug sprite.js | 2 +- examples/display/fullscreen buttons.js | 4 +-- examples/display/fullscreen.js | 2 +- examples/games/matching pairs.js | 24 ++++++------- examples/games/simon.js | 10 +++--- examples/games/starstruck.js | 4 +-- examples/games/tanks.js | 2 +- examples/geometry/circle.js | 6 ++-- examples/geometry/line intersection.js | 10 +++--- examples/geometry/line.js | 6 ++-- examples/geometry/rectangle.js | 2 +- examples/groups/bring a group to top.js | 2 +- examples/groups/call all.js | 4 +-- examples/groups/create sprite in a group.js | 2 +- examples/groups/for each.js | 2 +- examples/groups/get first.js | 4 +-- examples/groups/group as layer.js | 10 +++--- examples/groups/group transform - rotate.js | 2 +- examples/groups/group transform - tween.js | 2 +- examples/groups/group transform.js | 4 +-- examples/groups/recyling.js | 6 ++-- examples/groups/remove.js | 4 +-- examples/groups/replace.js | 6 ++-- examples/groups/set All.js | 2 +- examples/groups/sub groups - group length.js | 12 +++---- examples/groups/swap children in a group.js | 2 +- examples/input/bring a child to top.js | 2 +- examples/input/cursor key movement.js | 2 +- examples/input/drag several sprites.js | 2 +- examples/input/drop limitation.js | 4 +-- examples/input/game scale.js | 2 +- examples/input/keyboard.js | 2 +- examples/input/motion lock - horizontal.js | 4 +-- examples/input/motion lock - vertical.js | 4 +-- examples/input/multi touch.js | 14 ++++---- examples/input/override default controls.js | 8 ++--- .../input/pixel perfect click detection.js | 6 ++-- .../input/pixelpick - scrolling effect.js | 2 +- examples/input/pixelpick - spritesheet.js | 6 ++-- examples/input/touch joystick.js | 4 +-- examples/loader/load audio.js | 4 +-- examples/loader/load text file.js | 2 +- examples/loader/pick images from cache.js | 2 +- examples/misc/net.js | 10 +++--- examples/physics/accelerate to pointer.js | 2 +- examples/physics/angle between.js | 4 +-- examples/physics/angle to pointer.js | 2 +- examples/physics/angular acceleration.js | 10 +++--- examples/physics/angular velocity.js | 10 +++--- examples/physics/bounce accelerator.js | 2 +- examples/physics/bounce knock.js | 2 +- examples/physics/bounce with gravity.js | 2 +- examples/physics/bounce.js | 2 +- examples/physics/framerate independence.js | 2 +- examples/physics/launcher follow world.js | 8 ++--- examples/physics/launcher follow.js | 8 ++--- examples/physics/launcher.js | 8 ++--- examples/physics/mass velocity test.js | 12 +++---- .../physics/quadtree - collision infos.js | 14 ++++---- examples/physics/quadtree - ids.js | 12 +++---- examples/physics/ship trail.js | 4 +-- examples/physics/shoot the pointer.js | 4 +-- examples/physics/snake.js | 2 +- examples/physics/sprite bounds.js | 6 +--- examples/sprites/dynamic crop.js | 2 +- examples/sprites/move a sprite.js | 2 +- examples/sprites/sprite rotation.js | 10 +++--- .../colliding with tiling sprite.js | 2 +- examples/tilemaps/create from objects.js | 2 +- examples/tilemaps/fill tiles.js | 6 ++-- examples/tilemaps/mapcollide.js | 4 +-- examples/tilemaps/paint tiles.js | 4 +-- examples/tilemaps/randomise tiles.js | 6 ++-- examples/tilemaps/replace tiles.js | 6 ++-- examples/tilemaps/shuffle tiles.js | 6 ++-- examples/tilemaps/swap tiles.js | 6 ++-- examples/tilemaps/tile callbacks.js | 4 +-- examples/time/basic looped event.js | 4 +-- examples/time/basic repeat event.js | 4 +-- examples/time/basic timed event.js | 2 +- examples/time/remove event.js | 2 +- examples/time/timed slideshow.js | 2 +- examples/tweens/tween loop event.js | 2 +- examples/tweens/tween relative.js | 6 ++-- examples/wip/anim-speed.js | 2 +- examples/wip/anim1.js | 2 +- examples/wip/animated tilesprite.js | 2 +- examples/wip/autoscroll.js | 2 +- examples/wip/bmd.js | 2 +- examples/wip/bounds.js | 2 +- examples/wip/cannon.js | 2 +- examples/wip/contact1.js | 2 +- examples/wip/contact2.js | 2 +- examples/wip/crop.js | 2 +- examples/wip/destroy state swap.js | 2 +- examples/wip/destroy.js | 2 +- examples/wip/focus mute.js | 2 +- examples/wip/fullscreen.js | 4 +-- examples/wip/grid-drag.js | 2 +- examples/wip/grid.js | 2 +- examples/wip/group lifespan.js | 2 +- examples/wip/group1.js | 2 +- examples/wip/hitArea.js | 8 ++--- examples/wip/image1.js | 2 +- examples/wip/image2.js | 2 +- examples/wip/keyboard.js | 2 +- examples/wip/landscape-pointer.js | 2 +- examples/wip/loadPolygon.js | 2 +- examples/wip/misc/2ball.js | 10 +++--- examples/wip/misc/acceleration.js | 4 +-- examples/wip/misc/audio loop.js | 2 +- examples/wip/misc/blocked.js | 4 +-- examples/wip/misc/body angle.js | 2 +- examples/wip/misc/body group.js | 4 +-- examples/wip/misc/body scale.js | 4 +-- examples/wip/misc/body test.js | 11 +++--- examples/wip/misc/button scale.js | 23 ++++++------ examples/wip/misc/button size.js | 4 +-- examples/wip/misc/circlebox.js | 10 +++--- examples/wip/misc/commando.js | 12 +++---- examples/wip/misc/cursor.js | 4 +-- examples/wip/misc/fixdrag.js | 6 ++-- examples/wip/misc/gravity.js | 2 +- examples/wip/misc/group destroy.js | 2 +- examples/wip/misc/group offset.js | 2 +- examples/wip/misc/jitter.js | 10 +++--- examples/wip/misc/land.js | 10 +++--- examples/wip/misc/line intersection.js | 8 ++--- examples/wip/misc/line polygon.js | 8 ++--- examples/wip/misc/mod.js | 36 +++++++++---------- examples/wip/misc/mouse scale.js | 2 +- examples/wip/misc/offset.js | 2 +- examples/wip/misc/one way collision.js | 8 ++--- examples/wip/misc/pausetime.js | 4 +-- examples/wip/misc/physics-motion.js | 2 +- examples/wip/misc/pivot.js | 10 +++--- examples/wip/misc/platform.js | 16 ++++----- examples/wip/misc/rabbit map.js | 24 ++++++------- examples/wip/misc/rect test.js | 10 +++--- examples/wip/misc/sat1.js | 10 +++--- examples/wip/misc/snake2.js | 4 +-- examples/wip/misc/sprite vs sprite.js | 4 +-- examples/wip/misc/struck.js | 4 +-- examples/wip/misc/swap.js | 2 +- examples/wip/misc/text on top.js | 2 +- examples/wip/misc/tilemap poly.js | 14 ++++---- examples/wip/misc/tilemap.js | 20 +++++------ examples/wip/misc/timer simple.js | 4 +-- examples/wip/misc/tween-relative.js | 14 ++++---- examples/wip/misc/wabbits.js | 10 +++--- examples/wip/misc/wip2.js | 6 ++-- examples/wip/misc/wip3.js | 8 ++--- examples/wip/misc/wip4.js | 8 ++--- examples/wip/misc/world.js | 4 +-- examples/wip/no-scale.js | 2 +- examples/wip/p21.js | 6 ++-- examples/wip/p22.js | 10 +++--- examples/wip/p23.js | 4 +-- examples/wip/p24.js | 10 +++--- examples/wip/p25.js | 4 +-- examples/wip/p26.js | 4 +-- examples/wip/p27.js | 6 ++-- examples/wip/p28.js | 10 +++--- examples/wip/pixi1.js | 2 +- examples/wip/pixi2.js | 2 +- examples/wip/platforms.js | 4 +-- examples/wip/springs 1.js | 4 +-- examples/wip/tab swap.js | 6 ++-- examples/wip/text.js | 4 +-- examples/wip/tilemap1.js | 18 +++++----- examples/wip/tilemap2.js | 4 +-- examples/wip/tilesprite fixed to cam.js | 2 +- examples/wip/tilesprite input.js | 2 +- examples/wip/tilesprite.js | 2 +- examples/wip/tween swap.js | 2 +- examples/wip/twokeys.js | 4 +-- examples/world/fixed to camera.js | 2 +- examples/world/move around world.js | 6 ++-- 206 files changed, 553 insertions(+), 572 deletions(-) diff --git a/examples/animation/change texture on click.js b/examples/animation/change texture on click.js index 5b8487df..8d6c8d7c 100644 --- a/examples/animation/change texture on click.js +++ b/examples/animation/change texture on click.js @@ -34,6 +34,6 @@ function changeMummy() { function render() { - game.debug.renderSpriteBounds(bot); + game.debug.spriteBounds(bot); } diff --git a/examples/audio/pause and resume.js b/examples/audio/pause and resume.js index bc9ef2b9..c9cf6dea 100644 --- a/examples/audio/pause and resume.js +++ b/examples/audio/pause and resume.js @@ -46,6 +46,6 @@ function update() { } function render() { - game.debug.renderSoundInfo(music, 20, 32); + game.debug.soundInfo(music, 20, 32); } diff --git a/examples/audio/play music.js b/examples/audio/play music.js index 2f471f82..12c8dccb 100644 --- a/examples/audio/play music.js +++ b/examples/audio/play music.js @@ -46,6 +46,6 @@ function update() { } function render() { - game.debug.renderSoundInfo(music, 20, 32); + game.debug.soundInfo(music, 20, 32); } diff --git a/examples/audio/protracker.js b/examples/audio/protracker.js index eee16b19..620a48e4 100644 --- a/examples/audio/protracker.js +++ b/examples/audio/protracker.js @@ -187,21 +187,21 @@ function update() { function render() { - game.debug.renderText('Sample ' + sample1 + ' : ' + sampleName1, 16, 32); - game.debug.renderText('Sample ' + sample2 + ' : ' + sampleName2, 16, 64); - game.debug.renderText('Sample ' + sample3 + ' : ' + sampleName3, 16, 96); - game.debug.renderText('Sample ' + sample4 + ' : ' + sampleName4, 16, 128); + game.debug.text('Sample ' + sample1 + ' : ' + sampleName1, 16, 32); + game.debug.text('Sample ' + sample2 + ' : ' + sampleName2, 16, 64); + game.debug.text('Sample ' + sample3 + ' : ' + sampleName3, 16, 96); + game.debug.text('Sample ' + sample4 + ' : ' + sampleName4, 16, 128); - game.debug.renderText('Position: ' + module.position, 16, 160); - game.debug.renderText('Pattern: ' + module.row, 16, 192); - game.debug.renderText('BPM: ' + module.bpm, 16, 224); - game.debug.renderText('Speed: ' + module.speed, 16, 256); - game.debug.renderText('Name: ' + module.title, 16, 288); - game.debug.renderText('Signature: ' + module.signature, 16, 320); + game.debug.text('Position: ' + module.position, 16, 160); + game.debug.text('Pattern: ' + module.row, 16, 192); + game.debug.text('BPM: ' + module.bpm, 16, 224); + game.debug.text('Speed: ' + module.speed, 16, 256); + game.debug.text('Name: ' + module.title, 16, 288); + game.debug.text('Signature: ' + module.signature, 16, 320); - game.debug.renderText('vu1: ' + module.vu[0], 16, 352); - game.debug.renderText('vu2: ' + module.vu[1], 16, 384); - game.debug.renderText('vu3: ' + module.vu[2], 16, 416); - game.debug.renderText('vu4: ' + module.vu[3], 16, 448); + game.debug.text('vu1: ' + module.vu[0], 16, 352); + game.debug.text('vu2: ' + module.vu[1], 16, 384); + game.debug.text('vu3: ' + module.vu[2], 16, 416); + game.debug.text('vu4: ' + module.vu[3], 16, 448); } diff --git a/examples/basics/04 - image follow input.js b/examples/basics/04 - image follow input.js index 64af7d3b..6a8c056e 100644 --- a/examples/basics/04 - image follow input.js +++ b/examples/basics/04 - image follow input.js @@ -31,5 +31,5 @@ function update () { function render () { //debug helper - game.debug.renderInputInfo(32,32); + game.debug.inputInfo(32,32); } diff --git a/examples/buttons/button scale.js b/examples/buttons/button scale.js index f6af47dc..d302f807 100644 --- a/examples/buttons/button scale.js +++ b/examples/buttons/button scale.js @@ -78,17 +78,4 @@ function changeSky (button) { function render () { - // game.debug.renderSpriteCorners(button1, false, true); - // game.debug.renderSpriteCorners(button2, false, true); - // game.debug.renderSpriteCorners(button3, false, true); - // game.debug.renderSpriteCorners(button4, false, true); - // game.debug.renderSpriteCorners(button5, false, true); - // game.debug.renderSpriteCorners(button6, false, true); - - // game.debug.renderWorldTransformInfo(button1, 32, 132); - // game.debug.renderText('sx: ' + button3.scale.x + ' sy: ' + button3.scale.y + ' w: ' + button3.width + ' cw: ' + button3._cache.width, 32, 20); - // game.debug.renderText('ox: ' + game.stage.offset.x + ' oy: ' + game.stage.offset.y, 32, 20); - // game.debug.renderPoint(button3.input._tempPoint); - // game.debug.renderPoint(button6.input._tempPoint); - } diff --git a/examples/camera/basic follow.js b/examples/camera/basic follow.js index fd152fee..dd305188 100644 --- a/examples/camera/basic follow.js +++ b/examples/camera/basic follow.js @@ -65,8 +65,8 @@ function update() { function render() { - game.debug.renderCameraInfo(game.camera, 32, 32); - game.debug.renderSpriteCoords(player, 32, 200); - game.debug.renderSpriteCoords(fixed, 600, 200); + game.debug.cameraInfo(game.camera, 32, 32); + game.debug.spriteCoords(player, 32, 200); + game.debug.spriteCoords(fixed, 600, 200); } diff --git a/examples/camera/camera cull.js b/examples/camera/camera cull.js index cb15113a..e5d5172c 100644 --- a/examples/camera/camera cull.js +++ b/examples/camera/camera cull.js @@ -42,7 +42,7 @@ function update() { function render() { - game.debug.renderSpriteBounds(s); - game.debug.renderSpriteInfo(s, 20, 32); + game.debug.spriteBounds(s); + game.debug.spriteInfo(s, 20, 32); } diff --git a/examples/camera/follow styles.js b/examples/camera/follow styles.js index 339dc1e0..9f640f0f 100644 --- a/examples/camera/follow styles.js +++ b/examples/camera/follow styles.js @@ -103,7 +103,7 @@ function update() { function render () { - game.debug.renderText('Click buttons to switch follow styles', 32, 32); - game.debug.renderText('Current style: ' + style, 32, 64); + game.debug.text('Click buttons to switch follow styles', 32, 32); + game.debug.text('Current style: ' + style, 32, 64); } diff --git a/examples/camera/moving the camera.js b/examples/camera/moving the camera.js index ad4ad308..deed5ed2 100644 --- a/examples/camera/moving the camera.js +++ b/examples/camera/moving the camera.js @@ -47,6 +47,6 @@ function update() { function render() { - game.debug.renderCameraInfo(game.camera, 32, 32); + game.debug.cameraInfo(game.camera, 32, 32); } diff --git a/examples/camera/world sprite.js b/examples/camera/world sprite.js index ab144fbd..9940ac31 100644 --- a/examples/camera/world sprite.js +++ b/examples/camera/world sprite.js @@ -49,8 +49,8 @@ function update() { function render() { - game.debug.renderCameraInfo(game.camera, 500, 32); - game.debug.renderSpriteCoords(card, 32, 32); - // game.debug.renderPhysicsBody(card.body); + game.debug.cameraInfo(game.camera, 500, 32); + game.debug.spriteCoords(card, 32, 32); + // game.debug.physicsBody(card.body); } diff --git a/examples/collision/body scale.js b/examples/collision/body scale.js index 99b86d01..1aade621 100644 --- a/examples/collision/body scale.js +++ b/examples/collision/body scale.js @@ -40,7 +40,7 @@ function update() { function render() { - game.debug.renderPhysicsBody(sprite.body); - game.debug.renderPhysicsBody(sprite2.body); + game.debug.physicsBody(sprite.body); + game.debug.physicsBody(sprite2.body); } diff --git a/examples/collision/bounding box.js b/examples/collision/bounding box.js index 7d337697..da72f6f0 100644 --- a/examples/collision/bounding box.js +++ b/examples/collision/bounding box.js @@ -41,9 +41,9 @@ function collisionHandler (obj1, obj2) { function render() { - game.debug.renderBodyInfo(sprite1, 32, 32); + // game.debug.bodyInfo(sprite1, 32, 32); - game.debug.renderPhysicsBody(sprite1.body); - game.debug.renderPhysicsBody(sprite2.body); + game.debug.physicsBody(sprite1.body); + game.debug.physicsBody(sprite2.body); } diff --git a/examples/collision/circle body.js b/examples/collision/circle body.js index 0b3b9db2..a4aa8f8a 100644 --- a/examples/collision/circle body.js +++ b/examples/collision/circle body.js @@ -43,9 +43,9 @@ function collisionHandler (obj1, obj2) { function render() { - game.debug.renderBodyInfo(sprite2, 32, 32); + game.debug.bodyInfo(sprite2, 32, 32); - game.debug.renderPhysicsBody(sprite1.body); - game.debug.renderPhysicsBody(sprite2.body); + game.debug.physicsBody(sprite1.body); + game.debug.physicsBody(sprite2.body); } diff --git a/examples/collision/circle vs polygon.js b/examples/collision/circle vs polygon.js index 62805d84..4ffe6f7b 100644 --- a/examples/collision/circle vs polygon.js +++ b/examples/collision/circle vs polygon.js @@ -54,11 +54,11 @@ function update() { function render() { - game.debug.renderBodyInfo(sprite4, 32, 32); + game.debug.bodyInfo(sprite4, 32, 32); - game.debug.renderPhysicsBody(sprite1.body); - game.debug.renderPhysicsBody(sprite2.body); - game.debug.renderPhysicsBody(sprite3.body); - game.debug.renderPhysicsBody(sprite4.body); + game.debug.physicsBody(sprite1.body); + game.debug.physicsBody(sprite2.body); + game.debug.physicsBody(sprite3.body); + game.debug.physicsBody(sprite4.body); } diff --git a/examples/collision/larger bounding box.js b/examples/collision/larger bounding box.js index 76ce7b4c..ee6b7200 100644 --- a/examples/collision/larger bounding box.js +++ b/examples/collision/larger bounding box.js @@ -42,9 +42,9 @@ function collisionHandler (obj1, obj2) { function render() { - game.debug.renderBodyInfo(sprite1, 32, 32); + game.debug.bodyInfo(sprite1, 32, 32); - game.debug.renderPhysicsBody(sprite1.body); - game.debug.renderPhysicsBody(sprite2.body); + game.debug.physicsBody(sprite1.body); + game.debug.physicsBody(sprite2.body); } diff --git a/examples/collision/offset bounding box.js b/examples/collision/offset bounding box.js index 9aa234a1..3448aeb5 100644 --- a/examples/collision/offset bounding box.js +++ b/examples/collision/offset bounding box.js @@ -43,9 +43,9 @@ function collisionHandler (obj1, obj2) { function render() { - game.debug.renderBodyInfo(sprite1, 32, 32); + game.debug.bodyInfo(sprite1, 32, 32); - game.debug.renderPhysicsBody(sprite1.body); - game.debug.renderPhysicsBody(sprite2.body); + game.debug.physicsBody(sprite1.body); + game.debug.physicsBody(sprite2.body); } diff --git a/examples/collision/one way collision.js b/examples/collision/one way collision.js index 49904c38..66bb17c4 100644 --- a/examples/collision/one way collision.js +++ b/examples/collision/one way collision.js @@ -50,9 +50,9 @@ function update() { function render() { - // game.debug.renderBodyInfo(sprite, 16, 24); + // game.debug.bodyInfo(sprite, 16, 24); - game.debug.renderPhysicsBody(sprite.body); - game.debug.renderPhysicsBody(sprite2.body); + game.debug.physicsBody(sprite.body); + game.debug.physicsBody(sprite2.body); } diff --git a/examples/collision/polygon body.js b/examples/collision/polygon body.js index f2cd421e..078753bc 100644 --- a/examples/collision/polygon body.js +++ b/examples/collision/polygon body.js @@ -44,7 +44,7 @@ function collisionHandler (obj1, obj2) { function render() { - game.debug.renderPhysicsBody(sprite1.body); - game.debug.renderPhysicsBody(sprite2.body); + game.debug.physicsBody(sprite1.body); + game.debug.physicsBody(sprite2.body); } diff --git a/examples/collision/process callback.js b/examples/collision/process callback.js index 81347fbe..a62769f1 100644 --- a/examples/collision/process callback.js +++ b/examples/collision/process callback.js @@ -57,9 +57,9 @@ function collisionCallback (obj1, obj2) { function render() { - game.debug.renderText('The processCallback will only collide if sprite1 is going fastest.', 32, 32); - game.debug.renderText('Sprite 1 speed: ' + sprite1.body.speed, 32, 64); - game.debug.renderText('Sprite 2 speed: ' + sprite2.body.speed, 32, 96); + game.debug.text('The processCallback will only collide if sprite1 is going fastest.', 32, 32); + game.debug.text('Sprite 1 speed: ' + sprite1.body.speed, 32, 64); + game.debug.text('Sprite 2 speed: ' + sprite2.body.speed, 32, 96); } diff --git a/examples/collision/rotated bounding box.js b/examples/collision/rotated bounding box.js index 575187c0..1d0aca22 100644 --- a/examples/collision/rotated bounding box.js +++ b/examples/collision/rotated bounding box.js @@ -44,9 +44,9 @@ function collisionHandler (obj1, obj2) { function render() { - game.debug.renderBodyInfo(sprite1, 32, 32); + game.debug.bodyInfo(sprite1, 32, 32); - game.debug.renderPhysicsBody(sprite1.body); - game.debug.renderPhysicsBody(sprite2.body); + game.debug.physicsBody(sprite1.body); + game.debug.physicsBody(sprite2.body); } diff --git a/examples/collision/sprite vs sprite.js b/examples/collision/sprite vs sprite.js index 82e4a0b7..694219d4 100644 --- a/examples/collision/sprite vs sprite.js +++ b/examples/collision/sprite vs sprite.js @@ -43,7 +43,7 @@ function collisionHandler (obj1, obj2) { function render() { - game.debug.renderPhysicsBody(sprite1.body); - game.debug.renderPhysicsBody(sprite2.body); + game.debug.physicsBody(sprite1.body); + game.debug.physicsBody(sprite2.body); } \ No newline at end of file diff --git a/examples/collision/vertical collision.js b/examples/collision/vertical collision.js index 79b2a97e..6ad80076 100644 --- a/examples/collision/vertical collision.js +++ b/examples/collision/vertical collision.js @@ -44,7 +44,7 @@ function collisionHandler (obj1, obj2) { function render() { - game.debug.renderPhysicsBody(sprite1.body); - game.debug.renderPhysicsBody(sprite2.body); + game.debug.physicsBody(sprite1.body); + game.debug.physicsBody(sprite2.body); } diff --git a/examples/debug/debug camera.js b/examples/debug/debug camera.js index 8a33c50a..348df919 100644 --- a/examples/debug/debug camera.js +++ b/examples/debug/debug camera.js @@ -35,6 +35,6 @@ function update() function render() { // Camera - game.debug.renderCameraInfo(game.camera, 32, 32); + game.debug.cameraInfo(game.camera, 32, 32); } diff --git a/examples/debug/debug display.js b/examples/debug/debug display.js index 6c0a9669..a8ba0533 100644 --- a/examples/debug/debug display.js +++ b/examples/debug/debug display.js @@ -35,7 +35,7 @@ function update() function render() { // Display - game.debug.renderSpriteBounds(sprite); - game.debug.renderSpriteCorners(sprite, true, true); + game.debug.spriteBounds(sprite); + game.debug.spriteCorners(sprite, true, true); } diff --git a/examples/debug/debug draw.js b/examples/debug/debug draw.js index 5c303229..8d045dad 100644 --- a/examples/debug/debug draw.js +++ b/examples/debug/debug draw.js @@ -8,11 +8,11 @@ var point = new Phaser.Point( 100, 280 ) ; function render() { // Draw debug tools - game.debug.renderRectangle( rect, 'rgba(255,0,0,1)' ) ; - game.debug.renderCircle( circle, 'rgba(255,255,0,1)' ) ; - game.debug.renderPoint( point, 'rgba(255,255,255,1)' ) ; - game.debug.renderPixel( 200, 280, 'rgba(0,255,255,1)' ) ; - game.debug.renderText( "This is debug text", 100, 380 ); + game.debug.geom( rect, 'rgba(255,0,0,1)' ) ; + game.debug.geom( circle, 'rgba(255,255,0,1)' ) ; + game.debug.geom( point, 'rgba(255,255,255,1)' ) ; + game.debug.pixel( 200, 280, 'rgba(0,255,255,1)' ) ; + game.debug.text( "This is debug text", 100, 380 ); } diff --git a/examples/debug/debug input.js b/examples/debug/debug input.js index 14242a8b..807f5bc0 100644 --- a/examples/debug/debug input.js +++ b/examples/debug/debug input.js @@ -34,8 +34,8 @@ function update() function render() { // Input debug info - game.debug.renderInputInfo(32, 32); - game.debug.renderSpriteInputInfo(sprite, 32, 130); - game.debug.renderPointer( game.input.activePointer ); + game.debug.inputInfo(32, 32); + game.debug.spriteInputInfo(sprite, 32, 130); + game.debug.pointer( game.input.activePointer ); } diff --git a/examples/debug/debug physics.js b/examples/debug/debug physics.js index ef71bc76..5bc5bda1 100644 --- a/examples/debug/debug physics.js +++ b/examples/debug/debug physics.js @@ -44,8 +44,8 @@ function update() function render() { // Physics - game.debug.renderSpriteBounds(sprite); + game.debug.spriteBounds(sprite); - game.debug.renderSpriteBounds(otherSprite); + game.debug.spriteBounds(otherSprite); } diff --git a/examples/debug/debug sprite.js b/examples/debug/debug sprite.js index 2af87e24..2ba062a9 100644 --- a/examples/debug/debug sprite.js +++ b/examples/debug/debug sprite.js @@ -34,6 +34,6 @@ function update() function render() { // Sprite debug info - game.debug.renderSpriteInfo(sprite, 32, 32); + game.debug.spriteInfo(sprite, 32, 32); } diff --git a/examples/display/fullscreen buttons.js b/examples/display/fullscreen buttons.js index 487de2b6..5d07d7a6 100644 --- a/examples/display/fullscreen buttons.js +++ b/examples/display/fullscreen buttons.js @@ -69,11 +69,11 @@ function render () { if (game.scale.isFullScreen) { - game.debug.renderText('ESC to leave fullscreen', 270, 16); + game.debug.text('ESC to leave fullscreen', 270, 16); } else { - game.debug.renderText('Click / Tap to go fullscreen', 270, 16); + game.debug.text('Click / Tap to go fullscreen', 270, 16); } } diff --git a/examples/display/fullscreen.js b/examples/display/fullscreen.js index 17c3f629..4f287353 100644 --- a/examples/display/fullscreen.js +++ b/examples/display/fullscreen.js @@ -39,6 +39,6 @@ function update() { function render () { - game.debug.renderText('Click / Tap to go fullscreen', 270, 16); + game.debug.text('Click / Tap to go fullscreen', 270, 16); } diff --git a/examples/games/matching pairs.js b/examples/games/matching pairs.js index eea39a97..8a8d1d38 100644 --- a/examples/games/matching pairs.js +++ b/examples/games/matching pairs.js @@ -205,22 +205,22 @@ function getHiddenTile() { function render() { - game.debug.renderText(timesUp, 620, 208, 'rgb(0,255,0)'); - game.debug.renderText(youWin, 620, 240, 'rgb(0,255,0)'); + game.debug.text(timesUp, 620, 208, 'rgb(0,255,0)'); + game.debug.text(youWin, 620, 240, 'rgb(0,255,0)'); - game.debug.renderText('Time: ' + myCountdownSeconds, 620, 15, 'rgb(0,255,0)'); + game.debug.text('Time: ' + myCountdownSeconds, 620, 15, 'rgb(0,255,0)'); - //game.debug.renderText('squareCounter: ' + squareCounter, 620, 272, 'rgb(0,0,255)'); - game.debug.renderText('Matched Pairs: ' + masterCounter, 620, 304, 'rgb(0,0,255)'); + //game.debug.text('squareCounter: ' + squareCounter, 620, 272, 'rgb(0,0,255)'); + game.debug.text('Matched Pairs: ' + masterCounter, 620, 304, 'rgb(0,0,255)'); - //game.debug.renderText('startList: ' + myString1, 620, 208, 'rgb(255,0,0)'); - //game.debug.renderText('squareList: ' + myString2, 620, 240, 'rgb(255,0,0)'); + //game.debug.text('startList: ' + myString1, 620, 208, 'rgb(255,0,0)'); + //game.debug.text('squareList: ' + myString2, 620, 240, 'rgb(255,0,0)'); - game.debug.renderText('Tile: ' + map.getTile(layer.getTileX(marker.x), layer.getTileY(marker.y)), 620, 48, 'rgb(255,0,0)'); + game.debug.text('Tile: ' + map.getTile(layer.getTileX(marker.x), layer.getTileY(marker.y)), 620, 48, 'rgb(255,0,0)'); - game.debug.renderText('LayerX: ' + layer.getTileX(marker.x), 620, 80, 'rgb(255,0,0)'); - game.debug.renderText('LayerY: ' + layer.getTileY(marker.y), 620, 112, 'rgb(255,0,0)'); + game.debug.text('LayerX: ' + layer.getTileX(marker.x), 620, 80, 'rgb(255,0,0)'); + game.debug.text('LayerY: ' + layer.getTileY(marker.y), 620, 112, 'rgb(255,0,0)'); - game.debug.renderText('Tile Position: ' + currentTilePosition, 620, 144, 'rgb(255,0,0)'); - game.debug.renderText('Hidden Tile: ' + getHiddenTile(), 620, 176, 'rgb(255,0,0)'); + game.debug.text('Tile Position: ' + currentTilePosition, 620, 144, 'rgb(255,0,0)'); + game.debug.text('Hidden Tile: ' + getHiddenTile(), 620, 176, 'rgb(255,0,0)'); } \ No newline at end of file diff --git a/examples/games/simon.js b/examples/games/simon.js index 59bc4979..b1ae85e0 100644 --- a/examples/games/simon.js +++ b/examples/games/simon.js @@ -190,25 +190,25 @@ function render() { { if (simonSez) { - game.debug.renderText('Simon Sez', 360, 96, 'rgb(255,0,0)'); + game.debug.text('Simon Sez', 360, 96, 'rgb(255,0,0)'); } else { - game.debug.renderText('Your Turn', 360, 96, 'rgb(0,255,0)'); + game.debug.text('Your Turn', 360, 96, 'rgb(0,255,0)'); } } else { - game.debug.renderText('Get Ready', 360, 96, 'rgb(0,0,255)'); + game.debug.text('Get Ready', 360, 96, 'rgb(0,0,255)'); } if (winner) { - game.debug.renderText('You Win!', 360, 32, 'rgb(0,0,255)'); + game.debug.text('You Win!', 360, 32, 'rgb(0,0,255)'); } else if (loser) { - game.debug.renderText('You Lose!', 360, 32, 'rgb(0,0,255)'); + game.debug.text('You Lose!', 360, 32, 'rgb(0,0,255)'); } } diff --git a/examples/games/starstruck.js b/examples/games/starstruck.js index 059d0473..afb38849 100644 --- a/examples/games/starstruck.js +++ b/examples/games/starstruck.js @@ -123,8 +123,8 @@ function render () { if (player.debug) { - game.debug.renderPhysicsBody(player.body); - game.debug.renderBodyInfo(player, 16, 24); + game.debug.physicsBody(player.body); + game.debug.bodyInfo(player, 16, 24); } } diff --git a/examples/games/tanks.js b/examples/games/tanks.js index 006b6b76..d9aaa28b 100644 --- a/examples/games/tanks.js +++ b/examples/games/tanks.js @@ -290,7 +290,7 @@ function fire () { function render () { - // game.debug.renderText('Active Bullets: ' + bullets.countLiving() + ' / ' + bullets.total, 32, 32); + // game.debug.text('Active Bullets: ' + bullets.countLiving() + ' / ' + bullets.total, 32, 32); } diff --git a/examples/geometry/circle.js b/examples/geometry/circle.js index 45972def..2bb6877b 100644 --- a/examples/geometry/circle.js +++ b/examples/geometry/circle.js @@ -12,8 +12,8 @@ function create() { function render () { - game.debug.renderCircle(circle,'#cfffff'); - game.debug.renderText('Diameter : '+circle.diameter,50,200); - game.debug.renderText('Circumference : '+circle.circumference(),50,230); + game.debug.circle(circle,'#cfffff'); + game.debug.text('Diameter : '+circle.diameter,50,200); + game.debug.text('Circumference : '+circle.circumference(),50,230); } diff --git a/examples/geometry/line intersection.js b/examples/geometry/line intersection.js index f6134f80..bc35f0f5 100644 --- a/examples/geometry/line intersection.js +++ b/examples/geometry/line intersection.js @@ -63,11 +63,11 @@ function update() { function render() { - game.debug.renderLine(line1, c); - game.debug.renderLine(line2, c); + game.debug.line(line1, c); + game.debug.line(line2, c); - game.debug.renderLineInfo(line1, 32, 32); - game.debug.renderLineInfo(line2, 32, 100); + game.debug.lineInfo(line1, 32, 32); + game.debug.lineInfo(line2, 32, 100); if (p) { @@ -75,6 +75,6 @@ function render() { game.context.fillRect(p.x - 2, p.y - 2, 5, 5); } - game.debug.renderText("Drag the handles", 32, 550); + game.debug.text("Drag the handles", 32, 550); } \ No newline at end of file diff --git a/examples/geometry/line.js b/examples/geometry/line.js index 70a71706..c9da4b5e 100644 --- a/examples/geometry/line.js +++ b/examples/geometry/line.js @@ -36,9 +36,9 @@ function update() { function render() { - game.debug.renderLine(line1); - game.debug.renderLineInfo(line1, 32, 32); + game.debug.line(line1); + game.debug.lineInfo(line1, 32, 32); - game.debug.renderText("Drag the handles", 32, 550); + game.debug.text("Drag the handles", 32, 550); } \ No newline at end of file diff --git a/examples/geometry/rectangle.js b/examples/geometry/rectangle.js index 71af3359..31b9c2a5 100644 --- a/examples/geometry/rectangle.js +++ b/examples/geometry/rectangle.js @@ -11,6 +11,6 @@ function create() { function render () { - game.debug.renderRectangle(floor,'#0fffff'); + game.debug.geom(floor,'#0fffff'); } diff --git a/examples/groups/bring a group to top.js b/examples/groups/bring a group to top.js index bff5bdf4..19b995c9 100644 --- a/examples/groups/bring a group to top.js +++ b/examples/groups/bring a group to top.js @@ -78,5 +78,5 @@ function update() { } function render() { - game.debug.renderInputInfo(32, 32); + game.debug.inputInfo(32, 32); } diff --git a/examples/groups/call all.js b/examples/groups/call all.js index 8123997f..6f9b389b 100644 --- a/examples/groups/call all.js +++ b/examples/groups/call all.js @@ -47,7 +47,7 @@ function reviveAll() { function render() { - game.debug.renderText('Tap or click an item to kill it', 160, 500); - game.debug.renderText('Press the Revive button to revive them all.', 160, 520); + game.debug.text('Tap or click an item to kill it', 160, 500); + game.debug.text('Press the Revive button to revive them all.', 160, 520); } diff --git a/examples/groups/create sprite in a group.js b/examples/groups/create sprite in a group.js index 4b6689f4..af4e9b24 100644 --- a/examples/groups/create sprite in a group.js +++ b/examples/groups/create sprite in a group.js @@ -40,6 +40,6 @@ function createBaddie() { function render() { - game.debug.renderText('Tap screen or click to create new baddies.', 16, 24); + game.debug.text('Tap screen or click to create new baddies.', 16, 24); } diff --git a/examples/groups/for each.js b/examples/groups/for each.js index 0e6e177b..3c501e3d 100644 --- a/examples/groups/for each.js +++ b/examples/groups/for each.js @@ -38,6 +38,6 @@ function update() { function render() { - game.debug.renderText('Alpha of items is always changing.', 280, 480); + game.debug.text('Alpha of items is always changing.', 280, 480); } diff --git a/examples/groups/get first.js b/examples/groups/get first.js index e6ea77ba..e914373a 100644 --- a/examples/groups/get first.js +++ b/examples/groups/get first.js @@ -52,9 +52,9 @@ function update() { function render() { - game.debug.renderText('One item will be killed each second.', 280, 420); + game.debug.text('One item will be killed each second.', 280, 420); // Get living and dead number of a group. - game.debug.renderText('Living: ' + game.world.countLiving() + ', Dead: ' + game.world.countDead(), 330, 440); + game.debug.text('Living: ' + game.world.countLiving() + ', Dead: ' + game.world.countDead(), 330, 440); } diff --git a/examples/groups/group as layer.js b/examples/groups/group as layer.js index c88581c2..bc3a9c0d 100644 --- a/examples/groups/group as layer.js +++ b/examples/groups/group as layer.js @@ -64,10 +64,10 @@ function create() { function render() { - game.debug.renderText('sky layer: z = 0', 16, 20); - game.debug.renderText('cloud layer: z = 1', 16, 36); - game.debug.renderText('ground layer: z = 2', 16, 52); - game.debug.renderText('sprite layer: z = 3', 16, 68); - game.debug.renderText('river layer: z = 4', 16, 84); + game.debug.text('sky layer: z = 0', 16, 20); + game.debug.text('cloud layer: z = 1', 16, 36); + game.debug.text('ground layer: z = 2', 16, 52); + game.debug.text('sprite layer: z = 3', 16, 68); + game.debug.text('river layer: z = 4', 16, 84); } diff --git a/examples/groups/group transform - rotate.js b/examples/groups/group transform - rotate.js index c307d247..027cfaff 100644 --- a/examples/groups/group transform - rotate.js +++ b/examples/groups/group transform - rotate.js @@ -44,6 +44,6 @@ function update() { function render() { - game.debug.renderText('The robot is a group and every component is a sprite.', 240, 580); + game.debug.text('The robot is a group and every component is a sprite.', 240, 580); } diff --git a/examples/groups/group transform - tween.js b/examples/groups/group transform - tween.js index 5fbc61bd..8be0ecd0 100644 --- a/examples/groups/group transform - tween.js +++ b/examples/groups/group transform - tween.js @@ -41,6 +41,6 @@ function create() { function render() { - game.debug.renderText('The robot is a group and every component is a sprite.', 32,32); + game.debug.text('The robot is a group and every component is a sprite.', 32,32); } diff --git a/examples/groups/group transform.js b/examples/groups/group transform.js index 5860e4c9..78c5a495 100644 --- a/examples/groups/group transform.js +++ b/examples/groups/group transform.js @@ -40,7 +40,7 @@ function create() { function render() { - game.debug.renderText('The robot is a group and every component is a sprite.', 16, 20); - game.debug.renderText('Drag parts to re-position them. ', 16, 40); + game.debug.text('The robot is a group and every component is a sprite.', 16, 20); + game.debug.text('Drag parts to re-position them. ', 16, 40); } diff --git a/examples/groups/recyling.js b/examples/groups/recyling.js index 4374543b..3c5e42cc 100644 --- a/examples/groups/recyling.js +++ b/examples/groups/recyling.js @@ -55,8 +55,8 @@ function createBaddie() { function render() { - game.debug.renderText('Recycle baddies from a group using getFirstExists.', 16, 24); - game.debug.renderText('Notice that you cannot add more than 8 baddies since we only create 8 instance.', 16, 36); - game.debug.renderText('Living baddies: ' + (enemies.countLiving()), 340, 420); + game.debug.text('Recycle baddies from a group using getFirstExists.', 16, 24); + game.debug.text('Notice that you cannot add more than 8 baddies since we only create 8 instance.', 16, 36); + game.debug.text('Living baddies: ' + (enemies.countLiving()), 340, 420); } diff --git a/examples/groups/remove.js b/examples/groups/remove.js index 4b88e350..07f365c6 100644 --- a/examples/groups/remove.js +++ b/examples/groups/remove.js @@ -42,8 +42,8 @@ function create() { function render() { - game.debug.renderText('Size of group: ' + items.length, 100, 560); - game.debug.renderText('Drop here to cut items from groups entirely.', 390, 24); + game.debug.text('Size of group: ' + items.length, 100, 560); + game.debug.text('Drop here to cut items from groups entirely.', 390, 24); } diff --git a/examples/groups/replace.js b/examples/groups/replace.js index 23de93ce..e21185ba 100644 --- a/examples/groups/replace.js +++ b/examples/groups/replace.js @@ -69,8 +69,8 @@ function select(item, pointer) { function render() { - game.debug.renderText('Left Group', 300, 80); - game.debug.renderText('Right Group', 400, 80); - game.debug.renderText('Click an item and one from another group to replace it.', 240, 480); + game.debug.text('Left Group', 300, 80); + game.debug.text('Right Group', 400, 80); + game.debug.text('Click an item and one from another group to replace it.', 240, 480); } diff --git a/examples/groups/set All.js b/examples/groups/set All.js index bafcc3a7..802f9c21 100644 --- a/examples/groups/set All.js +++ b/examples/groups/set All.js @@ -30,6 +30,6 @@ function resetAlpha() { function render() { - game.debug.renderText('Tap or click to set random alpha of all the items.', 240, 480); + game.debug.text('Tap or click to set random alpha of all the items.', 240, 480); } diff --git a/examples/groups/sub groups - group length.js b/examples/groups/sub groups - group length.js index 8142aceb..4127b068 100644 --- a/examples/groups/sub groups - group length.js +++ b/examples/groups/sub groups - group length.js @@ -62,11 +62,11 @@ function createBaddie() { function render() { - game.debug.renderStyle = '#fff'; - game.debug.renderText('Tap screen or click to create new baddies.', 16, 24); - game.debug.renderText('enemies: ' + enemies.length + ' (actually ' + enemies.length + ' groups)', 16, 48); - game.debug.renderText('normal baddies: ' + normalBaddies.length, 16, 60); - game.debug.renderText('purple baddies: ' + purpleBaddies.length, 16, 72); - game.debug.renderText('friends: ' + friendAndFoe.length, 16, 96); + game.debug.style = '#fff'; + game.debug.text('Tap screen or click to create new baddies.', 16, 24); + game.debug.text('enemies: ' + enemies.length + ' (actually ' + enemies.length + ' groups)', 16, 48); + game.debug.text('normal baddies: ' + normalBaddies.length, 16, 60); + game.debug.text('purple baddies: ' + purpleBaddies.length, 16, 72); + game.debug.text('friends: ' + friendAndFoe.length, 16, 96); } diff --git a/examples/groups/swap children in a group.js b/examples/groups/swap children in a group.js index 115c359e..99b96c5b 100644 --- a/examples/groups/swap children in a group.js +++ b/examples/groups/swap children in a group.js @@ -30,6 +30,6 @@ function swapSprites() { function render () { - game.debug.renderText('Tap screen to swap the children and therefore swap their indexes.', 10, 280); + game.debug.text('Tap screen to swap the children and therefore swap their indexes.', 10, 280); } diff --git a/examples/input/bring a child to top.js b/examples/input/bring a child to top.js index d3637acf..dc8c1239 100644 --- a/examples/input/bring a child to top.js +++ b/examples/input/bring a child to top.js @@ -30,5 +30,5 @@ function create() { } function render() { - game.debug.renderInputInfo(32, 32); + game.debug.inputInfo(32, 32); } \ No newline at end of file diff --git a/examples/input/cursor key movement.js b/examples/input/cursor key movement.js index a95e9eda..cf0509bc 100644 --- a/examples/input/cursor key movement.js +++ b/examples/input/cursor key movement.js @@ -68,6 +68,6 @@ function update() { function render() { - game.debug.renderCameraInfo(game.camera, 32, 32); + game.debug.cameraInfo(game.camera, 32, 32); } diff --git a/examples/input/drag several sprites.js b/examples/input/drag several sprites.js index 0d0ad7c0..c0425592 100644 --- a/examples/input/drag several sprites.js +++ b/examples/input/drag several sprites.js @@ -32,5 +32,5 @@ function create() { } function render() { - game.debug.renderInputInfo(32, 32); + game.debug.inputInfo(32, 32); } diff --git a/examples/input/drop limitation.js b/examples/input/drop limitation.js index 0fbc3533..30bf08a5 100644 --- a/examples/input/drop limitation.js +++ b/examples/input/drop limitation.js @@ -34,8 +34,8 @@ function create() { function render() { - game.debug.renderText('Group Left.', 100, 560); - game.debug.renderText('Group Right.', 280, 560); + game.debug.text('Group Left.', 100, 560); + game.debug.text('Group Right.', 280, 560); } diff --git a/examples/input/game scale.js b/examples/input/game scale.js index b750015a..2c9e6f34 100644 --- a/examples/input/game scale.js +++ b/examples/input/game scale.js @@ -57,6 +57,6 @@ function update() { function render() { - game.debug.renderInputInfo(16, 16); + game.debug.inputInfo(16, 16); } diff --git a/examples/input/keyboard.js b/examples/input/keyboard.js index 4b88b5c2..9a5b1d48 100644 --- a/examples/input/keyboard.js +++ b/examples/input/keyboard.js @@ -75,6 +75,6 @@ function update() { function render() { - game.debug.renderText('Hold left/right to move the ufo.'); + game.debug.text('Hold left/right to move the ufo.'); } diff --git a/examples/input/motion lock - horizontal.js b/examples/input/motion lock - horizontal.js index fff81273..33f445d2 100644 --- a/examples/input/motion lock - horizontal.js +++ b/examples/input/motion lock - horizontal.js @@ -31,7 +31,7 @@ function create() { function render() { - game.debug.renderInputInfo(32, 32); - game.debug.renderSpriteInputInfo(sprite, 300, 32); + game.debug.inputInfo(32, 32); + game.debug.spriteInputInfo(sprite, 300, 32); } diff --git a/examples/input/motion lock - vertical.js b/examples/input/motion lock - vertical.js index ea5692c3..aa1b86f1 100644 --- a/examples/input/motion lock - vertical.js +++ b/examples/input/motion lock - vertical.js @@ -31,7 +31,7 @@ function create() { function render() { - game.debug.renderInputInfo(32, 32); - game.debug.renderSpriteInputInfo(sprite, 300, 32); + game.debug.inputInfo(32, 32); + game.debug.spriteInputInfo(sprite, 300, 32); } diff --git a/examples/input/multi touch.js b/examples/input/multi touch.js index 4b4adf6d..e4cdd589 100644 --- a/examples/input/multi touch.js +++ b/examples/input/multi touch.js @@ -21,12 +21,12 @@ function create() { function render() { // Just renders out the pointer data when you touch the canvas - game.debug.renderPointer(game.input.mousePointer); - game.debug.renderPointer(game.input.pointer1); - game.debug.renderPointer(game.input.pointer2); - game.debug.renderPointer(game.input.pointer3); - game.debug.renderPointer(game.input.pointer4); - game.debug.renderPointer(game.input.pointer5); - game.debug.renderPointer(game.input.pointer6); + game.debug.pointer(game.input.mousePointer); + game.debug.pointer(game.input.pointer1); + game.debug.pointer(game.input.pointer2); + game.debug.pointer(game.input.pointer3); + game.debug.pointer(game.input.pointer4); + game.debug.pointer(game.input.pointer5); + game.debug.pointer(game.input.pointer6); } diff --git a/examples/input/override default controls.js b/examples/input/override default controls.js index 55c6f5be..d8811b2f 100644 --- a/examples/input/override default controls.js +++ b/examples/input/override default controls.js @@ -101,9 +101,9 @@ function update() { function render() { - game.debug.renderText('Hold left/right to move the ufo.', 16, 32); - game.debug.renderText('Direction and Space key events are stopped by Phaser now,', 16, 48); - game.debug.renderText('so they will no longer be sent to the browser', 16, 64); - game.debug.renderText('Now you can press UP/DOWN or SPACE to see what happened.', 16, 80); + game.debug.text('Hold left/right to move the ufo.', 16, 32); + game.debug.text('Direction and Space key events are stopped by Phaser now,', 16, 48); + game.debug.text('so they will no longer be sent to the browser', 16, 64); + game.debug.text('Now you can press UP/DOWN or SPACE to see what happened.', 16, 80); } diff --git a/examples/input/pixel perfect click detection.js b/examples/input/pixel perfect click detection.js index 70fcada7..41c311ec 100644 --- a/examples/input/pixel perfect click detection.js +++ b/examples/input/pixel perfect click detection.js @@ -42,8 +42,8 @@ function update() { function render() { - game.debug.renderSpriteInputInfo(b, 32, 32); - game.debug.renderSpriteCorners(b); - game.debug.renderPoint(b.input._tempPoint); + game.debug.spriteInputInfo(b, 32, 32); + game.debug.spriteCorners(b); + game.debug.point(b.input._tempPoint); } diff --git a/examples/input/pixelpick - scrolling effect.js b/examples/input/pixelpick - scrolling effect.js index 69075558..1327befc 100644 --- a/examples/input/pixelpick - scrolling effect.js +++ b/examples/input/pixelpick - scrolling effect.js @@ -93,6 +93,6 @@ function update() { function render() { - game.debug.renderSpriteInputInfo(b, 32, 32); + game.debug.spriteInputInfo(b, 32, 32); } diff --git a/examples/input/pixelpick - spritesheet.js b/examples/input/pixelpick - spritesheet.js index d798775a..14df274d 100644 --- a/examples/input/pixelpick - spritesheet.js +++ b/examples/input/pixelpick - spritesheet.js @@ -44,8 +44,8 @@ function outSprite() { function render() { - game.debug.renderSpriteInputInfo(b, 32, 32); - game.debug.renderSpriteCorners(b); - game.debug.renderPoint(b.input._tempPoint); + game.debug.spriteInputInfo(b, 32, 32); + game.debug.spriteCorners(b); + game.debug.point(b.input._tempPoint); } diff --git a/examples/input/touch joystick.js b/examples/input/touch joystick.js index 5b31883e..656a93cc 100644 --- a/examples/input/touch joystick.js +++ b/examples/input/touch joystick.js @@ -62,7 +62,7 @@ function update() { } function render() { - game.debug.renderText('Use the virtual joystick to move the UFO.', 20, 20); - game.debug.renderText('This requires touch events, so try on your phone.', 20, 40); + game.debug.text('Use the virtual joystick to move the UFO.', 20, 20); + game.debug.text('This requires touch events, so try on your phone.', 20, 40); } diff --git a/examples/loader/load audio.js b/examples/loader/load audio.js index 614c7c60..7668cee8 100644 --- a/examples/loader/load audio.js +++ b/examples/loader/load audio.js @@ -31,11 +31,11 @@ function create() { function render() { - game.debug.renderSoundInfo(music, 32, 32); + game.debug.soundInfo(music, 32, 32); if (music.isDecoding) { - game.debug.renderText("Decoding MP3 ...", 32, 200); + game.debug.text("Decoding MP3 ...", 32, 200); } } diff --git a/examples/loader/load text file.js b/examples/loader/load text file.js index 5772157c..d1a70bcb 100644 --- a/examples/loader/load text file.js +++ b/examples/loader/load text file.js @@ -31,7 +31,7 @@ function render() { for (var i = 0; i < 30; i++) { - game.debug.renderText(text[i], 32, i * 20); + game.debug.text(text[i], 32, i * 20); } } diff --git a/examples/loader/pick images from cache.js b/examples/loader/pick images from cache.js index ee6f4936..686063e8 100644 --- a/examples/loader/pick images from cache.js +++ b/examples/loader/pick images from cache.js @@ -31,5 +31,5 @@ function create() { } function render() { - game.debug.renderInputInfo(32, 32); + game.debug.inputInfo(32, 32); } diff --git a/examples/misc/net.js b/examples/misc/net.js index 5110a88f..3e36de18 100644 --- a/examples/misc/net.js +++ b/examples/misc/net.js @@ -3,13 +3,13 @@ var game = new Phaser.Game(800, 600, Phaser.CANVAS, 'phaser-example', { render: function render () { - game.debug.renderText('Host Name:'+game.net.getHostName(),game.world.centerX-300,20); - game.debug.renderText('Host Name contains 192:'+game.net.checkDomainName('192'),game.world.centerX-300,40); - game.debug.renderText('Host Name contains google.com:'+game.net.checkDomainName('google.com'),game.world.centerX-300,60); + game.debug.text('Host Name:'+game.net.getHostName(),game.world.centerX-300,20); + game.debug.text('Host Name contains 192:'+game.net.checkDomainName('192'),game.world.centerX-300,40); + game.debug.text('Host Name contains google.com:'+game.net.checkDomainName('google.com'),game.world.centerX-300,60); // Add some values to the query string - game.debug.renderText('Query string with new values : '+game.net.updateQueryString('atari', '520'),game.world.centerX-400,80); - game.debug.renderText('Query string with new values : '+game.net.updateQueryString('amiga', '1200'),game.world.centerX-400,100); + game.debug.text('Query string with new values : '+game.net.updateQueryString('atari', '520'),game.world.centerX-400,80); + game.debug.text('Query string with new values : '+game.net.updateQueryString('amiga', '1200'),game.world.centerX-400,100); console.log('Query String: '+game.net.getQueryString(),game.world.centerX-300,140); console.log('Query String Param: '+game.net.getQueryString('atari'),game.world.centerX-300,160); diff --git a/examples/physics/accelerate to pointer.js b/examples/physics/accelerate to pointer.js index fd7a8493..610956a3 100644 --- a/examples/physics/accelerate to pointer.js +++ b/examples/physics/accelerate to pointer.js @@ -24,6 +24,6 @@ function update() { function render() { - game.debug.renderSpriteInfo(sprite, 32, 32); + game.debug.spriteInfo(sprite, 32, 32); } diff --git a/examples/physics/angle between.js b/examples/physics/angle between.js index 84b80969..441c53c1 100644 --- a/examples/physics/angle between.js +++ b/examples/physics/angle between.js @@ -33,7 +33,7 @@ function update() { function render() { - game.debug.renderText("Drag the ball", 32, 32); - game.debug.renderSpriteInfo(arrow, 32, 100); + game.debug.text("Drag the ball", 32, 32); + game.debug.spriteInfo(arrow, 32, 100); } diff --git a/examples/physics/angle to pointer.js b/examples/physics/angle to pointer.js index 0c8ff2ec..25e6c93c 100644 --- a/examples/physics/angle to pointer.js +++ b/examples/physics/angle to pointer.js @@ -26,6 +26,6 @@ function update() { function render() { - game.debug.renderSpriteInfo(sprite, 32, 32); + game.debug.spriteInfo(sprite, 32, 32); } diff --git a/examples/physics/angular acceleration.js b/examples/physics/angular acceleration.js index 4186548c..16f5530e 100644 --- a/examples/physics/angular acceleration.js +++ b/examples/physics/angular acceleration.js @@ -41,10 +41,10 @@ function update() { function render() { - game.debug.renderSpriteInfo(sprite, 32, 32); - game.debug.renderText('angularVelocity: ' + sprite.body.angularVelocity, 32, 200); - game.debug.renderText('angularAcceleration: ' + sprite.body.angularAcceleration, 32, 232); - game.debug.renderText('angularDrag: ' + sprite.body.angularDrag, 32, 264); - game.debug.renderText('deltaZ: ' + sprite.body.deltaZ(), 32, 296); + game.debug.spriteInfo(sprite, 32, 32); + game.debug.text('angularVelocity: ' + sprite.body.angularVelocity, 32, 200); + game.debug.text('angularAcceleration: ' + sprite.body.angularAcceleration, 32, 232); + game.debug.text('angularDrag: ' + sprite.body.angularDrag, 32, 264); + game.debug.text('deltaZ: ' + sprite.body.deltaZ(), 32, 296); } diff --git a/examples/physics/angular velocity.js b/examples/physics/angular velocity.js index 7c3bf6b3..272d1b89 100644 --- a/examples/physics/angular velocity.js +++ b/examples/physics/angular velocity.js @@ -40,10 +40,10 @@ function update() { function render() { - game.debug.renderSpriteInfo(sprite, 32, 32); - game.debug.renderText('angularVelocity: ' + sprite.body.angularVelocity, 32, 200); - game.debug.renderText('angularAcceleration: ' + sprite.body.angularAcceleration, 32, 232); - game.debug.renderText('angularDrag: ' + sprite.body.angularDrag, 32, 264); - game.debug.renderText('deltaZ: ' + sprite.body.deltaZ(), 32, 296); + game.debug.spriteInfo(sprite, 32, 32); + game.debug.text('angularVelocity: ' + sprite.body.angularVelocity, 32, 200); + game.debug.text('angularAcceleration: ' + sprite.body.angularAcceleration, 32, 232); + game.debug.text('angularDrag: ' + sprite.body.angularDrag, 32, 264); + game.debug.text('deltaZ: ' + sprite.body.deltaZ(), 32, 296); } diff --git a/examples/physics/bounce accelerator.js b/examples/physics/bounce accelerator.js index 1fb7d53f..a0aefe00 100644 --- a/examples/physics/bounce accelerator.js +++ b/examples/physics/bounce accelerator.js @@ -89,6 +89,6 @@ function update () { function render () { //debug helper - game.debug.renderSpriteInfo(flyer,32,32); + game.debug.spriteInfo(flyer,32,32); } \ No newline at end of file diff --git a/examples/physics/bounce knock.js b/examples/physics/bounce knock.js index 35245652..66221463 100644 --- a/examples/physics/bounce knock.js +++ b/examples/physics/bounce knock.js @@ -72,6 +72,6 @@ function update () { function render () { //debug helper - game.debug.renderSpriteInfo(ball, 32, 32); + game.debug.spriteInfo(ball, 32, 32); } diff --git a/examples/physics/bounce with gravity.js b/examples/physics/bounce with gravity.js index 78b7063c..48ed136d 100644 --- a/examples/physics/bounce with gravity.js +++ b/examples/physics/bounce with gravity.js @@ -45,6 +45,6 @@ function update () { function render () { //debug helper - game.debug.renderSpriteInfo(image,32,32); + game.debug.spriteInfo(image,32,32); } diff --git a/examples/physics/bounce.js b/examples/physics/bounce.js index 08047ad9..9c698d5c 100644 --- a/examples/physics/bounce.js +++ b/examples/physics/bounce.js @@ -43,5 +43,5 @@ function update () { function render () { //debug helper - game.debug.renderSpriteInfo(image,32,32); + game.debug.spriteInfo(image,32,32); } \ No newline at end of file diff --git a/examples/physics/framerate independence.js b/examples/physics/framerate independence.js index 94e7814e..d8128c97 100644 --- a/examples/physics/framerate independence.js +++ b/examples/physics/framerate independence.js @@ -133,5 +133,5 @@ function update() { }; function render() { - game.debug.renderText("Framerate: " + (currentConfiguration.description || (currentConfiguration.framerate + 'hz')), 10, 40); + game.debug.text("Framerate: " + (currentConfiguration.description || (currentConfiguration.framerate + 'hz')), 10, 40); }; \ No newline at end of file diff --git a/examples/physics/launcher follow world.js b/examples/physics/launcher follow world.js index e29bdbc1..d48e930c 100644 --- a/examples/physics/launcher follow world.js +++ b/examples/physics/launcher follow world.js @@ -141,9 +141,9 @@ function update() { function render() { - game.debug.renderText("Drag the sprite and release to launch", 32, 32, 'rgb(0,255,0)'); - game.debug.renderCameraInfo(game.camera, 32, 64); - game.debug.renderSpriteCoords(player, 32, 150); - game.debug.renderText("Launch Velocity: " + parseInt(launchVelocity), 550, 32, 'rgb(0,255,0)'); + game.debug.text("Drag the sprite and release to launch", 32, 32, 'rgb(0,255,0)'); + game.debug.cameraInfo(game.camera, 32, 64); + game.debug.spriteCoords(player, 32, 150); + game.debug.text("Launch Velocity: " + parseInt(launchVelocity), 550, 32, 'rgb(0,255,0)'); } diff --git a/examples/physics/launcher follow.js b/examples/physics/launcher follow.js index 43478243..c46d11ff 100644 --- a/examples/physics/launcher follow.js +++ b/examples/physics/launcher follow.js @@ -94,9 +94,9 @@ function update() { function render() { - game.debug.renderText("Drag the sprite and release to launch", 32, 32, 'rgb(0,255,0)'); - game.debug.renderCameraInfo(game.camera, 32, 64); - game.debug.renderSpriteCoords(player, 32, 150); - game.debug.renderText("Launch Velocity: " + parseInt(launchVelocity), 550, 32, 'rgb(0,255,0)'); + game.debug.text("Drag the sprite and release to launch", 32, 32, 'rgb(0,255,0)'); + game.debug.cameraInfo(game.camera, 32, 64); + game.debug.spriteCoords(player, 32, 150); + game.debug.text("Launch Velocity: " + parseInt(launchVelocity), 550, 32, 'rgb(0,255,0)'); } diff --git a/examples/physics/launcher.js b/examples/physics/launcher.js index 590a6fe7..0a746ca6 100644 --- a/examples/physics/launcher.js +++ b/examples/physics/launcher.js @@ -93,11 +93,11 @@ function update() { function render() { - game.debug.renderText("Drag the ball and release to launch", 32, 32); + game.debug.text("Drag the ball and release to launch", 32, 32); - game.debug.renderBodyInfo(ball, 32, 64); + game.debug.bodyInfo(ball, 32, 64); - // game.debug.renderSpriteInfo(ball, 32, 64); - // game.debug.renderText("Launch Velocity: " + parseInt(launchVelocity), 32, 250); + // game.debug.spriteInfo(ball, 32, 64); + // game.debug.text("Launch Velocity: " + parseInt(launchVelocity), 32, 250); } diff --git a/examples/physics/mass velocity test.js b/examples/physics/mass velocity test.js index 433b6040..6f3fd79f 100644 --- a/examples/physics/mass velocity test.js +++ b/examples/physics/mass velocity test.js @@ -67,15 +67,15 @@ function render() { for (var i = 0; i < aliens._container.children.length; i++) { - game.debug.renderPolygon(aliens._container.children[i].body.polygons); + game.debug.polygon(aliens._container.children[i].body.polygons); } - game.debug.renderPolygon(car.body.polygons); + game.debug.polygon(car.body.polygons); - // game.debug.renderBodyInfo(aliens._container.children[0], 32, 32); - game.debug.renderBodyInfo(aliens._container.children[0], 32, 32); + // game.debug.bodyInfo(aliens._container.children[0], 32, 32); + game.debug.bodyInfo(aliens._container.children[0], 32, 32); - // game.debug.renderBodyInfo(car, 16, 24); - // game.debug.renderBodyInfo(aliens.getFirstAlive(), 16, 24); + // game.debug.bodyInfo(car, 16, 24); + // game.debug.bodyInfo(aliens.getFirstAlive(), 16, 24); } diff --git a/examples/physics/quadtree - collision infos.js b/examples/physics/quadtree - collision infos.js index 82325fca..923ebc70 100644 --- a/examples/physics/quadtree - collision infos.js +++ b/examples/physics/quadtree - collision infos.js @@ -54,14 +54,14 @@ function update() { function render() { - game.debug.renderQuadTree(game.physics.quadTree); - game.debug.renderRectangle(ship.body); + game.debug.QuadTree(game.physics.quadTree); + game.debug.geom(ship.body); - // game.debug.renderText('total: ' + total.length, 32, 50); + // game.debug.text('total: ' + total.length, 32, 50); - game.debug.renderText('up: ' + ship.body.touching.up, 32, 70); - game.debug.renderText('down: ' + ship.body.touching.down, 32, 90); - game.debug.renderText('left: ' + ship.body.touching.left, 32, 110); - game.debug.renderText('right: ' + ship.body.touching.right, 32, 130); + game.debug.text('up: ' + ship.body.touching.up, 32, 70); + game.debug.text('down: ' + ship.body.touching.down, 32, 90); + game.debug.text('left: ' + ship.body.touching.left, 32, 110); + game.debug.text('right: ' + ship.body.touching.right, 32, 130); } diff --git a/examples/physics/quadtree - ids.js b/examples/physics/quadtree - ids.js index 0ee1d373..62e789df 100644 --- a/examples/physics/quadtree - ids.js +++ b/examples/physics/quadtree - ids.js @@ -73,18 +73,18 @@ function render() { for (var i = 0; i < aliens.length; i++) { - // game.debug.renderRectangle(aliens[i].bounds); + // game.debug.geom(aliens[i].bounds); } - game.debug.renderText(total.length, 32, 32); - game.debug.renderQuadTree(game.physics.quadTree); - // game.debug.renderRectangle(ship); + game.debug.text(total.length, 32, 32); + game.debug.QuadTree(game.physics.quadTree); + // game.debug.geom(ship); - game.debug.renderText('Index: ' + ship.body.quadTreeIndex, 32, 80); + game.debug.text('Index: ' + ship.body.quadTreeIndex, 32, 80); for (var i = 0; i < ship.body.quadTreeIDs.length; i++) { - game.debug.renderText('ID: ' + ship.body.quadTreeIDs[i], 32, 100 + (i * 20)); + game.debug.text('ID: ' + ship.body.quadTreeIDs[i], 32, 100 + (i * 20)); } } diff --git a/examples/physics/ship trail.js b/examples/physics/ship trail.js index 96f26c82..27d45336 100644 --- a/examples/physics/ship trail.js +++ b/examples/physics/ship trail.js @@ -62,7 +62,7 @@ function update() { function render() { - game.debug.renderBodyInfo(sprite, 16, 24); - game.debug.renderPhysicsBody(sprite.body); + game.debug.bodyInfo(sprite, 16, 24); + game.debug.physicsBody(sprite.body); } diff --git a/examples/physics/shoot the pointer.js b/examples/physics/shoot the pointer.js index 0cd41985..ebd50b0e 100644 --- a/examples/physics/shoot the pointer.js +++ b/examples/physics/shoot the pointer.js @@ -57,7 +57,7 @@ function fire() { function render() { - game.debug.renderText('Active Bullets: ' + bullets.countLiving() + ' / ' + bullets.total, 32, 32); - game.debug.renderSpriteInfo(sprite, 32, 450); + game.debug.text('Active Bullets: ' + bullets.countLiving() + ' / ' + bullets.total, 32, 32); + game.debug.spriteInfo(sprite, 32, 450); } diff --git a/examples/physics/snake.js b/examples/physics/snake.js index b303cb88..d0e0b2e7 100644 --- a/examples/physics/snake.js +++ b/examples/physics/snake.js @@ -77,6 +77,6 @@ function update() { function render() { - game.debug.renderSpriteInfo(snakeHead, 32, 32); + game.debug.spriteInfo(snakeHead, 32, 32); } \ No newline at end of file diff --git a/examples/physics/sprite bounds.js b/examples/physics/sprite bounds.js index 9cc744fc..9d7f5eab 100644 --- a/examples/physics/sprite bounds.js +++ b/examples/physics/sprite bounds.js @@ -37,10 +37,6 @@ function update() { function render() { - //Phaser.DebugUtils.renderSpriteWorldViewBounds(fuji); - //Phaser.DebugUtils.renderSpriteBounds(fuji); - game.debug.renderSpriteCorners(fuji); - //Phaser.DebugUtils.renderSpriteWorldView(fuji, 32, 32); - game.debug.renderRectangle(b, 'rgba(0,20,91,1)'); + game.debug.geom(b, 'rgba(0,20,91,1)'); } diff --git a/examples/sprites/dynamic crop.js b/examples/sprites/dynamic crop.js index feac40a4..3309704d 100644 --- a/examples/sprites/dynamic crop.js +++ b/examples/sprites/dynamic crop.js @@ -37,6 +37,6 @@ function update() { function render() { - game.debug.renderText('x: ' + game.input.x + ' y: ' + game.input.y, 32, 32); + game.debug.text('x: ' + game.input.x + ' y: ' + game.input.y, 32, 32); } diff --git a/examples/sprites/move a sprite.js b/examples/sprites/move a sprite.js index 50235937..ae1bdbc7 100644 --- a/examples/sprites/move a sprite.js +++ b/examples/sprites/move a sprite.js @@ -41,6 +41,6 @@ function update() { } function render() { - game.debug.renderSpriteInfo(s, 20, 32); + game.debug.spriteInfo(s, 20, 32); } diff --git a/examples/sprites/sprite rotation.js b/examples/sprites/sprite rotation.js index edc15076..61ebab55 100644 --- a/examples/sprites/sprite rotation.js +++ b/examples/sprites/sprite rotation.js @@ -28,10 +28,10 @@ function update() { function render() { - game.debug.renderSpriteInfo(sprite, 32, 32); - // game.debug.renderText('angularVelocity: ' + sprite.body.angularVelocity, 32, 200); - // game.debug.renderText('angularAcceleration: ' + sprite.body.angularAcceleration, 32, 232); - // game.debug.renderText('angularDrag: ' + sprite.body.angularDrag, 32, 264); - // game.debug.renderText('deltaZ: ' + sprite.body.deltaZ(), 32, 296); + game.debug.spriteInfo(sprite, 32, 32); + // game.debug.text('angularVelocity: ' + sprite.body.angularVelocity, 32, 200); + // game.debug.text('angularAcceleration: ' + sprite.body.angularAcceleration, 32, 232); + // game.debug.text('angularDrag: ' + sprite.body.angularDrag, 32, 264); + // game.debug.text('deltaZ: ' + sprite.body.deltaZ(), 32, 296); } diff --git a/examples/tile sprites/colliding with tiling sprite.js b/examples/tile sprites/colliding with tiling sprite.js index 90206a7d..6c258ccc 100644 --- a/examples/tile sprites/colliding with tiling sprite.js +++ b/examples/tile sprites/colliding with tiling sprite.js @@ -54,6 +54,6 @@ function update() { function render() { - // game.debug.renderPhysicsBody(tilesprite); + // game.debug.physicsBody(tilesprite); } \ No newline at end of file diff --git a/examples/tilemaps/create from objects.js b/examples/tilemaps/create from objects.js index ce918d3c..1428783b 100644 --- a/examples/tilemaps/create from objects.js +++ b/examples/tilemaps/create from objects.js @@ -99,6 +99,6 @@ function collectCoin(player, coin) { function render() { - game.debug.renderPhysicsBody(sprite.body); + game.debug.physicsBody(sprite.body); } \ No newline at end of file diff --git a/examples/tilemaps/fill tiles.js b/examples/tilemaps/fill tiles.js index 6f022f8b..6203a2e9 100644 --- a/examples/tilemaps/fill tiles.js +++ b/examples/tilemaps/fill tiles.js @@ -68,8 +68,8 @@ function update() { function render() { - game.debug.renderText('Click to fill tiles', 32, 32, 'rgb(0,0,0)'); - game.debug.renderText('Tile X: ' + layer.getTileX(sprite.x), 32, 48, 'rgb(0,0,0)'); - game.debug.renderText('Tile Y: ' + layer.getTileY(sprite.y), 32, 64, 'rgb(0,0,0)'); + game.debug.text('Click to fill tiles', 32, 32, 'rgb(0,0,0)'); + game.debug.text('Tile X: ' + layer.getTileX(sprite.x), 32, 48, 'rgb(0,0,0)'); + game.debug.text('Tile Y: ' + layer.getTileY(sprite.y), 32, 64, 'rgb(0,0,0)'); } diff --git a/examples/tilemaps/mapcollide.js b/examples/tilemaps/mapcollide.js index b5b3ece4..584b70f7 100644 --- a/examples/tilemaps/mapcollide.js +++ b/examples/tilemaps/mapcollide.js @@ -79,7 +79,7 @@ function update() { function render() { - game.debug.renderCameraInfo(game.camera, 420, 320); - game.debug.renderPhysicsBody(p.body); + game.debug.cameraInfo(game.camera, 420, 320); + game.debug.physicsBody(p.body); } diff --git a/examples/tilemaps/paint tiles.js b/examples/tilemaps/paint tiles.js index a51df92b..fa2748de 100644 --- a/examples/tilemaps/paint tiles.js +++ b/examples/tilemaps/paint tiles.js @@ -56,7 +56,7 @@ function update() { function render() { - game.debug.renderText('Left-click to paint. Shift + Left-click to select tile.', 32, 32, 'rgb(0,0,0)'); - game.debug.renderText('Tile: ' + map.getTile(layer.getTileX(marker.x), layer.getTileY(marker.y)), 32, 48, 'rgb(0,0,0)'); + game.debug.text('Left-click to paint. Shift + Left-click to select tile.', 32, 32, 'rgb(0,0,0)'); + game.debug.text('Tile: ' + map.getTile(layer.getTileX(marker.x), layer.getTileY(marker.y)), 32, 48, 'rgb(0,0,0)'); } diff --git a/examples/tilemaps/randomise tiles.js b/examples/tilemaps/randomise tiles.js index 1eb356cd..b2eca6e4 100644 --- a/examples/tilemaps/randomise tiles.js +++ b/examples/tilemaps/randomise tiles.js @@ -75,8 +75,8 @@ function update() { function render() { - game.debug.renderText('Click to randomise tiles', 32, 32, 'rgb(0,0,0)'); - game.debug.renderText('Tile X: ' + layer.getTileX(sprite.x), 32, 48, 'rgb(0,0,0)'); - game.debug.renderText('Tile Y: ' + layer.getTileY(sprite.y), 32, 64, 'rgb(0,0,0)'); + game.debug.text('Click to randomise tiles', 32, 32, 'rgb(0,0,0)'); + game.debug.text('Tile X: ' + layer.getTileX(sprite.x), 32, 48, 'rgb(0,0,0)'); + game.debug.text('Tile Y: ' + layer.getTileY(sprite.y), 32, 64, 'rgb(0,0,0)'); } diff --git a/examples/tilemaps/replace tiles.js b/examples/tilemaps/replace tiles.js index b3df0c24..b03b6788 100644 --- a/examples/tilemaps/replace tiles.js +++ b/examples/tilemaps/replace tiles.js @@ -71,8 +71,8 @@ function update() { function render() { - game.debug.renderText('Click to replace tiles', 32, 32, 'rgb(0,0,0)'); - game.debug.renderText('Tile X: ' + layer.getTileX(sprite.x), 32, 48, 'rgb(0,0,0)'); - game.debug.renderText('Tile Y: ' + layer.getTileY(sprite.y), 32, 64, 'rgb(0,0,0)'); + game.debug.text('Click to replace tiles', 32, 32, 'rgb(0,0,0)'); + game.debug.text('Tile X: ' + layer.getTileX(sprite.x), 32, 48, 'rgb(0,0,0)'); + game.debug.text('Tile Y: ' + layer.getTileY(sprite.y), 32, 64, 'rgb(0,0,0)'); } diff --git a/examples/tilemaps/shuffle tiles.js b/examples/tilemaps/shuffle tiles.js index 7ef6bfcf..29d734cb 100644 --- a/examples/tilemaps/shuffle tiles.js +++ b/examples/tilemaps/shuffle tiles.js @@ -75,8 +75,8 @@ function update() { function render() { - game.debug.renderText('Click to randomise tiles', 32, 32, 'rgb(0,0,0)'); - game.debug.renderText('Tile X: ' + layer.getTileX(sprite.x), 32, 48, 'rgb(0,0,0)'); - game.debug.renderText('Tile Y: ' + layer.getTileY(sprite.y), 32, 64, 'rgb(0,0,0)'); + game.debug.text('Click to randomise tiles', 32, 32, 'rgb(0,0,0)'); + game.debug.text('Tile X: ' + layer.getTileX(sprite.x), 32, 48, 'rgb(0,0,0)'); + game.debug.text('Tile Y: ' + layer.getTileY(sprite.y), 32, 64, 'rgb(0,0,0)'); } diff --git a/examples/tilemaps/swap tiles.js b/examples/tilemaps/swap tiles.js index b8c3c669..e2510e1a 100644 --- a/examples/tilemaps/swap tiles.js +++ b/examples/tilemaps/swap tiles.js @@ -71,8 +71,8 @@ function update() { function render() { - game.debug.renderText('Click to swap tiles', 32, 32, 'rgb(0,0,0)'); - game.debug.renderText('Tile X: ' + layer.getTileX(sprite.x), 32, 48, 'rgb(0,0,0)'); - game.debug.renderText('Tile Y: ' + layer.getTileY(sprite.y), 32, 64, 'rgb(0,0,0)'); + game.debug.text('Click to swap tiles', 32, 32, 'rgb(0,0,0)'); + game.debug.text('Tile X: ' + layer.getTileX(sprite.x), 32, 48, 'rgb(0,0,0)'); + game.debug.text('Tile Y: ' + layer.getTileY(sprite.y), 32, 64, 'rgb(0,0,0)'); } diff --git a/examples/tilemaps/tile callbacks.js b/examples/tilemaps/tile callbacks.js index 2bee92e4..8244dad6 100644 --- a/examples/tilemaps/tile callbacks.js +++ b/examples/tilemaps/tile callbacks.js @@ -96,7 +96,7 @@ function update() { function render() { - // game.debug.renderBodyInfo(sprite, 16, 24); - // game.debug.renderPhysicsBody(sprite.body); + // game.debug.bodyInfo(sprite, 16, 24); + // game.debug.physicsBody(sprite.body); } \ No newline at end of file diff --git a/examples/time/basic looped event.js b/examples/time/basic looped event.js index b0583c64..446e00d7 100644 --- a/examples/time/basic looped event.js +++ b/examples/time/basic looped event.js @@ -38,7 +38,7 @@ function updateCounter() { function render() { - game.debug.renderText("Time until event: " + game.time.events.duration.toFixed(0), 32, 32); - game.debug.renderText("Next tick: " + game.time.events.next.toFixed(0), 32, 64); + game.debug.text("Time until event: " + game.time.events.duration.toFixed(0), 32, 32); + game.debug.text("Next tick: " + game.time.events.next.toFixed(0), 32, 64); } diff --git a/examples/time/basic repeat event.js b/examples/time/basic repeat event.js index 44e5c288..ffbc3cc1 100644 --- a/examples/time/basic repeat event.js +++ b/examples/time/basic repeat event.js @@ -39,7 +39,7 @@ function createBall() { function render() { - game.debug.renderText("Time until event: " + game.time.events.duration.toFixed(0), 32, 32); - game.debug.renderText("Next tick: " + game.time.events.next.toFixed(0), 32, 64); + game.debug.text("Time until event: " + game.time.events.duration.toFixed(0), 32, 32); + game.debug.text("Next tick: " + game.time.events.next.toFixed(0), 32, 64); } diff --git a/examples/time/basic timed event.js b/examples/time/basic timed event.js index 7c1ab20c..b5956d18 100644 --- a/examples/time/basic timed event.js +++ b/examples/time/basic timed event.js @@ -32,6 +32,6 @@ function fadePicture() { function render() { - game.debug.renderText("Time until event: " + game.time.events.duration, 32, 32); + game.debug.text("Time until event: " + game.time.events.duration, 32, 32); } diff --git a/examples/time/remove event.js b/examples/time/remove event.js index 2b5df2c6..0e34f1a3 100644 --- a/examples/time/remove event.js +++ b/examples/time/remove event.js @@ -50,6 +50,6 @@ function removeCounter() { function render() { - game.debug.renderText("Queued events: " + game.time.events.length + ' - click to remove', 32, 32); + game.debug.text("Queued events: " + game.time.events.length + ' - click to remove', 32, 32); } diff --git a/examples/time/timed slideshow.js b/examples/time/timed slideshow.js index b8e6b11c..26cc2edb 100644 --- a/examples/time/timed slideshow.js +++ b/examples/time/timed slideshow.js @@ -89,6 +89,6 @@ function changePicture() { function render() { - game.debug.renderText("Time until event: " + timer.duration.toFixed(0), 10, 20); + game.debug.text("Time until event: " + timer.duration.toFixed(0), 10, 20); } diff --git a/examples/tweens/tween loop event.js b/examples/tweens/tween loop event.js index 9d5473f7..19545584 100644 --- a/examples/tweens/tween loop event.js +++ b/examples/tweens/tween loop event.js @@ -58,6 +58,6 @@ function onComplete() { function render() { - game.debug.renderText('Bounces: ' + bounces, 32, 32); + game.debug.text('Bounces: ' + bounces, 32, 32); } \ No newline at end of file diff --git a/examples/tweens/tween relative.js b/examples/tweens/tween relative.js index 38fb243f..0f36d16a 100644 --- a/examples/tweens/tween relative.js +++ b/examples/tweens/tween relative.js @@ -48,10 +48,10 @@ function render() { if (sprite.x === 100 || sprite.x === 400) { - game.debug.renderText('Click sprite to tween', 32, 32); + game.debug.text('Click sprite to tween', 32, 32); } - game.debug.renderText('x: ' + arrowStart.x, arrowStart.x, arrowStart.y - 4); - game.debug.renderText('x: ' + arrowEnd.x, arrowEnd.x, arrowEnd.y - 4); + game.debug.text('x: ' + arrowStart.x, arrowStart.x, arrowStart.y - 4); + game.debug.text('x: ' + arrowEnd.x, arrowEnd.x, arrowEnd.y - 4); } diff --git a/examples/wip/anim-speed.js b/examples/wip/anim-speed.js index 89ecf269..a6fd855e 100644 --- a/examples/wip/anim-speed.js +++ b/examples/wip/anim-speed.js @@ -43,6 +43,6 @@ function update() { function render() { - game.debug.renderText(anim.speed, 32, 32); + game.debug.text(anim.speed, 32, 32); } \ No newline at end of file diff --git a/examples/wip/anim1.js b/examples/wip/anim1.js index 1566d92a..a6e42d6d 100644 --- a/examples/wip/anim1.js +++ b/examples/wip/anim1.js @@ -31,6 +31,6 @@ function update() { function render() { - game.debug.renderText(anim.frame + ' / 17', 32, 32); + game.debug.text(anim.frame + ' / 17', 32, 32); } \ No newline at end of file diff --git a/examples/wip/animated tilesprite.js b/examples/wip/animated tilesprite.js index 2968f240..1b22906b 100644 --- a/examples/wip/animated tilesprite.js +++ b/examples/wip/animated tilesprite.js @@ -70,6 +70,6 @@ function update() { function render() { - // game.debug.renderText(sprite.frame, 32, 32); + // game.debug.text(sprite.frame, 32, 32); } diff --git a/examples/wip/autoscroll.js b/examples/wip/autoscroll.js index 21debbb7..ae0f4a8a 100644 --- a/examples/wip/autoscroll.js +++ b/examples/wip/autoscroll.js @@ -32,6 +32,6 @@ function update() { function render() { - // game.debug.renderText(sprite.frame, 32, 32); + // game.debug.text(sprite.frame, 32, 32); } diff --git a/examples/wip/bmd.js b/examples/wip/bmd.js index 2d3b0a85..32e7be6a 100644 --- a/examples/wip/bmd.js +++ b/examples/wip/bmd.js @@ -31,6 +31,6 @@ function update() { function render() { - game.debug.renderText(game.input.x, 32, 32); + game.debug.text(game.input.x, 32, 32); } diff --git a/examples/wip/bounds.js b/examples/wip/bounds.js index e60e2713..5457358e 100644 --- a/examples/wip/bounds.js +++ b/examples/wip/bounds.js @@ -27,6 +27,6 @@ function update() { function render() { - game.debug.renderRectangle(sprite.getLocalBounds(), 'rgb(255, 255, 255)', false); + game.debug.geom(sprite.getLocalBounds(), 'rgb(255, 255, 255)', false); } diff --git a/examples/wip/cannon.js b/examples/wip/cannon.js index 876600b3..31b11b00 100644 --- a/examples/wip/cannon.js +++ b/examples/wip/cannon.js @@ -131,6 +131,6 @@ function update() { function render() { - game.debug.renderPhysicsBody(cannon.body); + game.debug.physicsBody(cannon.body); } diff --git a/examples/wip/contact1.js b/examples/wip/contact1.js index 53475b88..0f372940 100644 --- a/examples/wip/contact1.js +++ b/examples/wip/contact1.js @@ -130,6 +130,6 @@ return result; function render () { - game.debug.renderPhysicsBody(player.body); + game.debug.physicsBody(player.body); } diff --git a/examples/wip/contact2.js b/examples/wip/contact2.js index 6544c9cf..59cb0372 100644 --- a/examples/wip/contact2.js +++ b/examples/wip/contact2.js @@ -138,6 +138,6 @@ return result; function render () { - game.debug.renderPhysicsBody(player.body); + game.debug.physicsBody(player.body); } diff --git a/examples/wip/crop.js b/examples/wip/crop.js index 14f3803f..cf6f0794 100644 --- a/examples/wip/crop.js +++ b/examples/wip/crop.js @@ -42,6 +42,6 @@ function update() { function render() { - game.debug.renderText(image2.width, 32, 32); + game.debug.text(image2.width, 32, 32); } diff --git a/examples/wip/destroy state swap.js b/examples/wip/destroy state swap.js index 1566d92a..a6e42d6d 100644 --- a/examples/wip/destroy state swap.js +++ b/examples/wip/destroy state swap.js @@ -31,6 +31,6 @@ function update() { function render() { - game.debug.renderText(anim.frame + ' / 17', 32, 32); + game.debug.text(anim.frame + ' / 17', 32, 32); } \ No newline at end of file diff --git a/examples/wip/destroy.js b/examples/wip/destroy.js index 63088547..77857c31 100644 --- a/examples/wip/destroy.js +++ b/examples/wip/destroy.js @@ -52,6 +52,6 @@ function update() { function render() { - // game.debug.renderText(sprite.position.y, 32, 32); + // game.debug.text(sprite.position.y, 32, 32); } diff --git a/examples/wip/focus mute.js b/examples/wip/focus mute.js index 7bade40b..06c35351 100644 --- a/examples/wip/focus mute.js +++ b/examples/wip/focus mute.js @@ -48,6 +48,6 @@ function update() { } function render() { - game.debug.renderSoundInfo(music, 20, 32); + game.debug.soundInfo(music, 20, 32); } diff --git a/examples/wip/fullscreen.js b/examples/wip/fullscreen.js index 8c0fea9e..394ac5f2 100644 --- a/examples/wip/fullscreen.js +++ b/examples/wip/fullscreen.js @@ -69,11 +69,11 @@ function render () { if (game.scale.isFullScreen) { - game.debug.renderText('ESC to leave fullscreen', 270, 16); + game.debug.text('ESC to leave fullscreen', 270, 16); } else { - game.debug.renderText('Click / Tap to go fullscreen', 270, 16); + game.debug.text('Click / Tap to go fullscreen', 270, 16); } } diff --git a/examples/wip/grid-drag.js b/examples/wip/grid-drag.js index 3be98cb4..7a7a24b0 100644 --- a/examples/wip/grid-drag.js +++ b/examples/wip/grid-drag.js @@ -81,6 +81,6 @@ function update() { function render() { - game.debug.renderText('Tile X: ' + currentTile.x + ' Y: ' + currentTile.y, 32, 32); + game.debug.text('Tile X: ' + currentTile.x + ' Y: ' + currentTile.y, 32, 32); } \ No newline at end of file diff --git a/examples/wip/grid.js b/examples/wip/grid.js index 2faf5364..fe2c6c7d 100644 --- a/examples/wip/grid.js +++ b/examples/wip/grid.js @@ -49,6 +49,6 @@ function update() { function render() { - game.debug.renderText('Tile X: ' + currentTile.x + ' Y: ' + currentTile.y, 32, 32); + game.debug.text('Tile X: ' + currentTile.x + ' Y: ' + currentTile.y, 32, 32); } \ No newline at end of file diff --git a/examples/wip/group lifespan.js b/examples/wip/group lifespan.js index 0691f4f8..1abfb068 100644 --- a/examples/wip/group lifespan.js +++ b/examples/wip/group lifespan.js @@ -55,5 +55,5 @@ function update() { } function render() { - // game.debug.renderInputInfo(32, 32); + // game.debug.inputInfo(32, 32); } diff --git a/examples/wip/group1.js b/examples/wip/group1.js index 90ee89af..11f0e58c 100644 --- a/examples/wip/group1.js +++ b/examples/wip/group1.js @@ -52,5 +52,5 @@ function update() { } function render() { - // game.debug.renderInputInfo(32, 32); + // game.debug.inputInfo(32, 32); } diff --git a/examples/wip/hitArea.js b/examples/wip/hitArea.js index b76f207b..310a4132 100644 --- a/examples/wip/hitArea.js +++ b/examples/wip/hitArea.js @@ -85,9 +85,9 @@ function render() { var p = game.input.getLocalPosition(jellyfish, game.input.activePointer); - game.debug.renderPointInfo(p, 32, 32); - game.debug.renderPoint(p); - game.debug.renderText(); - // game.debug.renderCircle(image2.hitArea); + game.debug.pointInfo(p, 32, 32); + game.debug.point(p); + game.debug.text(); + // game.debug.circle(image2.hitArea); } diff --git a/examples/wip/image1.js b/examples/wip/image1.js index aada00c2..32605fa5 100644 --- a/examples/wip/image1.js +++ b/examples/wip/image1.js @@ -40,6 +40,6 @@ function update() { function render() { - // game.debug.renderText(sprite.position.y, 32, 32); + // game.debug.text(sprite.position.y, 32, 32); } diff --git a/examples/wip/image2.js b/examples/wip/image2.js index b289ac4f..99efd3f0 100644 --- a/examples/wip/image2.js +++ b/examples/wip/image2.js @@ -49,6 +49,6 @@ function update() { function render() { - game.debug.renderText(image2.width, 32, 32); + game.debug.text(image2.width, 32, 32); } diff --git a/examples/wip/keyboard.js b/examples/wip/keyboard.js index a287dc2a..0de5be57 100644 --- a/examples/wip/keyboard.js +++ b/examples/wip/keyboard.js @@ -52,6 +52,6 @@ function update() { function render() { - game.debug.renderPhysicsBody(ship.body); + game.debug.physicsBody(ship.body); } diff --git a/examples/wip/landscape-pointer.js b/examples/wip/landscape-pointer.js index eac0cf1d..8534a547 100644 --- a/examples/wip/landscape-pointer.js +++ b/examples/wip/landscape-pointer.js @@ -54,6 +54,6 @@ function update() { function render() { - game.debug.renderPointer(game.input.activePointer); + game.debug.pointer(game.input.activePointer); } \ No newline at end of file diff --git a/examples/wip/loadPolygon.js b/examples/wip/loadPolygon.js index 2c9336f5..db83bed0 100644 --- a/examples/wip/loadPolygon.js +++ b/examples/wip/loadPolygon.js @@ -39,6 +39,6 @@ function update() { function render() { - game.debug.renderPhysicsBody(contra.body, '#00ffff'); + game.debug.physicsBody(contra.body, '#00ffff'); } diff --git a/examples/wip/misc/2ball.js b/examples/wip/misc/2ball.js index 8740322e..b1fa2e9d 100644 --- a/examples/wip/misc/2ball.js +++ b/examples/wip/misc/2ball.js @@ -408,15 +408,15 @@ function render() { if (sprite) { - game.debug.renderBodyInfo(sprite2, 16, 24); - // game.debug.renderText(sprite.name + ' x: ' + sprite.x.toFixed(2) + ' dx: ' + sprite.body._dx.toFixed(2), 16, 500); - // game.debug.renderText(sprite.name + ' y: ' + sprite.y.toFixed(2) + ' dy: ' + sprite.body._dy.toFixed(2), 16, 520); + game.debug.bodyInfo(sprite2, 16, 24); + // game.debug.text(sprite.name + ' x: ' + sprite.x.toFixed(2) + ' dx: ' + sprite.body._dx.toFixed(2), 16, 500); + // game.debug.text(sprite.name + ' y: ' + sprite.y.toFixed(2) + ' dy: ' + sprite.body._dy.toFixed(2), 16, 520); } if (sprite2) { - // game.debug.renderBodyInfo(sprite2, 16, 190); - // game.debug.renderText(sprite2.name + ' x: ' + sprite2.x, 400, 500); + // game.debug.bodyInfo(sprite2, 16, 190); + // game.debug.text(sprite2.name + ' x: ' + sprite2.x, 400, 500); } } diff --git a/examples/wip/misc/acceleration.js b/examples/wip/misc/acceleration.js index 5188e556..8673ae87 100644 --- a/examples/wip/misc/acceleration.js +++ b/examples/wip/misc/acceleration.js @@ -94,7 +94,7 @@ function update() { function render() { - // game.debug.renderSpriteInfo(car, 32, 32); - game.debug.renderBodyInfo(car, 16, 24); + // game.debug.spriteInfo(car, 32, 32); + game.debug.bodyInfo(car, 16, 24); } diff --git a/examples/wip/misc/audio loop.js b/examples/wip/misc/audio loop.js index 858eb092..bf012041 100644 --- a/examples/wip/misc/audio loop.js +++ b/examples/wip/misc/audio loop.js @@ -41,6 +41,6 @@ function update() { function render() { - game.debug.renderSoundInfo(music, 32, 32); + game.debug.soundInfo(music, 32, 32); } diff --git a/examples/wip/misc/blocked.js b/examples/wip/misc/blocked.js index 22107b80..45192a2d 100644 --- a/examples/wip/misc/blocked.js +++ b/examples/wip/misc/blocked.js @@ -270,12 +270,12 @@ function render() { if (sprite) { - game.debug.renderBodyInfo(sprite, 16, 24); + game.debug.bodyInfo(sprite, 16, 24); } if (sprite2) { - game.debug.renderBodyInfo(sprite2, 16, 190); + game.debug.bodyInfo(sprite2, 16, 190); } } diff --git a/examples/wip/misc/body angle.js b/examples/wip/misc/body angle.js index 3a955d2d..0af8b8e0 100644 --- a/examples/wip/misc/body angle.js +++ b/examples/wip/misc/body angle.js @@ -45,6 +45,6 @@ function update() { function render() { - game.debug.renderBodyInfo(sprite, 16, 24); + game.debug.bodyInfo(sprite, 16, 24); } diff --git a/examples/wip/misc/body group.js b/examples/wip/misc/body group.js index 946b21b2..f56f5459 100644 --- a/examples/wip/misc/body group.js +++ b/examples/wip/misc/body group.js @@ -328,9 +328,9 @@ function render() { for (var i = 0; i < aliens._container.children.length; i++) { - // game.debug.renderPhysicsBody(aliens._container.children[i].body); + // game.debug.physicsBody(aliens._container.children[i].body); } - game.debug.renderPhysicsBody(bob.body); + game.debug.physicsBody(bob.body); } \ No newline at end of file diff --git a/examples/wip/misc/body scale.js b/examples/wip/misc/body scale.js index c40a8c56..73c71650 100644 --- a/examples/wip/misc/body scale.js +++ b/examples/wip/misc/body scale.js @@ -42,7 +42,7 @@ function update() { function render() { - game.debug.renderPolygon(sprite.body.polygons, 'rgb(255,0,0)'); - game.debug.renderPolygon(sprite2.body.polygons, 'rgb(255,0,0)'); + game.debug.polygon(sprite.body.polygons, 'rgb(255,0,0)'); + game.debug.polygon(sprite2.body.polygons, 'rgb(255,0,0)'); } diff --git a/examples/wip/misc/body test.js b/examples/wip/misc/body test.js index a99df386..e9a1522d 100644 --- a/examples/wip/misc/body test.js +++ b/examples/wip/misc/body test.js @@ -66,12 +66,11 @@ function update() { function render() { - game.debug.renderWorldTransformInfo(dropper, 32, 32); - game.debug.renderText(dropper.position.x, 200, 32); - game.debug.renderText(dropper.position.y, 260, 32); + game.debug.text(dropper.position.x, 200, 32); + game.debug.text(dropper.position.y, 260, 32); - game.debug.renderRectangle(atari.body, 'rgba(255,0,0,0.3)'); - game.debug.renderRectangle(coke.body, 'rgba(255,0,0,0.3)'); - game.debug.renderRectangle(dropper.body, 'rgba(0,255,0,0.3)'); + game.debug.geom(atari.body, 'rgba(255,0,0,0.3)'); + game.debug.geom(coke.body, 'rgba(255,0,0,0.3)'); + game.debug.geom(dropper.body, 'rgba(0,255,0,0.3)'); } diff --git a/examples/wip/misc/button scale.js b/examples/wip/misc/button scale.js index 45d791b3..7e35e4c6 100644 --- a/examples/wip/misc/button scale.js +++ b/examples/wip/misc/button scale.js @@ -97,19 +97,18 @@ function changeSky (button) { function render () { - game.debug.renderSpriteCorners(button1, false, true); - game.debug.renderSpriteCorners(button2, false, true); - game.debug.renderSpriteCorners(button3, false, true); - game.debug.renderSpriteCorners(button4, false, true); - game.debug.renderSpriteCorners(button5, false, true); - game.debug.renderSpriteCorners(button6, false, true); + // game.debug.spriteCorners(button1, false, true); + // game.debug.spriteCorners(button2, false, true); + // game.debug.spriteCorners(button3, false, true); + // game.debug.spriteCorners(button4, false, true); + // game.debug.spriteCorners(button5, false, true); + // game.debug.spriteCorners(button6, false, true); - // game.debug.renderWorldTransformInfo(button1, 32, 132); - // game.debug.renderText('sx: ' + button3.scale.x + ' sy: ' + button3.scale.y + ' w: ' + button3.width + ' cw: ' + button3._cache.width, 32, 20); - // game.debug.renderText('ox: ' + game.stage.offset.x + ' oy: ' + game.stage.offset.y, 32, 20); - // game.debug.renderPoint(button3.input._tempPoint); - // game.debug.renderPoint(button6.input._tempPoint); + // game.debug.text('sx: ' + button3.scale.x + ' sy: ' + button3.scale.y + ' w: ' + button3.width + ' cw: ' + button3._cache.width, 32, 20); + // game.debug.text('ox: ' + game.stage.offset.x + ' oy: ' + game.stage.offset.y, 32, 20); + // game.debug.point(button3.input._tempPoint); + // game.debug.point(button6.input._tempPoint); - game.debug.renderInputInfo(32, 32); + game.debug.inputInfo(32, 32); } diff --git a/examples/wip/misc/button size.js b/examples/wip/misc/button size.js index 365e6184..7199289b 100644 --- a/examples/wip/misc/button size.js +++ b/examples/wip/misc/button size.js @@ -35,8 +35,8 @@ function actionOnClick () { function render () { - game.debug.renderSpriteCorners(button); + game.debug.spriteCorners(button); - game.debug.renderPoint(button.input._tempPoint); + game.debug.point(button.input._tempPoint); } diff --git a/examples/wip/misc/circlebox.js b/examples/wip/misc/circlebox.js index 7291d406..6a22acde 100644 --- a/examples/wip/misc/circlebox.js +++ b/examples/wip/misc/circlebox.js @@ -61,10 +61,10 @@ function processCallback(a, b) { function render() { - game.debug.renderText(Phaser.Circle.intersectsRectangle(circle, platform.body), 32, 32); - game.debug.renderText(ball.body.velocity.y, 32, 64); - // game.debug.renderText(ball.body.overlapY, 64, 64); - game.debug.renderCircle(circle); - game.debug.renderRectangle(platform.body); + game.debug.text(Phaser.Circle.intersectsRectangle(circle, platform.body), 32, 32); + game.debug.text(ball.body.velocity.y, 32, 64); + // game.debug.text(ball.body.overlapY, 64, 64); + game.debug.circle(circle); + game.debug.geom(platform.body); } diff --git a/examples/wip/misc/commando.js b/examples/wip/misc/commando.js index 2a3f40e1..3c18aecf 100644 --- a/examples/wip/misc/commando.js +++ b/examples/wip/misc/commando.js @@ -125,13 +125,13 @@ function update() { function render() { - // game.debug.renderSpriteBody(sprite); - // game.debug.renderSpriteBounds(sprite); + // game.debug.spriteBody(sprite); + // game.debug.spriteBounds(sprite); - // game.debug.renderText(sprite.x, 32, 32); - // game.debug.renderText(sprite.y, 32, 48); + // game.debug.text(sprite.x, 32, 32); + // game.debug.text(sprite.y, 32, 48); - // game.debug.renderText(layer.scrollX, 32, 32); - // game.debug.renderText(layer.scrollY, 32, 48); + // game.debug.text(layer.scrollX, 32, 32); + // game.debug.text(layer.scrollY, 32, 48); } \ No newline at end of file diff --git a/examples/wip/misc/cursor.js b/examples/wip/misc/cursor.js index 73b3f79a..7c30443f 100644 --- a/examples/wip/misc/cursor.js +++ b/examples/wip/misc/cursor.js @@ -48,8 +48,8 @@ function update() { function render() { - game.debug.renderText(group.cursor.name, 32, 32); + game.debug.text(group.cursor.name, 32, 32); - // game.debug.renderInputInfo(32, 32); + // game.debug.inputInfo(32, 32); } \ No newline at end of file diff --git a/examples/wip/misc/fixdrag.js b/examples/wip/misc/fixdrag.js index 4ec838a7..e8baa82c 100644 --- a/examples/wip/misc/fixdrag.js +++ b/examples/wip/misc/fixdrag.js @@ -65,8 +65,8 @@ function update() { function render() { - game.debug.renderText(sprite.cameraOffset.x, 32, 32); - game.debug.renderText(sprite.cameraOffset.y, 32, 64); - game.debug.renderPointer(game.input.activePointer); + game.debug.text(sprite.cameraOffset.x, 32, 32); + game.debug.text(sprite.cameraOffset.y, 32, 64); + game.debug.pointer(game.input.activePointer); } diff --git a/examples/wip/misc/gravity.js b/examples/wip/misc/gravity.js index 7906e98f..1268c234 100644 --- a/examples/wip/misc/gravity.js +++ b/examples/wip/misc/gravity.js @@ -35,5 +35,5 @@ function update() { } function render() { - game.debug.renderBodyInfo(sprite,30,32); + game.debug.bodyInfo(sprite,30,32); } \ No newline at end of file diff --git a/examples/wip/misc/group destroy.js b/examples/wip/misc/group destroy.js index 54ac0d4c..cc55ff8c 100644 --- a/examples/wip/misc/group destroy.js +++ b/examples/wip/misc/group destroy.js @@ -49,6 +49,6 @@ function nuke() { function render() { - game.debug.renderText('Click to nuke', 32, 32); + game.debug.text('Click to nuke', 32, 32); } \ No newline at end of file diff --git a/examples/wip/misc/group offset.js b/examples/wip/misc/group offset.js index 02e59bff..26f42e72 100644 --- a/examples/wip/misc/group offset.js +++ b/examples/wip/misc/group offset.js @@ -33,6 +33,6 @@ function create() { function render() { - game.debug.renderText('sx: ' + sprite.x + ' wx: ' + sprite.world.x, 32, 32); + game.debug.text('sx: ' + sprite.x + ' wx: ' + sprite.world.x, 32, 32); } \ No newline at end of file diff --git a/examples/wip/misc/jitter.js b/examples/wip/misc/jitter.js index 67ad6dea..e569697d 100644 --- a/examples/wip/misc/jitter.js +++ b/examples/wip/misc/jitter.js @@ -318,23 +318,23 @@ function render() { if (sprite) { - game.debug.renderBodyInfo(sprite, 16, 24); - game.debug.renderBodyInfo(sprite2, 16, 240); + game.debug.bodyInfo(sprite, 16, 24); + game.debug.bodyInfo(sprite2, 16, 240); } if (sprite) { - game.debug.renderPhysicsBody(sprite.body); + game.debug.physicsBody(sprite.body); } if (sprite2) { - game.debug.renderPhysicsBody(sprite2.body); + game.debug.physicsBody(sprite2.body); } if (sprite3) { - game.debug.renderPhysicsBody(sprite3.body); + game.debug.physicsBody(sprite3.body); } } diff --git a/examples/wip/misc/land.js b/examples/wip/misc/land.js index 87cfe25c..aff489c1 100644 --- a/examples/wip/misc/land.js +++ b/examples/wip/misc/land.js @@ -84,24 +84,24 @@ function update() { function render() { - game.debug.renderPolygon(land.body.polygons); + game.debug.polygon(land.body.polygons); if (sprite) { - game.debug.renderBodyInfo(sprite, 16, 24); + game.debug.bodyInfo(sprite, 16, 24); } if (sprite) { - game.debug.renderPolygon(sprite.body.polygons); + game.debug.polygon(sprite.body.polygons); } if (sprite2) { - game.debug.renderPolygon(sprite2.body.polygons); + game.debug.polygon(sprite2.body.polygons); } - // game.debug.renderRectangle(land.body); + // game.debug.geom(land.body); } diff --git a/examples/wip/misc/line intersection.js b/examples/wip/misc/line intersection.js index 5efe8f0c..13e589a7 100644 --- a/examples/wip/misc/line intersection.js +++ b/examples/wip/misc/line intersection.js @@ -138,11 +138,11 @@ function update() { function render() { - game.debug.renderLine(line1, c); - game.debug.renderLine(line2, c); + game.debug.line(line1, c); + game.debug.line(line2, c); - game.debug.renderLineInfo(line1, 32, 32); - game.debug.renderLineInfo(line2, 32, 100); + game.debug.lineInfo(line1, 32, 32); + game.debug.lineInfo(line2, 32, 100); if (p) { diff --git a/examples/wip/misc/line polygon.js b/examples/wip/misc/line polygon.js index 6941b7ff..9467cab3 100644 --- a/examples/wip/misc/line polygon.js +++ b/examples/wip/misc/line polygon.js @@ -143,14 +143,14 @@ function update() { function render() { - game.debug.renderLine(line, c); - game.debug.renderLineInfo(line, 32, 32); + game.debug.line(line, c); + game.debug.lineInfo(line, 32, 32); - game.debug.renderPolygon(polygon); + game.debug.polygon(polygon); if (result.intersects) { - game.debug.renderText(result.intersects, 32, 100); + game.debug.text(result.intersects, 32, 100); game.context.fillStyle = 'rgb(255,0,255)'; diff --git a/examples/wip/misc/mod.js b/examples/wip/misc/mod.js index 0fc25ae0..fd534bb5 100644 --- a/examples/wip/misc/mod.js +++ b/examples/wip/misc/mod.js @@ -149,26 +149,26 @@ volume: 64 function render() { - game.debug.renderText('Sample ' + sample1 + ' : ' + sampleName1, 16, 32); - game.debug.renderText('Sample ' + sample2 + ' : ' + sampleName2, 16, 64); - game.debug.renderText('Sample ' + sample3 + ' : ' + sampleName3, 16, 96); - game.debug.renderText('Sample ' + sample4 + ' : ' + sampleName4, 16, 128); + game.debug.text('Sample ' + sample1 + ' : ' + sampleName1, 16, 32); + game.debug.text('Sample ' + sample2 + ' : ' + sampleName2, 16, 64); + game.debug.text('Sample ' + sample3 + ' : ' + sampleName3, 16, 96); + game.debug.text('Sample ' + sample4 + ' : ' + sampleName4, 16, 128); - game.debug.renderText('Position: ' + module.position, 16, 160); - game.debug.renderText('Pattern: ' + module.row, 16, 192); - game.debug.renderText('BPM: ' + module.bpm, 16, 224); - game.debug.renderText('Speed: ' + module.speed, 16, 256); - game.debug.renderText('Name: ' + module.title, 16, 288); - game.debug.renderText('Author: ' + module.signature, 16, 320); + game.debug.text('Position: ' + module.position, 16, 160); + game.debug.text('Pattern: ' + module.row, 16, 192); + game.debug.text('BPM: ' + module.bpm, 16, 224); + game.debug.text('Speed: ' + module.speed, 16, 256); + game.debug.text('Name: ' + module.title, 16, 288); + game.debug.text('Author: ' + module.signature, 16, 320); - game.debug.renderText('vu1: ' + module.vu[0], 16, 352); - game.debug.renderText('vu2: ' + module.vu[1], 16, 384); - game.debug.renderText('vu3: ' + module.vu[2], 16, 416); - game.debug.renderText('vu4: ' + module.vu[3], 16, 448); + game.debug.text('vu1: ' + module.vu[0], 16, 352); + game.debug.text('vu2: ' + module.vu[1], 16, 384); + game.debug.text('vu3: ' + module.vu[2], 16, 416); + game.debug.text('vu4: ' + module.vu[3], 16, 448); - game.debug.renderRectangle(r1); - game.debug.renderRectangle(r2); - game.debug.renderRectangle(r3); - game.debug.renderRectangle(r4); + game.debug.geom(r1); + game.debug.geom(r2); + game.debug.geom(r3); + game.debug.geom(r4); } diff --git a/examples/wip/misc/mouse scale.js b/examples/wip/misc/mouse scale.js index 5fc9ed18..cc0fbfa7 100644 --- a/examples/wip/misc/mouse scale.js +++ b/examples/wip/misc/mouse scale.js @@ -63,6 +63,6 @@ function update() { function render() { - game.debug.renderInputInfo(32, 32); + game.debug.inputInfo(32, 32); } \ No newline at end of file diff --git a/examples/wip/misc/offset.js b/examples/wip/misc/offset.js index 28c56259..f64dcfe2 100644 --- a/examples/wip/misc/offset.js +++ b/examples/wip/misc/offset.js @@ -27,7 +27,7 @@ function update() { function render() { - game.debug.renderSpriteCorners(sprite1); + game.debug.spriteCorners(sprite1); } diff --git a/examples/wip/misc/one way collision.js b/examples/wip/misc/one way collision.js index 61a4cc6d..c2cb73c3 100644 --- a/examples/wip/misc/one way collision.js +++ b/examples/wip/misc/one way collision.js @@ -304,22 +304,22 @@ function render() { if (sprite) { - game.debug.renderBodyInfo(sprite, 16, 24); + game.debug.bodyInfo(sprite, 16, 24); } if (sprite) { - game.debug.renderPhysicsBody(sprite.body); + game.debug.physicsBody(sprite.body); } if (sprite2) { - game.debug.renderPhysicsBody(sprite2.body); + game.debug.physicsBody(sprite2.body); } if (sprite3) { - game.debug.renderPhysicsBody(sprite3.body); + game.debug.physicsBody(sprite3.body); } } diff --git a/examples/wip/misc/pausetime.js b/examples/wip/misc/pausetime.js index 117447a2..bf9c6c60 100644 --- a/examples/wip/misc/pausetime.js +++ b/examples/wip/misc/pausetime.js @@ -23,7 +23,7 @@ function onGameResume() { function render() { - game.debug.renderText('now: ' + game.time.now, 32, 32); - game.debug.renderText('paused: ' + game.paused, 32, 64); + game.debug.text('now: ' + game.time.now, 32, 32); + game.debug.text('paused: ' + game.paused, 32, 64); } diff --git a/examples/wip/misc/physics-motion.js b/examples/wip/misc/physics-motion.js index d12d79b5..7d4b2b0d 100644 --- a/examples/wip/misc/physics-motion.js +++ b/examples/wip/misc/physics-motion.js @@ -58,6 +58,6 @@ function update() { function render() { - game.debug.renderBodyInfo(sprite, 16, 24); + game.debug.bodyInfo(sprite, 16, 24); } diff --git a/examples/wip/misc/pivot.js b/examples/wip/misc/pivot.js index d0e27548..566fa3a3 100644 --- a/examples/wip/misc/pivot.js +++ b/examples/wip/misc/pivot.js @@ -36,11 +36,11 @@ function update() { function render() { - game.debug.renderPixel(sprite1.pivot.x, sprite1.pivot.y); + game.debug.pixel(sprite1.pivot.x, sprite1.pivot.y); - // game.debug.renderSpriteInfo(sprite1, 100, 400); - // game.debug.renderSpriteBounds(sprite1); - // game.debug.renderSpriteInfo(sprite2, 100, 100); - // game.debug.renderSpriteBounds(sprite2); + // game.debug.spriteInfo(sprite1, 100, 400); + // game.debug.spriteBounds(sprite1); + // game.debug.spriteInfo(sprite2, 100, 100); + // game.debug.spriteBounds(sprite2); } diff --git a/examples/wip/misc/platform.js b/examples/wip/misc/platform.js index f58a672f..2a541a85 100644 --- a/examples/wip/misc/platform.js +++ b/examples/wip/misc/platform.js @@ -97,14 +97,14 @@ function update() { function render() { - game.debug.renderBodyInfo(sprite2, 32, 32); - game.debug.renderPhysicsBody(sprite2.body); + game.debug.bodyInfo(sprite2, 32, 32); + game.debug.physicsBody(sprite2.body); - // game.debug.renderText(sprite2.body.left, 32, 30); - // game.debug.renderText(sprite2.body.right, 32, 50); - // game.debug.renderText(sprite2.body.top, 32, 70); - // game.debug.renderText(sprite2.body.bottom, 32, 90); + // game.debug.text(sprite2.body.left, 32, 30); + // game.debug.text(sprite2.body.right, 32, 50); + // game.debug.text(sprite2.body.top, 32, 70); + // game.debug.text(sprite2.body.bottom, 32, 90); // for (var i = 0; i < balls._container.length; i++) @@ -114,8 +114,8 @@ function render() { // if (sprite) // { - // // game.debug.renderBodyInfo(sprite, 20, 30); - // game.debug.renderBodyInfo(sprite2, 20, 230); + // // game.debug.bodyInfo(sprite, 20, 30); + // game.debug.bodyInfo(sprite2, 20, 230); // } } \ No newline at end of file diff --git a/examples/wip/misc/rabbit map.js b/examples/wip/misc/rabbit map.js index 0c73507e..605ed899 100644 --- a/examples/wip/misc/rabbit map.js +++ b/examples/wip/misc/rabbit map.js @@ -230,22 +230,22 @@ function update() { function render() { - // game.debug.renderSpriteBody(sprite); - // game.debug.renderSpriteBounds(sprite); + // game.debug.spriteBody(sprite); + // game.debug.spriteBounds(sprite); - game.debug.renderPhysicsBody(sprite.body); - game.debug.renderBodyInfo(sprite, 32, 32); + game.debug.physicsBody(sprite.body); + game.debug.bodyInfo(sprite, 32, 32); - // game.debug.renderLine(marker, 'rgba(255,255,255,0.5)'); + // game.debug.line(marker, 'rgba(255,255,255,0.5)'); - // game.debug.renderText(sprite.deltaX, 32, 32); - // game.debug.renderText(sprite.deltaY, 32, 48); - // game.debug.renderText(sprite.body.deltaX(), 232, 32); - // game.debug.renderText(sprite.body.deltaY(), 232, 48); + // game.debug.text(sprite.deltaX, 32, 32); + // game.debug.text(sprite.deltaY, 32, 48); + // game.debug.text(sprite.body.deltaX(), 232, 32); + // game.debug.text(sprite.body.deltaY(), 232, 48); - // game.debug.renderText(sprite.body.left, 32, 32); - // game.debug.renderText(sprite.body.top, 32, 48); + // game.debug.text(sprite.body.left, 32, 32); + // game.debug.text(sprite.body.top, 32, 48); - // game.debug.renderSpriteCoords(sprite, 32, 320); + // game.debug.spriteCoords(sprite, 32, 320); } \ No newline at end of file diff --git a/examples/wip/misc/rect test.js b/examples/wip/misc/rect test.js index 23888889..56f16ff1 100644 --- a/examples/wip/misc/rect test.js +++ b/examples/wip/misc/rect test.js @@ -32,11 +32,11 @@ function tileIntersects (body, tile) { result = !(body.right < tile.x || body.bottom < tile.y || body.left > tile.right || body.top > tile.bottom); - // game.debug.renderText('intersects: ' + result, 32, 32); - // game.debug.renderText('test 1: ' + test1, 320, 60); - // game.debug.renderText('test 2: ' + test2, 320, 80); - // game.debug.renderText('test 3: ' + test3, 320, 100); - // game.debug.renderText('test 4: ' + test4, 320, 120); + // game.debug.text('intersects: ' + result, 32, 32); + // game.debug.text('test 1: ' + test1, 320, 60); + // game.debug.text('test 2: ' + test2, 320, 80); + // game.debug.text('test 3: ' + test3, 320, 100); + // game.debug.text('test 4: ' + test4, 320, 120); return result; diff --git a/examples/wip/misc/sat1.js b/examples/wip/misc/sat1.js index 803079d7..4e2b2777 100644 --- a/examples/wip/misc/sat1.js +++ b/examples/wip/misc/sat1.js @@ -170,15 +170,15 @@ function render() { if (sprite) { - // game.debug.renderBodyInfo(sprite, 16, 24); - game.debug.renderText(sprite.name + ' x: ' + sprite.x, 16, 500); - game.debug.renderText(sprite.name + ' world x: ' + sprite.world.x, 16, 520); + // game.debug.bodyInfo(sprite, 16, 24); + game.debug.text(sprite.name + ' x: ' + sprite.x, 16, 500); + game.debug.text(sprite.name + ' world x: ' + sprite.world.x, 16, 520); } if (sprite2) { - // game.debug.renderBodyInfo(sprite2, 16, 190); - game.debug.renderText(sprite2.name + ' x: ' + sprite2.x, 400, 500); + // game.debug.bodyInfo(sprite2, 16, 190); + game.debug.text(sprite2.name + ' x: ' + sprite2.x, 400, 500); } } diff --git a/examples/wip/misc/snake2.js b/examples/wip/misc/snake2.js index c67cd7c3..d7e9b01f 100644 --- a/examples/wip/misc/snake2.js +++ b/examples/wip/misc/snake2.js @@ -158,11 +158,11 @@ function eatFruit(snakeHead, fruit) { function render() { - //game.debug.renderCircle(node); + //game.debug.circle(node); for (var i = 0; i <= numSnakeSections - 1; i++) { - //game.debug.renderCircle(snakeCircles[i], 'rgb(255,0,0)'); + //game.debug.circle(snakeCircles[i], 'rgb(255,0,0)'); } diff --git a/examples/wip/misc/sprite vs sprite.js b/examples/wip/misc/sprite vs sprite.js index 6ecd9ed3..9213c209 100644 --- a/examples/wip/misc/sprite vs sprite.js +++ b/examples/wip/misc/sprite vs sprite.js @@ -88,8 +88,8 @@ function update() { function render() { - game.debug.renderPhysicsBody(sprite1.body); - game.debug.renderPhysicsBody(sprite2.body); + game.debug.physicsBody(sprite1.body); + game.debug.physicsBody(sprite2.body); } diff --git a/examples/wip/misc/struck.js b/examples/wip/misc/struck.js index 6943e9e0..09828d92 100644 --- a/examples/wip/misc/struck.js +++ b/examples/wip/misc/struck.js @@ -119,7 +119,7 @@ function update() { function render () { - game.debug.renderCameraInfo(game.camera, 32, 32); - game.debug.renderSpriteBody(player); + game.debug.cameraInfo(game.camera, 32, 32); + game.debug.spriteBody(player); } diff --git a/examples/wip/misc/swap.js b/examples/wip/misc/swap.js index cc330394..294b9a60 100644 --- a/examples/wip/misc/swap.js +++ b/examples/wip/misc/swap.js @@ -84,6 +84,6 @@ function update() { function render() { - game.debug.renderText('Swap: ' + swapCount, 32, 32); + game.debug.text('Swap: ' + swapCount, 32, 32); } \ No newline at end of file diff --git a/examples/wip/misc/text on top.js b/examples/wip/misc/text on top.js index 8acd3b7b..b646b373 100644 --- a/examples/wip/misc/text on top.js +++ b/examples/wip/misc/text on top.js @@ -56,6 +56,6 @@ function update() { function render() { - // game.debug.renderCameraInfo(game.camera, 32, 32); + // game.debug.cameraInfo(game.camera, 32, 32); } diff --git a/examples/wip/misc/tilemap poly.js b/examples/wip/misc/tilemap poly.js index 99f4a442..834ffee8 100644 --- a/examples/wip/misc/tilemap poly.js +++ b/examples/wip/misc/tilemap poly.js @@ -89,17 +89,17 @@ function render() { if (sprite.x === 100 || sprite.x === 400) { - // game.debug.renderText('Click sprite to tween', 32, 32); + // game.debug.text('Click sprite to tween', 32, 32); } - // game.debug.renderText('x: ' + arrowStart.x, arrowStart.x, arrowStart.y - 4); - // game.debug.renderText('x: ' + arrowEnd.x, arrowEnd.x, arrowEnd.y - 4); + // game.debug.text('x: ' + arrowStart.x, arrowStart.x, arrowStart.y - 4); + // game.debug.text('x: ' + arrowEnd.x, arrowEnd.x, arrowEnd.y - 4); - game.debug.renderText('sprite.x: ' + sprite.x + ' deltaX: ' + sprite.deltaX, 32, 32); - game.debug.renderText('sprite.y: ' + sprite.y + ' deltaY: ' + sprite.deltaY, 32, 48); + game.debug.text('sprite.x: ' + sprite.x + ' deltaX: ' + sprite.deltaX, 32, 32); + game.debug.text('sprite.y: ' + sprite.y + ' deltaY: ' + sprite.deltaY, 32, 48); - game.debug.renderPhysicsBody(sprite.body); + game.debug.physicsBody(sprite.body); - game.debug.renderPoint(sprite.center); + game.debug.point(sprite.center); } diff --git a/examples/wip/misc/tilemap.js b/examples/wip/misc/tilemap.js index 68f9bd6f..7db20648 100644 --- a/examples/wip/misc/tilemap.js +++ b/examples/wip/misc/tilemap.js @@ -200,18 +200,18 @@ function update() { function render() { - // game.debug.renderSpriteBody(sprite); - // game.debug.renderSpriteBounds(sprite); - game.debug.renderPhysicsBody(sprite.body); + // game.debug.spriteBody(sprite); + // game.debug.spriteBounds(sprite); + game.debug.physicsBody(sprite.body); - // game.debug.renderText(sprite.deltaX, 32, 32); - // game.debug.renderText(sprite.deltaY, 32, 48); - // game.debug.renderText(sprite.body.deltaX(), 232, 32); - // game.debug.renderText(sprite.body.deltaY(), 232, 48); + // game.debug.text(sprite.deltaX, 32, 32); + // game.debug.text(sprite.deltaY, 32, 48); + // game.debug.text(sprite.body.deltaX(), 232, 32); + // game.debug.text(sprite.body.deltaY(), 232, 48); - // game.debug.renderText(sprite.body.left, 32, 32); - // game.debug.renderText(sprite.body.right, 32, 48); + // game.debug.text(sprite.body.left, 32, 32); + // game.debug.text(sprite.body.right, 32, 48); - game.debug.renderSpriteCoords(sprite, 32, 32); + game.debug.spriteCoords(sprite, 32, 32); } \ No newline at end of file diff --git a/examples/wip/misc/timer simple.js b/examples/wip/misc/timer simple.js index bee855ad..d37d54c7 100644 --- a/examples/wip/misc/timer simple.js +++ b/examples/wip/misc/timer simple.js @@ -47,7 +47,7 @@ function killThem() { function render() { - game.debug.renderText("Time until event: " + t.duration.toFixed(0), 32, 32); - game.debug.renderText("Next tick: " + t.next.toFixed(0), 32, 64); + game.debug.text("Time until event: " + t.duration.toFixed(0), 32, 32); + game.debug.text("Next tick: " + t.next.toFixed(0), 32, 64); } diff --git a/examples/wip/misc/tween-relative.js b/examples/wip/misc/tween-relative.js index 7d0b8f2b..4a1aace8 100644 --- a/examples/wip/misc/tween-relative.js +++ b/examples/wip/misc/tween-relative.js @@ -86,17 +86,17 @@ function render() { if (sprite.x === 100 || sprite.x === 400) { - // game.debug.renderText('Click sprite to tween', 32, 32); + // game.debug.text('Click sprite to tween', 32, 32); } - // game.debug.renderText('x: ' + arrowStart.x, arrowStart.x, arrowStart.y - 4); - // game.debug.renderText('x: ' + arrowEnd.x, arrowEnd.x, arrowEnd.y - 4); + // game.debug.text('x: ' + arrowStart.x, arrowStart.x, arrowStart.y - 4); + // game.debug.text('x: ' + arrowEnd.x, arrowEnd.x, arrowEnd.y - 4); - game.debug.renderText('sprite.x: ' + sprite.x + ' deltaX: ' + sprite.deltaX, 32, 32); - game.debug.renderText('sprite.y: ' + sprite.y + ' deltaY: ' + sprite.deltaY, 32, 48); + game.debug.text('sprite.x: ' + sprite.x + ' deltaX: ' + sprite.deltaX, 32, 32); + game.debug.text('sprite.y: ' + sprite.y + ' deltaY: ' + sprite.deltaY, 32, 48); - game.debug.renderPhysicsBody(sprite.body); + game.debug.physicsBody(sprite.body); - game.debug.renderPoint(sprite.center); + game.debug.point(sprite.center); } diff --git a/examples/wip/misc/wabbits.js b/examples/wip/misc/wabbits.js index 38be965d..c7ba1932 100644 --- a/examples/wip/misc/wabbits.js +++ b/examples/wip/misc/wabbits.js @@ -150,14 +150,14 @@ function update() { function render() { - // game.debug.renderSpriteCollision(ball, 32, 32); + // game.debug.spriteCollision(ball, 32, 32); // var graphics = game.add.graphics(0, 0); // game.context.fillStyle = 'rgba(0,0,255,0.5)'; // game.context.fillRect(770, 400, 30, 200); - // game.debug.renderText("Drag the ball to launch", 32, 32); - // game.debug.renderText("Try to get all 5 wabbits in the blue area with the least number of shots", 32, 64); - // game.debug.renderText("Shot Count: " + shotCount, 32, 96); - // game.debug.renderText("Wabbits Left: " + wabbitCount, 32, 128); + // game.debug.text("Drag the ball to launch", 32, 32); + // game.debug.text("Try to get all 5 wabbits in the blue area with the least number of shots", 32, 64); + // game.debug.text("Shot Count: " + shotCount, 32, 96); + // game.debug.text("Wabbits Left: " + wabbitCount, 32, 128); } diff --git a/examples/wip/misc/wip2.js b/examples/wip/misc/wip2.js index 1e9e7400..dc1ec2ea 100644 --- a/examples/wip/misc/wip2.js +++ b/examples/wip/misc/wip2.js @@ -137,8 +137,8 @@ function render() { layer.render(); - game.debug.renderSpriteInfo(sprite, 32, 450); - // game.debug.renderCameraInfo(game.camera, 32, 32); + game.debug.spriteInfo(sprite, 32, 450); + // game.debug.cameraInfo(game.camera, 32, 32); /* game.context.save(); @@ -184,6 +184,6 @@ function render() { game.context.restore(); */ - // game.debug.renderRectangle(sprite.body.hullX); + // game.debug.geom(sprite.body.hullX); } diff --git a/examples/wip/misc/wip3.js b/examples/wip/misc/wip3.js index 663964cc..0cba994e 100644 --- a/examples/wip/misc/wip3.js +++ b/examples/wip/misc/wip3.js @@ -134,10 +134,10 @@ function render() { layer.render(); - game.debug.renderSpriteBody(sprite); + game.debug.spriteBody(sprite); - game.debug.renderSpriteInfo(sprite, 32, 450); - // game.debug.renderCameraInfo(game.camera, 32, 32); + game.debug.spriteInfo(sprite, 32, 450); + // game.debug.cameraInfo(game.camera, 32, 32); /* game.context.save(); @@ -183,6 +183,6 @@ function render() { game.context.restore(); */ - // game.debug.renderRectangle(sprite.body.hullX); + // game.debug.geom(sprite.body.hullX); } diff --git a/examples/wip/misc/wip4.js b/examples/wip/misc/wip4.js index 6810c596..11c22847 100644 --- a/examples/wip/misc/wip4.js +++ b/examples/wip/misc/wip4.js @@ -142,11 +142,11 @@ function render() { layer.render(); - // game.debug.renderSpriteBody(sprite); + // game.debug.spriteBody(sprite); - // game.debug.renderSpriteInfo(sprite, 32, 450); + // game.debug.spriteInfo(sprite, 32, 450); - // game.debug.renderCameraInfo(game.camera, 32, 32); + // game.debug.cameraInfo(game.camera, 32, 32); /* game.context.save(); @@ -192,6 +192,6 @@ function render() { game.context.restore(); */ - // game.debug.renderRectangle(game.camera.deadzone, 'rgba(0,200,0,0.5)'); + // game.debug.geom(game.camera.deadzone, 'rgba(0,200,0,0.5)'); } diff --git a/examples/wip/misc/world.js b/examples/wip/misc/world.js index ae62a499..95bbd0b6 100644 --- a/examples/wip/misc/world.js +++ b/examples/wip/misc/world.js @@ -33,7 +33,7 @@ function update() { function render() { - game.debug.renderBodyInfo(sprite, 32, 32); - game.debug.renderPhysicsBody(sprite.body); + game.debug.bodyInfo(sprite, 32, 32); + game.debug.physicsBody(sprite.body); } diff --git a/examples/wip/no-scale.js b/examples/wip/no-scale.js index 037d40f3..8bddac5b 100644 --- a/examples/wip/no-scale.js +++ b/examples/wip/no-scale.js @@ -54,6 +54,6 @@ function update() { function render() { - // game.debug.renderPointer(game.input.activePointer); + // game.debug.pointer(game.input.activePointer); } \ No newline at end of file diff --git a/examples/wip/p21.js b/examples/wip/p21.js index b2debdef..62c75448 100644 --- a/examples/wip/p21.js +++ b/examples/wip/p21.js @@ -79,9 +79,9 @@ function update() { function render() { - // game.debug.renderText('x: ' + p2px(boxBody.position[0]), 32, 32); - // game.debug.renderText('y: ' + p2px(boxBody.position[1]), 32, 64); - // game.debug.renderText('r: ' + boxBody.angle, 32, 96); + // game.debug.text('x: ' + p2px(boxBody.position[0]), 32, 32); + // game.debug.text('y: ' + p2px(boxBody.position[1]), 32, 64); + // game.debug.text('r: ' + boxBody.angle, 32, 96); // drawbox(); diff --git a/examples/wip/p22.js b/examples/wip/p22.js index aebb0a5c..6e7600c0 100644 --- a/examples/wip/p22.js +++ b/examples/wip/p22.js @@ -70,12 +70,12 @@ function update() { function render() { - game.debug.renderText('x: ' + box2.body.velocity.x, 32, 32); - game.debug.renderText('y: ' + box2.body.velocity.y, 32, 64); + game.debug.text('x: ' + box2.body.velocity.x, 32, 32); + game.debug.text('y: ' + box2.body.velocity.y, 32, 64); - // game.debug.renderText('x: ' + p2px(boxBody.position[0]), 32, 32); - // game.debug.renderText('y: ' + p2px(boxBody.position[1]), 32, 64); - // game.debug.renderText('r: ' + boxBody.angle, 32, 96); + // game.debug.text('x: ' + p2px(boxBody.position[0]), 32, 32); + // game.debug.text('y: ' + p2px(boxBody.position[1]), 32, 64); + // game.debug.text('r: ' + boxBody.angle, 32, 96); // drawbox(); diff --git a/examples/wip/p23.js b/examples/wip/p23.js index 1eb264b7..534d9888 100644 --- a/examples/wip/p23.js +++ b/examples/wip/p23.js @@ -53,7 +53,7 @@ function update() { function render() { - game.debug.renderText('x: ' + box.body.velocity.x, 32, 32); - game.debug.renderText('y: ' + box.body.velocity.y, 32, 64); + game.debug.text('x: ' + box.body.velocity.x, 32, 32); + game.debug.text('y: ' + box.body.velocity.y, 32, 64); } diff --git a/examples/wip/p24.js b/examples/wip/p24.js index fe1e8b08..fa2adb29 100644 --- a/examples/wip/p24.js +++ b/examples/wip/p24.js @@ -71,12 +71,12 @@ function update() { function render() { - game.debug.renderText('x: ' + box2.body.velocity.x, 32, 32); - game.debug.renderText('y: ' + box2.body.velocity.y, 32, 64); + game.debug.text('x: ' + box2.body.velocity.x, 32, 32); + game.debug.text('y: ' + box2.body.velocity.y, 32, 64); - // game.debug.renderText('x: ' + p2px(boxBody.position[0]), 32, 32); - // game.debug.renderText('y: ' + p2px(boxBody.position[1]), 32, 64); - // game.debug.renderText('r: ' + boxBody.angle, 32, 96); + // game.debug.text('x: ' + p2px(boxBody.position[0]), 32, 32); + // game.debug.text('y: ' + p2px(boxBody.position[1]), 32, 64); + // game.debug.text('r: ' + boxBody.angle, 32, 96); // drawbox(); diff --git a/examples/wip/p25.js b/examples/wip/p25.js index 9cf55a09..b1a71b49 100644 --- a/examples/wip/p25.js +++ b/examples/wip/p25.js @@ -62,8 +62,8 @@ function update() { function render() { - game.debug.renderText('x: ' + ship.body.x, 32, 32); - game.debug.renderText('y: ' + ship.body.y, 32, 64); + game.debug.text('x: ' + ship.body.x, 32, 32); + game.debug.text('y: ' + ship.body.y, 32, 64); } diff --git a/examples/wip/p26.js b/examples/wip/p26.js index 1105cffc..02fd8011 100644 --- a/examples/wip/p26.js +++ b/examples/wip/p26.js @@ -79,7 +79,7 @@ function update() { function render() { - game.debug.renderText('x: ' + box.body.velocity.x, 32, 32); - game.debug.renderText('y: ' + box.body.velocity.y, 32, 64); + game.debug.text('x: ' + box.body.velocity.x, 32, 32); + game.debug.text('y: ' + box.body.velocity.y, 32, 64); } diff --git a/examples/wip/p27.js b/examples/wip/p27.js index 3a810eb2..f3524d91 100644 --- a/examples/wip/p27.js +++ b/examples/wip/p27.js @@ -90,9 +90,9 @@ function update() { function render() { - game.debug.renderPhysicsBody(box.body, 0); + game.debug.physicsBody(box.body, 0); - // game.debug.renderText(box.body., 32, 32); - // game.debug.renderText('y: ' + box.body.velocity.y, 32, 64); + // game.debug.text(box.body., 32, 32); + // game.debug.text('y: ' + box.body.velocity.y, 32, 64); } diff --git a/examples/wip/p28.js b/examples/wip/p28.js index 2d5f09db..d5957005 100644 --- a/examples/wip/p28.js +++ b/examples/wip/p28.js @@ -81,12 +81,12 @@ function update() { function render() { - game.debug.renderText('x: ' + box2.body.velocity.x, 32, 32); - game.debug.renderText('y: ' + box2.body.velocity.y, 32, 64); + game.debug.text('x: ' + box2.body.velocity.x, 32, 32); + game.debug.text('y: ' + box2.body.velocity.y, 32, 64); - // game.debug.renderText('x: ' + p2px(boxBody.position[0]), 32, 32); - // game.debug.renderText('y: ' + p2px(boxBody.position[1]), 32, 64); - // game.debug.renderText('r: ' + boxBody.angle, 32, 96); + // game.debug.text('x: ' + p2px(boxBody.position[0]), 32, 32); + // game.debug.text('y: ' + p2px(boxBody.position[1]), 32, 64); + // game.debug.text('r: ' + boxBody.angle, 32, 96); // drawbox(); diff --git a/examples/wip/pixi1.js b/examples/wip/pixi1.js index 626be83b..4771b35b 100644 --- a/examples/wip/pixi1.js +++ b/examples/wip/pixi1.js @@ -49,6 +49,6 @@ function update() { function render() { - // game.debug.renderText(sprite.position.y, 32, 32); + // game.debug.text(sprite.position.y, 32, 32); } diff --git a/examples/wip/pixi2.js b/examples/wip/pixi2.js index 0c7faa5d..d455a9da 100644 --- a/examples/wip/pixi2.js +++ b/examples/wip/pixi2.js @@ -84,5 +84,5 @@ function update() { } function render() { - game.debug.renderInputInfo(32, 32); + game.debug.inputInfo(32, 32); } diff --git a/examples/wip/platforms.js b/examples/wip/platforms.js index 099ed500..e7d4410d 100644 --- a/examples/wip/platforms.js +++ b/examples/wip/platforms.js @@ -151,8 +151,8 @@ function render () { // if (player.debug) // { - game.debug.renderPhysicsBody(player.body); - // game.debug.renderBodyInfo(player, 16, 24); + game.debug.physicsBody(player.body); + // game.debug.bodyInfo(player, 16, 24); // } } diff --git a/examples/wip/springs 1.js b/examples/wip/springs 1.js index a2c20224..f422f178 100644 --- a/examples/wip/springs 1.js +++ b/examples/wip/springs 1.js @@ -85,8 +85,8 @@ function update() { function render() { - // game.debug.renderText('x: ' + box2.body.velocity.x, 32, 32); - // game.debug.renderText('y: ' + box2.body.velocity.y, 32, 64); + // game.debug.text('x: ' + box2.body.velocity.x, 32, 32); + // game.debug.text('y: ' + box2.body.velocity.y, 32, 64); } diff --git a/examples/wip/tab swap.js b/examples/wip/tab swap.js index a8ecb503..e9f7c33e 100644 --- a/examples/wip/tab swap.js +++ b/examples/wip/tab swap.js @@ -85,13 +85,13 @@ function update() { function render() { - // game.debug.renderText(anim.frame + ' / 17', 32, 32); + // game.debug.text(anim.frame + ' / 17', 32, 32); for (var i = 0; i < s.length; i++) { - game.debug.renderText(s[i], 16, 160 + (16 * i)); + game.debug.text(s[i], 16, 160 + (16 * i)); } - game.debug.renderSoundInfo(music, 20, 32); + game.debug.soundInfo(music, 20, 32); } \ No newline at end of file diff --git a/examples/wip/text.js b/examples/wip/text.js index c5c80457..885d7bdf 100644 --- a/examples/wip/text.js +++ b/examples/wip/text.js @@ -77,7 +77,7 @@ function update() { function render() { - // game.debug.renderRectangle(b); - // game.debug.renderText(sprite.position.y, 32, 32); + // game.debug.geom(b); + // game.debug.text(sprite.position.y, 32, 32); } diff --git a/examples/wip/tilemap1.js b/examples/wip/tilemap1.js index fccd7f2c..ad30ab32 100644 --- a/examples/wip/tilemap1.js +++ b/examples/wip/tilemap1.js @@ -154,23 +154,23 @@ function update() { function render() { - // game.debug.renderCameraInfo(game.camera, 420, 320); + // game.debug.cameraInfo(game.camera, 420, 320); - // game.debug.renderText(box2.body.velocity.x, 32, 32); - // game.debug.renderText(box2.body.velocity.y, 32, 64); + // game.debug.text(box2.body.velocity.x, 32, 32); + // game.debug.text(box2.body.velocity.y, 32, 64); - // game.debug.renderText(b.body.velocity.x, 32, 32); - // game.debug.renderText(b.body.velocity.y, 32, 64); + // game.debug.text(b.body.velocity.x, 32, 32); + // game.debug.text(b.body.velocity.y, 32, 64); for (var i = 0, len = dump.length; i < len; i++) { - game.debug.renderPhysicsBody(dump[i]); + game.debug.physicsBody(dump[i]); } - // game.debug.renderPhysicsBody(dump[0]); - // game.debug.renderPhysicsBody(b); + // game.debug.physicsBody(dump[0]); + // game.debug.physicsBody(b); - // game.debug.renderPhysicsBody(ship.body); + // game.debug.physicsBody(ship.body); } diff --git a/examples/wip/tilemap2.js b/examples/wip/tilemap2.js index 11fd0d79..91a62fbd 100644 --- a/examples/wip/tilemap2.js +++ b/examples/wip/tilemap2.js @@ -78,9 +78,9 @@ function render() { // for (var i = 0, len = dump.length; i < len; i++) // { - // game.debug.renderPhysicsBody(dump[i]); + // game.debug.physicsBody(dump[i]); // } - game.debug.renderPhysicsBody(ship.body); + game.debug.physicsBody(ship.body); } diff --git a/examples/wip/tilesprite fixed to cam.js b/examples/wip/tilesprite fixed to cam.js index f69b43d9..df157af6 100644 --- a/examples/wip/tilesprite fixed to cam.js +++ b/examples/wip/tilesprite fixed to cam.js @@ -55,6 +55,6 @@ function update() { function render() { - // game.debug.renderText(sprite.frame, 32, 32); + // game.debug.text(sprite.frame, 32, 32); } diff --git a/examples/wip/tilesprite input.js b/examples/wip/tilesprite input.js index 94876e90..648b40a1 100644 --- a/examples/wip/tilesprite input.js +++ b/examples/wip/tilesprite input.js @@ -62,6 +62,6 @@ function update() { function render() { - // game.debug.renderText(sprite.frame, 32, 32); + // game.debug.text(sprite.frame, 32, 32); } diff --git a/examples/wip/tilesprite.js b/examples/wip/tilesprite.js index f4e5d227..377604ad 100644 --- a/examples/wip/tilesprite.js +++ b/examples/wip/tilesprite.js @@ -56,6 +56,6 @@ function update() { function render() { - game.debug.renderText(sprite.frame, 32, 32); + game.debug.text(sprite.frame, 32, 32); } diff --git a/examples/wip/tween swap.js b/examples/wip/tween swap.js index 6bf66563..3ece0b92 100644 --- a/examples/wip/tween swap.js +++ b/examples/wip/tween swap.js @@ -88,7 +88,7 @@ function render() { for (var i = 0; i < s.length; i++) { - game.debug.renderText(s[i], 16, 160 + (16 * i)); + game.debug.text(s[i], 16, 160 + (16 * i)); } } \ No newline at end of file diff --git a/examples/wip/twokeys.js b/examples/wip/twokeys.js index 2a656a04..2ef903f2 100644 --- a/examples/wip/twokeys.js +++ b/examples/wip/twokeys.js @@ -27,7 +27,7 @@ function update() { function render() { - game.debug.renderKey(key1, 32, 64); - game.debug.renderKey(key2, 32, 220); + game.debug.key(key1, 32, 64); + game.debug.key(key2, 32, 220); } diff --git a/examples/world/fixed to camera.js b/examples/world/fixed to camera.js index 744bdd15..6585afc0 100644 --- a/examples/world/fixed to camera.js +++ b/examples/world/fixed to camera.js @@ -70,6 +70,6 @@ function update() { function render() { - game.debug.renderCameraInfo(game.camera, 32, 32); + game.debug.cameraInfo(game.camera, 32, 32); } diff --git a/examples/world/move around world.js b/examples/world/move around world.js index ef088d93..cb1440b1 100644 --- a/examples/world/move around world.js +++ b/examples/world/move around world.js @@ -86,8 +86,8 @@ function update() { function render() { - game.debug.renderCameraInfo(game.camera, 32, 32); - game.debug.renderSpriteInfo(d, 32, 200); - game.debug.renderSpriteCorners(d, false, true); + game.debug.cameraInfo(game.camera, 32, 32); + game.debug.spriteInfo(d, 32, 200); + game.debug.spriteCorners(d, false, true); }