diff --git a/examples/animation/multiple anims.php b/examples/animation/multiple anims.php
index 7ceb1d58..2ae09ac4 100644
--- a/examples/animation/multiple anims.php
+++ b/examples/animation/multiple anims.php
@@ -5,7 +5,7 @@
diff --git a/examples/animation/sprite sheet.php b/examples/animation/sprite sheet.php
index b108cf4b..2752e74b 100644
--- a/examples/animation/sprite sheet.php
+++ b/examples/animation/sprite sheet.php
@@ -5,7 +5,7 @@
diff --git a/examples/animation/texture atlas.php b/examples/animation/texture atlas.php
index e33baf68..8f8a88ba 100644
--- a/examples/animation/texture atlas.php
+++ b/examples/animation/texture atlas.php
@@ -5,7 +5,7 @@
diff --git a/examples/audio/loop.php b/examples/audio/loop.php
index 1be5f0db..ceda86ee 100644
--- a/examples/audio/loop.php
+++ b/examples/audio/loop.php
@@ -5,7 +5,7 @@
diff --git a/examples/audio/play music.php b/examples/audio/play music.php
index c5e8d213..fb851adb 100644
--- a/examples/audio/play music.php
+++ b/examples/audio/play music.php
@@ -5,7 +5,7 @@
diff --git a/examples/buttons/action on click.php b/examples/buttons/action on click.php
index ad4e3444..dc1cbbb2 100644
--- a/examples/buttons/action on click.php
+++ b/examples/buttons/action on click.php
@@ -5,7 +5,7 @@
diff --git a/examples/buttons/changing the frames.php b/examples/buttons/changing the frames.php
index f61316c4..9367f6fe 100644
--- a/examples/buttons/changing the frames.php
+++ b/examples/buttons/changing the frames.php
@@ -5,7 +5,7 @@
diff --git a/examples/buttons/rotated buttons.php b/examples/buttons/rotated buttons.php
index 44d33369..b125c634 100644
--- a/examples/buttons/rotated buttons.php
+++ b/examples/buttons/rotated buttons.php
@@ -5,7 +5,7 @@
diff --git a/examples/camera/basic follow.php b/examples/camera/basic follow.php
index be8c3192..d2e1bfa7 100644
--- a/examples/camera/basic follow.php
+++ b/examples/camera/basic follow.php
@@ -6,7 +6,7 @@
diff --git a/examples/camera/camera cull.php b/examples/camera/camera cull.php
index 00b87050..32196a6a 100644
--- a/examples/camera/camera cull.php
+++ b/examples/camera/camera cull.php
@@ -5,7 +5,7 @@
diff --git a/examples/camera/follow styles.php b/examples/camera/follow styles.php
index bab09f9f..400070b5 100644
--- a/examples/camera/follow styles.php
+++ b/examples/camera/follow styles.php
@@ -6,7 +6,7 @@
diff --git a/examples/camera/moving the camera.php b/examples/camera/moving the camera.php
index 31009976..e8f6ee4c 100644
--- a/examples/camera/moving the camera.php
+++ b/examples/camera/moving the camera.php
@@ -5,7 +5,7 @@
diff --git a/examples/camera/moving the game camera.php b/examples/camera/moving the game camera.php
index 1226193f..41f0be1b 100644
--- a/examples/camera/moving the game camera.php
+++ b/examples/camera/moving the game camera.php
@@ -6,7 +6,7 @@
diff --git a/examples/camera/world sprite.php b/examples/camera/world sprite.php
index f1265df2..ca22cb9c 100644
--- a/examples/camera/world sprite.php
+++ b/examples/camera/world sprite.php
@@ -6,7 +6,7 @@
diff --git a/examples/collision/bounding box.php b/examples/collision/bounding box.php
index f42acaf5..9dc6eb82 100644
--- a/examples/collision/bounding box.php
+++ b/examples/collision/bounding box.php
@@ -5,7 +5,7 @@
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update });
@@ -105,7 +105,7 @@
}
-})();
+
diff --git a/examples/collision/larger bounding box.php b/examples/collision/larger bounding box.php
index ef0bc16e..0c61384d 100644
--- a/examples/collision/larger bounding box.php
+++ b/examples/collision/larger bounding box.php
@@ -5,7 +5,7 @@
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.CANVAS, '', { preload: preload, create: create, update: update, render: render });
@@ -61,7 +61,7 @@
}
-})();
+
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.CANVAS, '', { preload: preload, create: create, update: update, render: render });
@@ -76,7 +76,7 @@
}
-})();
+
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.CANVAS, '', { preload: preload, create: create, update: update, render: render });
@@ -95,7 +95,7 @@
}
-})();
+
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update, render: render });
@@ -84,7 +84,7 @@
function render() {
}
-})();
+
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update, render: render });
@@ -53,7 +53,7 @@
function render() {
}
-})();
+
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.CANVAS, '', { preload: preload, create: create, update: update, render: render });
@@ -64,7 +64,7 @@
}
-})();
+
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.CANVAS, '', { preload: preload, create: create, update: update,render:render});
@@ -47,7 +47,7 @@
game.debug.renderText('Tap to go fullscreen',15,150);
}
-})();
+
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.CANVAS, '', { preload: preload, create: create });
@@ -49,7 +49,7 @@
}
-})();
+
diff --git a/examples/display/render crisp.php b/examples/display/render crisp.php
index 90e337bb..9f46bc32 100644
--- a/examples/display/render crisp.php
+++ b/examples/display/render crisp.php
@@ -5,7 +5,7 @@
diff --git a/examples/games/breakout.php b/examples/games/breakout.php
index def89f91..b2b294cb 100644
--- a/examples/games/breakout.php
+++ b/examples/games/breakout.php
@@ -5,7 +5,7 @@
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.CANVAS, '', { preload: preload, create: create, update: update, render: render });
@@ -126,7 +126,7 @@
game.debug.renderSpriteBounds(s, 'rgba(0,0,255,0.4)', true);
}
-})();
+
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.CANVAS, '', { preload: preload, create: create, update: update, render: render });
@@ -127,7 +127,7 @@
}
-})();
+
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.CANVAS, '', { preload: preload, create: create,render:render });
@@ -53,7 +53,7 @@
-})();
+
diff --git a/examples/groups/add to group 2.php b/examples/groups/add to group 2.php
index 5ece783f..16ccdf0c 100644
--- a/examples/groups/add to group 2.php
+++ b/examples/groups/add to group 2.php
@@ -5,7 +5,7 @@
diff --git a/examples/groups/bring to top 2.php b/examples/groups/bring to top 2.php
index 56872efc..5a8324aa 100644
--- a/examples/groups/bring to top 2.php
+++ b/examples/groups/bring to top 2.php
@@ -5,7 +5,7 @@
diff --git a/examples/groups/bring to top.php b/examples/groups/bring to top.php
index 4849b19b..60c1c512 100644
--- a/examples/groups/bring to top.php
+++ b/examples/groups/bring to top.php
@@ -6,7 +6,7 @@
diff --git a/examples/groups/call all.php b/examples/groups/call all.php
index 58ff4feb..a876b5f4 100644
--- a/examples/groups/call all.php
+++ b/examples/groups/call all.php
@@ -6,7 +6,7 @@
diff --git a/examples/groups/create group.php b/examples/groups/create group.php
index 0474e4bf..e0c68a91 100644
--- a/examples/groups/create group.php
+++ b/examples/groups/create group.php
@@ -6,7 +6,7 @@
diff --git a/examples/groups/display order.php b/examples/groups/display order.php
index 9e773483..25d7e5a1 100644
--- a/examples/groups/display order.php
+++ b/examples/groups/display order.php
@@ -6,7 +6,7 @@
diff --git a/examples/groups/for each.php b/examples/groups/for each.php
index 62fa4e17..502b2e20 100644
--- a/examples/groups/for each.php
+++ b/examples/groups/for each.php
@@ -6,7 +6,7 @@
diff --git a/examples/groups/get first.php b/examples/groups/get first.php
index 949e4a27..4948e755 100644
--- a/examples/groups/get first.php
+++ b/examples/groups/get first.php
@@ -6,7 +6,7 @@
diff --git a/examples/groups/group as layer.php b/examples/groups/group as layer.php
index 3ae2b7fe..5ee9e4f0 100644
--- a/examples/groups/group as layer.php
+++ b/examples/groups/group as layer.php
@@ -6,7 +6,7 @@
diff --git a/examples/groups/group transform - rotate.php b/examples/groups/group transform - rotate.php
index e569cc68..bbccd179 100644
--- a/examples/groups/group transform - rotate.php
+++ b/examples/groups/group transform - rotate.php
@@ -6,7 +6,7 @@
diff --git a/examples/groups/group transform - tween.php b/examples/groups/group transform - tween.php
index 035b8c4a..6321e5ba 100644
--- a/examples/groups/group transform - tween.php
+++ b/examples/groups/group transform - tween.php
@@ -6,7 +6,7 @@
diff --git a/examples/groups/group transform.php b/examples/groups/group transform.php
index 06a8854a..8dec4ec6 100644
--- a/examples/groups/group transform.php
+++ b/examples/groups/group transform.php
@@ -6,7 +6,7 @@
diff --git a/examples/groups/recyling.php b/examples/groups/recyling.php
index e8fd4651..4447503c 100644
--- a/examples/groups/recyling.php
+++ b/examples/groups/recyling.php
@@ -6,7 +6,7 @@
diff --git a/examples/groups/remove.php b/examples/groups/remove.php
index 1684870c..afd9ce2e 100644
--- a/examples/groups/remove.php
+++ b/examples/groups/remove.php
@@ -6,7 +6,7 @@
diff --git a/examples/groups/replace.php b/examples/groups/replace.php
index 6bbf5ba8..6866d331 100644
--- a/examples/groups/replace.php
+++ b/examples/groups/replace.php
@@ -6,7 +6,7 @@
diff --git a/examples/groups/set All.php b/examples/groups/set All.php
index 8d812acc..6f0058f8 100644
--- a/examples/groups/set All.php
+++ b/examples/groups/set All.php
@@ -6,7 +6,7 @@
diff --git a/examples/groups/sub groups and group length.php b/examples/groups/sub groups and group length.php
index d423dce8..717d7018 100644
--- a/examples/groups/sub groups and group length.php
+++ b/examples/groups/sub groups and group length.php
@@ -6,7 +6,7 @@
diff --git a/examples/groups/swap children inside a group.php b/examples/groups/swap children inside a group.php
index c6899227..e2ce0adf 100644
--- a/examples/groups/swap children inside a group.php
+++ b/examples/groups/swap children inside a group.php
@@ -6,7 +6,7 @@
diff --git a/examples/input/bring to top.php b/examples/input/bring to top.php
index c3e91bdb..ab11aeed 100644
--- a/examples/input/bring to top.php
+++ b/examples/input/bring to top.php
@@ -5,7 +5,7 @@
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.CANVAS, '', { preload: preload, create: create, render: render });
@@ -43,7 +43,7 @@
game.debug.renderInputInfo(32, 32);
}
-})();
+
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create });
@@ -31,7 +31,7 @@
}
-})();
+
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.CANVAS, '', { preload: preload, create: create,render:render});
@@ -54,7 +54,7 @@
}
}
-})();
+
diff --git a/examples/input/follow mouse.php b/examples/input/follow mouse.php
index 67e480d0..638a2350 100644
--- a/examples/input/follow mouse.php
+++ b/examples/input/follow mouse.php
@@ -5,7 +5,7 @@
diff --git a/examples/input/game scale.php b/examples/input/game scale.php
index 6a7ed970..7aa95b3a 100644
--- a/examples/input/game scale.php
+++ b/examples/input/game scale.php
@@ -5,7 +5,7 @@
diff --git a/examples/input/key.php b/examples/input/key.php
index 3a1ed307..11d20005 100644
--- a/examples/input/key.php
+++ b/examples/input/key.php
@@ -5,7 +5,7 @@
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create });
@@ -50,7 +50,7 @@
game.add.sprite(game.world.randomX, game.world.randomY, 'pineapple');
}
-})();
+
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update });
@@ -39,7 +39,7 @@
}
-})();
+
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.CANVAS, '', { preload: preload, create: create,update:update,render:render });
@@ -77,7 +77,7 @@
}
-})();
+
diff --git a/examples/input/motion lock - horizontal.php b/examples/input/motion lock - horizontal.php
index 39d4957b..f7cc7ed4 100644
--- a/examples/input/motion lock - horizontal.php
+++ b/examples/input/motion lock - horizontal.php
@@ -5,7 +5,7 @@
diff --git a/examples/input/motion lock - vertical.php b/examples/input/motion lock - vertical.php
index a67e3a1f..10b9beea 100644
--- a/examples/input/motion lock - vertical.php
+++ b/examples/input/motion lock - vertical.php
@@ -5,7 +5,7 @@
diff --git a/examples/input/multi touch.php b/examples/input/multi touch.php
index 1ab9ccf3..a6db638a 100644
--- a/examples/input/multi touch.php
+++ b/examples/input/multi touch.php
@@ -5,7 +5,7 @@
diff --git a/examples/input/override browser keyboard controls.php b/examples/input/override browser keyboard controls.php
index b5e3abe8..ed382531 100644
--- a/examples/input/override browser keyboard controls.php
+++ b/examples/input/override browser keyboard controls.php
@@ -5,7 +5,7 @@
diff --git a/examples/input/pixelpick.php b/examples/input/pixelpick.php
index 392ab485..83917d71 100644
--- a/examples/input/pixelpick.php
+++ b/examples/input/pixelpick.php
@@ -5,7 +5,7 @@
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.CANVAS, '', { preload: preload, create: create, update: update, render: render });
@@ -57,7 +57,7 @@
}
-})();
+
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.CANVAS, '', { preload: preload, create: create, update: update, render: render });
@@ -105,7 +105,7 @@
}
-})();
+
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create });
@@ -42,7 +42,7 @@
}
-})();
+
-(function () {
+
function loadStarted(size) {
console.log('Loader started, queue size:', size);
@@ -49,7 +49,7 @@ game.load.onLoadComplete.add(loadCompleted, this);
-})();
+
diff --git a/examples/loader/spritesheet loading.php b/examples/loader/spritesheet loading.php
index f7e751b9..2338df05 100644
--- a/examples/loader/spritesheet loading.php
+++ b/examples/loader/spritesheet loading.php
@@ -5,7 +5,7 @@
diff --git a/examples/misc/net.php b/examples/misc/net.php
index 2425d376..2d9c2ee3 100644
--- a/examples/misc/net.php
+++ b/examples/misc/net.php
@@ -5,7 +5,7 @@
diff --git a/examples/misc/random generators.php b/examples/misc/random generators.php
index 944cf7b7..ac755537 100644
--- a/examples/misc/random generators.php
+++ b/examples/misc/random generators.php
@@ -5,7 +5,7 @@
diff --git a/examples/particles/click burst.php b/examples/particles/click burst.php
index 44bf8691..3c08026f 100644
--- a/examples/particles/click burst.php
+++ b/examples/particles/click burst.php
@@ -5,7 +5,7 @@
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.CANVAS, '', { preload: preload, create: create, update: update });
@@ -40,7 +40,7 @@
}
-})();
+
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update, render: render });
@@ -69,7 +69,7 @@
function render() {
}
-})();
+
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create });
@@ -32,7 +32,7 @@
}
-})();
+
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update, render: render });
@@ -38,7 +38,7 @@
function render() {
}
-})();
+
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.CANVAS, '', { preload: preload, create: create, update: update });
@@ -43,7 +43,7 @@
game.physics.collide(leftEmitter, rightEmitter);
}
-})();
+
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create });
@@ -28,7 +28,7 @@
}
-})();
+
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update});
@@ -70,7 +70,7 @@
}
-})();
+
diff --git a/examples/physics/group move towards object.php b/examples/physics/group move towards object.php
index f8998e18..edc888c1 100644
--- a/examples/physics/group move towards object.php
+++ b/examples/physics/group move towards object.php
@@ -5,7 +5,7 @@
diff --git a/examples/physics/sprite bounds.php b/examples/physics/sprite bounds.php
index f299b2fb..5e05210b 100644
--- a/examples/physics/sprite bounds.php
+++ b/examples/physics/sprite bounds.php
@@ -5,7 +5,7 @@
diff --git a/examples/quadtree/quadtree.php b/examples/quadtree/quadtree.php
index 82577f39..2cd20d15 100644
--- a/examples/quadtree/quadtree.php
+++ b/examples/quadtree/quadtree.php
@@ -5,7 +5,7 @@
diff --git a/examples/quadtree/quadtree2.php b/examples/quadtree/quadtree2.php
index f5d10afb..b83d1250 100644
--- a/examples/quadtree/quadtree2.php
+++ b/examples/quadtree/quadtree2.php
@@ -5,7 +5,7 @@
diff --git a/examples/sprites/outOfBounds.php b/examples/sprites/outOfBounds.php
index f07d81d3..3f63d195 100644
--- a/examples/sprites/outOfBounds.php
+++ b/examples/sprites/outOfBounds.php
@@ -5,7 +5,7 @@
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update });
@@ -22,7 +22,7 @@
function update() {
}
-})();
+
diff --git a/examples/sprites/sprite3.php b/examples/sprites/sprite3.php
index 115418a3..1263b99d 100644
--- a/examples/sprites/sprite3.php
+++ b/examples/sprites/sprite3.php
@@ -5,7 +5,7 @@
diff --git a/examples/sprites/sprite4.php b/examples/sprites/sprite4.php
index 161c1830..13b8fceb 100644
--- a/examples/sprites/sprite4.php
+++ b/examples/sprites/sprite4.php
@@ -5,7 +5,7 @@
diff --git a/examples/sprites/sprite_extend.php b/examples/sprites/sprite_extend.php
index 3c678f93..9fe0fb26 100644
--- a/examples/sprites/sprite_extend.php
+++ b/examples/sprites/sprite_extend.php
@@ -26,7 +26,7 @@ MonsterBunny.prototype.update = function() {
};
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create });
@@ -49,7 +49,7 @@ MonsterBunny.prototype.update = function() {
}
-})();
+
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update });
@@ -42,7 +42,7 @@
}
-})();
+
diff --git a/examples/template.php b/examples/template.php
index 89019d30..aa481ac2 100644
--- a/examples/template.php
+++ b/examples/template.php
@@ -5,7 +5,7 @@
diff --git a/examples/text/bitmap fonts.php b/examples/text/bitmap fonts.php
index dc1716e9..89083832 100644
--- a/examples/text/bitmap fonts.php
+++ b/examples/text/bitmap fonts.php
@@ -5,7 +5,7 @@
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.CANVAS, '', { create: create });
@@ -19,7 +19,7 @@
}
-})();
+
diff --git a/examples/text/kern of duty.php b/examples/text/kern of duty.php
index 442a02b3..a674e228 100644
--- a/examples/text/kern of duty.php
+++ b/examples/text/kern of duty.php
@@ -5,7 +5,7 @@
diff --git a/examples/text/text stroke.php b/examples/text/text stroke.php
index 7d0a4d7f..f9d1ff18 100644
--- a/examples/text/text stroke.php
+++ b/examples/text/text stroke.php
@@ -5,7 +5,7 @@
diff --git a/examples/texture crop/crop.php b/examples/texture crop/crop.php
index 11bfb125..0ca156e1 100644
--- a/examples/texture crop/crop.php
+++ b/examples/texture crop/crop.php
@@ -5,7 +5,7 @@
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update });
@@ -34,7 +34,7 @@
}
-})();
+
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update });
@@ -36,7 +36,7 @@
}
-})();
+
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update });
@@ -50,7 +50,7 @@
}
-})();
+
diff --git a/examples/tile sprites/tilesprite2.php b/examples/tile sprites/tilesprite2.php
index 5b90b0fe..b7094c5c 100644
--- a/examples/tile sprites/tilesprite2.php
+++ b/examples/tile sprites/tilesprite2.php
@@ -5,7 +5,7 @@
diff --git a/examples/tilemaps/mapcollide.php b/examples/tilemaps/mapcollide.php
index d995a90e..fdc3082d 100644
--- a/examples/tilemaps/mapcollide.php
+++ b/examples/tilemaps/mapcollide.php
@@ -5,7 +5,7 @@
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update, render: render });
@@ -48,7 +48,7 @@
function render() {
}
-})();
+
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create });
@@ -33,7 +33,7 @@
game.stage.scale.startFullScreen();
}
-})();
+
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update, render: render });
@@ -50,7 +50,7 @@
function render() {
}
-})();
+
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update });
@@ -65,7 +65,7 @@
}
-})();
+
-(function () {
+
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create });
@@ -30,7 +30,7 @@
.loop();
}
-})();
+