diff --git a/examples/animation/Animation from a JSON object.php b/examples/animation/Animation from a JSON object.php new file mode 100644 index 00000000..c42d0643 --- /dev/null +++ b/examples/animation/Animation from a JSON object.php @@ -0,0 +1,144 @@ + + + + + \ No newline at end of file diff --git a/examples/animation/texture atlas.php b/examples/animation/Animation from a texturePacker file.php similarity index 93% rename from examples/animation/texture atlas.php rename to examples/animation/Animation from a texturePacker file.php index 8f8a88ba..67420bd1 100644 --- a/examples/animation/texture atlas.php +++ b/examples/animation/Animation from a texturePacker file.php @@ -1,5 +1,5 @@ diff --git a/examples/animation/animation wraparound.php b/examples/animation/animation wraparound.php new file mode 100644 index 00000000..aef294fe --- /dev/null +++ b/examples/animation/animation wraparound.php @@ -0,0 +1,52 @@ + + + + + \ No newline at end of file diff --git a/examples/assets/maps/cybernoid.png b/examples/assets/maps/cybernoid.png.png similarity index 100% rename from examples/assets/maps/cybernoid.png rename to examples/assets/maps/cybernoid.png.png diff --git a/examples/camera/follow styles.php b/examples/camera/follow styles.php index 400070b5..5ff57587 100644 --- a/examples/camera/follow styles.php +++ b/examples/camera/follow styles.php @@ -36,7 +36,7 @@ function create() { //make the world larger than the actual canvas - game.world.setBounds(1400,1400); + game.world.setBounds(0,0,1400,1400); for(var i=0,nb=10;i - - - - diff --git a/examples/groups/add to group 1.php b/examples/groups/add to group after creation.php similarity index 100% rename from examples/groups/add to group 1.php rename to examples/groups/add to group after creation.php diff --git a/examples/groups/bring to top 2.php b/examples/groups/bring a group to top.php similarity index 100% rename from examples/groups/bring to top 2.php rename to examples/groups/bring a group to top.php diff --git a/examples/groups/bring to top.php b/examples/groups/bring specific sprites to top.php similarity index 100% rename from examples/groups/bring to top.php rename to examples/groups/bring specific sprites to top.php diff --git a/examples/groups/add to group 2.php b/examples/groups/create a sprite inside a group.php similarity index 100% rename from examples/groups/add to group 2.php rename to examples/groups/create a sprite inside a group.php diff --git a/examples/input/cursor key movement.php b/examples/input/cursor key movement.php index ad3c8aa9..b2ae4c12 100644 --- a/examples/input/cursor key movement.php +++ b/examples/input/cursor key movement.php @@ -8,7 +8,7 @@ window.onload = function () { var game = new Phaser.Game(800, 600, Phaser.CANVAS, '', { preload: preload, create: create, update: update, render : render }); - // var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update, render: render }); + function preload() { diff --git a/examples/input/bring to top2.php b/examples/input/drag several sprites.php similarity index 100% rename from examples/input/bring to top2.php rename to examples/input/drag several sprites.php diff --git a/examples/input/follow mouse.php b/examples/input/follow mouse.php index 638a2350..435a8d0b 100644 --- a/examples/input/follow mouse.php +++ b/examples/input/follow mouse.php @@ -29,7 +29,7 @@ if (game.input.mousePointer.isDown) { // 400 is the speed it will move towards the mouse - game.physics.moveTowardsMouse(sprite, 400); + game.physics.moveToPointer(sprite, 400); // if it's overlapping the mouse, don't move any more if (Phaser.Rectangle.contains(sprite.body, game.input.x, game.input.y)) diff --git a/examples/input/bring to top.php b/examples/loader/random images from loader.php similarity index 96% rename from examples/input/bring to top.php rename to examples/loader/random images from loader.php index ab11aeed..732ed414 100644 --- a/examples/input/bring to top.php +++ b/examples/loader/random images from loader.php @@ -1,5 +1,5 @@ diff --git a/examples/physics/group move towards object.php b/examples/physics/group move towards object.php index edc888c1..cc33d73e 100644 --- a/examples/physics/group move towards object.php +++ b/examples/physics/group move towards object.php @@ -1,5 +1,5 @@ @@ -35,7 +35,7 @@ // First is the callback // Second is the context in which the callback runs, in this case game.physics // Third is the parameter the callback expects - it is always sent the Group child as the first parameter - balls.forEach(game.physics.moveTowardsMouse, game.physics, false, 200); + balls.forEach(game.physics.moveToPointer, game.physics, false, 200); } else { diff --git a/examples/sprites/sprite1.php b/examples/sprites/add a sprite.php similarity index 84% rename from examples/sprites/sprite1.php rename to examples/sprites/add a sprite.php index dd1059aa..cb889eb7 100644 --- a/examples/sprites/sprite1.php +++ b/examples/sprites/add a sprite.php @@ -7,7 +7,7 @@ - var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update }); + var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create }); function preload() { game.load.image('mushroom', 'assets/sprites/mushroom2.png'); @@ -19,9 +19,6 @@ } - function update() { - } - diff --git a/examples/sprites/sprite3.php b/examples/sprites/add several sprites.php similarity index 100% rename from examples/sprites/sprite3.php rename to examples/sprites/add several sprites.php diff --git a/examples/sprites/sprite4.php b/examples/sprites/move a sprite.php similarity index 100% rename from examples/sprites/sprite4.php rename to examples/sprites/move a sprite.php diff --git a/examples/sprites/several sprites using one texture file.php b/examples/sprites/several sprites using one texture file.php new file mode 100644 index 00000000..0d8158da --- /dev/null +++ b/examples/sprites/several sprites using one texture file.php @@ -0,0 +1,59 @@ + + + + + \ No newline at end of file diff --git a/examples/texture crop/crop3.php b/examples/texture crop/crop and see part of an image.php similarity index 100% rename from examples/texture crop/crop3.php rename to examples/texture crop/crop and see part of an image.php diff --git a/examples/texture crop/crop2.php b/examples/texture crop/crop and tween horizontally.php similarity index 100% rename from examples/texture crop/crop2.php rename to examples/texture crop/crop and tween horizontally.php diff --git a/examples/texture crop/crop.php b/examples/texture crop/crop and tween vertically.php similarity index 100% rename from examples/texture crop/crop.php rename to examples/texture crop/crop and tween vertically.php diff --git a/examples/tile sprites/tilesprite1.php b/examples/tile sprites/tilesprite inside crop rect.php similarity index 100% rename from examples/tile sprites/tilesprite1.php rename to examples/tile sprites/tilesprite inside crop rect.php diff --git a/examples/tile sprites/tilesprite2.php b/examples/tile sprites/tilesprite.php similarity index 100% rename from examples/tile sprites/tilesprite2.php rename to examples/tile sprites/tilesprite.php diff --git a/examples/tweens/bounce.php b/examples/tweens/bounce.php new file mode 100644 index 00000000..92a6663e --- /dev/null +++ b/examples/tweens/bounce.php @@ -0,0 +1,48 @@ + + + + + \ No newline at end of file diff --git a/examples/tweens/bubbles.php b/examples/tweens/bubbles.php new file mode 100644 index 00000000..cee5199d --- /dev/null +++ b/examples/tweens/bubbles.php @@ -0,0 +1,44 @@ + + + + + \ No newline at end of file diff --git a/examples/tweens/combined tweens.php b/examples/tweens/combined tweens.php new file mode 100644 index 00000000..7afd42e8 --- /dev/null +++ b/examples/tweens/combined tweens.php @@ -0,0 +1,73 @@ + + + + + \ No newline at end of file diff --git a/examples/tweens/easing spritesheets.php b/examples/tweens/easing spritesheets.php new file mode 100644 index 00000000..18f0ae62 --- /dev/null +++ b/examples/tweens/easing spritesheets.php @@ -0,0 +1,42 @@ + + + + + \ No newline at end of file diff --git a/examples/tweens/easing.php b/examples/tweens/easing.php new file mode 100644 index 00000000..6dc369f2 --- /dev/null +++ b/examples/tweens/easing.php @@ -0,0 +1,54 @@ + + + + + \ No newline at end of file diff --git a/examples/tweens/fading in a sprite.php b/examples/tweens/fading in a sprite.php new file mode 100644 index 00000000..ca4f11f0 --- /dev/null +++ b/examples/tweens/fading in a sprite.php @@ -0,0 +1,34 @@ + + + + + \ No newline at end of file diff --git a/examples/tweens/tweening several properties.php b/examples/tweens/tweening several properties.php new file mode 100644 index 00000000..4d6c8a58 --- /dev/null +++ b/examples/tweens/tweening several properties.php @@ -0,0 +1,40 @@ + + + + + \ No newline at end of file