mirror of
https://github.com/photonstorm/phaser
synced 2024-11-30 00:21:04 +00:00
Updating copyright year and README.
This commit is contained in:
parent
8e77e8cedb
commit
0896c2fac7
102 changed files with 160 additions and 298 deletions
38
README.md
38
README.md
|
@ -1,11 +1,11 @@
|
||||||
![Phaser Logo](http://www.photonstorm.com/wp-content/uploads/2013/09/phaser_10_release.jpg)
|
![Phaser Logo](http://www.photonstorm.com/wp-content/uploads/2013/09/phaser_10_release.jpg)
|
||||||
|
|
||||||
Phaser 1.1.4-dev
|
Phaser 1.1.4
|
||||||
================
|
============
|
||||||
|
|
||||||
Phaser is a fast, free and fun open source game framework for making desktop and mobile browser HTML5 games. It uses [Pixi.js](https://github.com/GoodBoyDigital/pixi.js/) internally for fast 2D Canvas and WebGL rendering.
|
Phaser is a fast, free and fun open source game framework for making desktop and mobile browser HTML5 games. It uses [Pixi.js](https://github.com/GoodBoyDigital/pixi.js/) internally for fast 2D Canvas and WebGL rendering.
|
||||||
|
|
||||||
Version: 1.1.4 "Kandor" - Released: -in development-
|
Version: 1.1.4 "Kandor" - Released: February 5th 2014
|
||||||
|
|
||||||
By Richard Davey, [Photon Storm](http://www.photonstorm.com)
|
By Richard Davey, [Photon Storm](http://www.photonstorm.com)
|
||||||
|
|
||||||
|
@ -23,13 +23,23 @@ Read the [documentation online](http://docs.phaser.io)
|
||||||
Welcome to Phaser
|
Welcome to Phaser
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
Over 1000 github stars! Wow! The latest release of Phaser represents another hard months work by the development team and the community at large. We've had some great contributions and have not let-up the pace of innovating and pushing Phaser forward. As we march towards the end of 2013 we do so knowing that with every passing month more and more developers are using Phaser, and more games are being made. All while it is getting stronger with each release.
|
As you may know we had planned to release 1.1.4 at the end of 2013. For various reasons this didn't quite happen, but we're happy to announce it's finally out! There have been some dramatic changes internally, and if you make use of either the physics systems or tilemaps then you are going to need to update your code. Hopefully only a little bit, but there have been a number of core API changes which we detail below. There are also a host of new features, the headliners being:
|
||||||
|
|
||||||
Our plan is to end 2013 with one final point release (1.1.4 - "Kandor") and then we'll start planning out the features we wish to see in version 1.2 in the New Year.
|
* New Physics system. Uses SAT.js internally so physics bodies can now be rectangles, circles or polygons and support rotation.
|
||||||
|
* New Tilemap system. Brand new collision system for tiles, much more advanced layer handling, tile properties, multiple tilesets of layer and more.
|
||||||
|
* New Timer. This handy new class lets you create timed events easily.
|
||||||
|
* Your Game can now be configured from an external configuration object.
|
||||||
|
* Over 150 new features and updates and over 30 reported bug fixes.
|
||||||
|
|
||||||
As always we offer a heart-felt "Thank you!" to everyone who has encouraged us along the way. To those of you who worked with Phaser during its various incarnations, and who released full games with it despite there being zero API documentation available back then: you are our heroes. It's your kind words and enthusiasm that has kept us going.
|
This release also brings the TypeScript definitions file as bang up to date as possible. There are still a few areas that need looking at, but with your help hopefully we can iron those final few bits out and have a 100% accruate defs file on offer.
|
||||||
|
|
||||||
Phaser is everything we ever wanted from an HTML5 game framework. It powers all of our client work in build today and remains our single most important product, and we've only just scratched the surface of what we have planned for it.
|
There is a new Contributors Guide which we'd urge you to follow if you wish to help with Phaser development, and we've updated the doc files and added lots more details into key areas. The Examples have grown too! Now over 220 of them including several great ones from the community.
|
||||||
|
|
||||||
|
We're going to settle on this build for a short while as we do some quick iteration bug fixing, so expect to see some small point releases very soon that do nothing but address any issues you may find. But in parallel to this we are also now rebuilding our core to bring it in-line with the latest version of Pixi.js, which has had some dramatic changes under the hood, changes will impact a lot of what Phaser does internally. But the changes are all for the better and once we upgrade Pixi you'll have a significantly faster renderer and a smaller codebase too, as we do away with stacks of linked list code :)
|
||||||
|
|
||||||
|
As always we offer a heart-felt "Thank you!" to everyone who has encouraged us along the way. To those of you who worked with Phaser during its various incarnations. The number of games being released that were made with Phaser is staggering and we really love to see how you use it! You are our heroes. It's your kind words and enthusiasm that has keeps us going.
|
||||||
|
|
||||||
|
Phaser is everything we ever wanted from an HTML5 game framework. It powers all of our client work in build today and remains our single most important product, and we've still only just scratched the surface of what we have planned for it.
|
||||||
|
|
||||||
![MiniCybernoid](http://www.photonstorm.com/wp-content/uploads/2013/10/phaser-cybernoid-640x480.png)
|
![MiniCybernoid](http://www.photonstorm.com/wp-content/uploads/2013/10/phaser-cybernoid-640x480.png)
|
||||||
|
|
||||||
|
@ -47,7 +57,7 @@ There is also an [un-official Getting Started Guide](http://www.antonoffplus.com
|
||||||
Change Log
|
Change Log
|
||||||
----------
|
----------
|
||||||
|
|
||||||
Version 1.1.4 - "Kandor" - In development
|
Version 1.1.4 - "Kandor" - February 5th 2014
|
||||||
|
|
||||||
Significant API changes:
|
Significant API changes:
|
||||||
|
|
||||||
|
@ -307,7 +317,7 @@ We've made the loading of assets as simple as one line of code. Images, Sounds,
|
||||||
|
|
||||||
**Physics**
|
**Physics**
|
||||||
|
|
||||||
Phaser ships with our Arcade Physics system. An extremely light-weight AABB physics library perfect for low-powered devices and fast collision response. Control velocity, acceleration, bounce, drag and full collision and separation control.
|
Phaser ships with our Arcade Physics system. A SAT based collision and physics library perfect for low-powered devices and fast collision response. Control velocity, acceleration, bounce, damping and full collision and separation control. As of version 1.1.4 we now support rectangles, circles and polygon collision with full rotation.
|
||||||
|
|
||||||
**Sprites**
|
**Sprites**
|
||||||
|
|
||||||
|
@ -368,13 +378,17 @@ Although Phaser 1.0 is a brand new release it is born from years of experience b
|
||||||
Road Map
|
Road Map
|
||||||
--------
|
--------
|
||||||
|
|
||||||
The 1.1 release was a massive under-taking, but we're really happy with how Phaser is progressing. It's becoming more solid and versatile with each iteration. Here is what's on our road map:
|
Here is what's on our road map for the coming months:
|
||||||
|
|
||||||
Version 1.2 ("Saldaea")
|
Version 1.1.5 ("Saldaea")
|
||||||
|
|
||||||
|
* A fast turn-around point release that will focus on addressing any bugs that occured as a result of the large changes that took place in 1.1.4.
|
||||||
|
|
||||||
|
Version 1.2 ("Shienar")
|
||||||
|
|
||||||
* Update to Pixi 1.4 - this newly released build has lots of internal changes and new features we want to take advantage of.
|
* Update to Pixi 1.4 - this newly released build has lots of internal changes and new features we want to take advantage of.
|
||||||
|
|
||||||
Version 1.3 ("Shienar")
|
Version 1.3 ("Tarabon")
|
||||||
|
|
||||||
* Enhance the State Management, so you can perform non-destructive State swaps and persistence.
|
* Enhance the State Management, so you can perform non-destructive State swaps and persistence.
|
||||||
* Dedicated CocoonJS packaging features (screencanvas, etc)
|
* Dedicated CocoonJS packaging features (screencanvas, etc)
|
||||||
|
|
|
@ -41,7 +41,6 @@ function create() {
|
||||||
sprite4 = game.add.sprite(380, 100, 'wizball');
|
sprite4 = game.add.sprite(380, 100, 'wizball');
|
||||||
sprite4.body.setCircle(46);
|
sprite4.body.setCircle(46);
|
||||||
sprite4.body.collideWorldBounds = true;
|
sprite4.body.collideWorldBounds = true;
|
||||||
sprite4.body.friction = 0;
|
|
||||||
sprite4.body.bounce.setTo(0.9, 0.9);
|
sprite4.body.bounce.setTo(0.9, 0.9);
|
||||||
sprite4.body.velocity.setTo(100, 100);
|
sprite4.body.velocity.setTo(100, 100);
|
||||||
|
|
||||||
|
@ -49,7 +48,7 @@ function create() {
|
||||||
|
|
||||||
function update() {
|
function update() {
|
||||||
|
|
||||||
game.physics.collideArray(sprite4, [ sprite1, sprite2, sprite3 ]);
|
game.physics.collide(sprite4, [ sprite1, sprite2, sprite3 ]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,17 +25,6 @@ var bg;
|
||||||
|
|
||||||
function create() {
|
function create() {
|
||||||
|
|
||||||
$('#step').click(function(){
|
|
||||||
console.log('---- STEP', game.stepCount, '-------------------------------');
|
|
||||||
game.step();
|
|
||||||
});
|
|
||||||
|
|
||||||
$('#start').click(function(){
|
|
||||||
console.log('---- START DEBUGGING -------------------------------');
|
|
||||||
game.enableStep();
|
|
||||||
player.debug = true;
|
|
||||||
});
|
|
||||||
|
|
||||||
game.stage.backgroundColor = '#000000';
|
game.stage.backgroundColor = '#000000';
|
||||||
|
|
||||||
bg = game.add.tileSprite(0, 0, 800, 600, 'background');
|
bg = game.add.tileSprite(0, 0, 800, 600, 'background');
|
||||||
|
@ -63,6 +52,9 @@ function create() {
|
||||||
player.body.collideWorldBounds = true;
|
player.body.collideWorldBounds = true;
|
||||||
player.body.setRectangle(16, 32, 8, 16);
|
player.body.setRectangle(16, 32, 8, 16);
|
||||||
|
|
||||||
|
// Un-comment this on to see the body collision areas / data
|
||||||
|
// player.debug = true;
|
||||||
|
|
||||||
player.animations.add('left', [0, 1, 2, 3], 10, true);
|
player.animations.add('left', [0, 1, 2, 3], 10, true);
|
||||||
player.animations.add('turn', [4], 20, true);
|
player.animations.add('turn', [4], 20, true);
|
||||||
player.animations.add('right', [5, 6, 7, 8], 10, true);
|
player.animations.add('right', [5, 6, 7, 8], 10, true);
|
||||||
|
@ -119,10 +111,8 @@ function update() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (jumpButton.isDown && player.body.touching.down && game.time.now > jumpTimer)
|
|
||||||
if (jumpButton.isDown && player.body.onFloor() && game.time.now > jumpTimer)
|
if (jumpButton.isDown && player.body.onFloor() && game.time.now > jumpTimer)
|
||||||
{
|
{
|
||||||
console.log('jump');
|
|
||||||
player.body.velocity.y = -250;
|
player.body.velocity.y = -250;
|
||||||
jumpTimer = game.time.now + 750;
|
jumpTimer = game.time.now + 750;
|
||||||
}
|
}
|
||||||
|
@ -131,7 +121,10 @@ function update() {
|
||||||
|
|
||||||
function render () {
|
function render () {
|
||||||
|
|
||||||
game.debug.renderPhysicsBody(player.body);
|
if (player.debug)
|
||||||
game.debug.renderBodyInfo(player, 16, 24);
|
{
|
||||||
|
game.debug.renderPhysicsBody(player.body);
|
||||||
|
game.debug.renderBodyInfo(player, 16, 24);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,7 @@ EnemyTank = function (index, game, player, bullets) {
|
||||||
this.turret.anchor.setTo(0.3, 0.5);
|
this.turret.anchor.setTo(0.3, 0.5);
|
||||||
|
|
||||||
this.tank.name = index.toString();
|
this.tank.name = index.toString();
|
||||||
this.tank.body.immovable = true;
|
this.tank.body.immovable = false;
|
||||||
this.tank.body.collideWorldBounds = true;
|
this.tank.body.collideWorldBounds = true;
|
||||||
this.tank.body.bounce.setTo(1, 1);
|
this.tank.body.bounce.setTo(1, 1);
|
||||||
|
|
||||||
|
@ -77,7 +77,6 @@ EnemyTank.prototype.update = function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
var game = new Phaser.Game(800, 600, Phaser.AUTO, 'phaser-example', { preload: preload, create: create, update: update, render: render });
|
var game = new Phaser.Game(800, 600, Phaser.AUTO, 'phaser-example', { preload: preload, create: create, update: update, render: render });
|
||||||
// var game = new Phaser.Game(800, 600, Phaser.CANVAS, 'phaser-example', { preload: preload, create: create, update: update, render: render });
|
|
||||||
|
|
||||||
function preload () {
|
function preload () {
|
||||||
|
|
||||||
|
@ -122,10 +121,9 @@ function create () {
|
||||||
tank = game.add.sprite(0, 0, 'tank', 'tank1');
|
tank = game.add.sprite(0, 0, 'tank', 'tank1');
|
||||||
tank.anchor.setTo(0.5, 0.5);
|
tank.anchor.setTo(0.5, 0.5);
|
||||||
tank.animations.add('move', ['tank1', 'tank2', 'tank3', 'tank4', 'tank5', 'tank6'], 20, true);
|
tank.animations.add('move', ['tank1', 'tank2', 'tank3', 'tank4', 'tank5', 'tank6'], 20, true);
|
||||||
// tank.play('move');
|
|
||||||
|
|
||||||
// This will force it to decelerate and limit its speed
|
// This will force it to decelerate and limit its speed
|
||||||
tank.body.friction = 0.2;
|
tank.body.linearDamping = 0.2;
|
||||||
tank.body.maxVelocity.setTo(400, 400);
|
tank.body.maxVelocity.setTo(400, 400);
|
||||||
tank.body.collideWorldBounds = true;
|
tank.body.collideWorldBounds = true;
|
||||||
|
|
||||||
|
@ -194,15 +192,15 @@ function removeLogo () {
|
||||||
|
|
||||||
function update () {
|
function update () {
|
||||||
|
|
||||||
game.physics.collide(enemyBullets, tank, bulletHitPlayer, null, this);
|
game.physics.overlap(enemyBullets, tank, bulletHitPlayer, null, this);
|
||||||
|
|
||||||
for (var i = 0; i < enemies.length; i++)
|
for (var i = 0; i < enemies.length; i++)
|
||||||
{
|
{
|
||||||
if (enemies[i].alive)
|
if (enemies[i].alive)
|
||||||
{
|
{
|
||||||
enemies[i].update();
|
|
||||||
game.physics.collide(tank, enemies[i].tank);
|
game.physics.collide(tank, enemies[i].tank);
|
||||||
game.physics.collide(bullets, enemies[i].tank, bulletHitEnemy, null, this);
|
game.physics.overlap(bullets, enemies[i].tank, bulletHitEnemy, null, this);
|
||||||
|
enemies[i].update();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ function create() {
|
||||||
wab.name = 'wab' + i;
|
wab.name = 'wab' + i;
|
||||||
wab.body.collideWorldBounds = true;
|
wab.body.collideWorldBounds = true;
|
||||||
wab.body.mass = 0.1;
|
wab.body.mass = 0.1;
|
||||||
wab.body.friction = 0.2;
|
wab.body.linearDamping = 0.2;
|
||||||
}
|
}
|
||||||
|
|
||||||
hill = game.add.sprite(450, 400, 'hill');
|
hill = game.add.sprite(450, 400, 'hill');
|
||||||
|
@ -53,7 +53,7 @@ function create() {
|
||||||
block = game.add.sprite(575, 300, 'block');
|
block = game.add.sprite(575, 300, 'block');
|
||||||
block.body.collideWorldBounds = true;
|
block.body.collideWorldBounds = true;
|
||||||
block.body.mass = 5;
|
block.body.mass = 5;
|
||||||
block.body..friction = 0.4;
|
block.body.linearDamping = 0.4;
|
||||||
|
|
||||||
analog = game.add.sprite(200, 450, 'analog');
|
analog = game.add.sprite(200, 450, 'analog');
|
||||||
analog.body.allowGravity = false;
|
analog.body.allowGravity = false;
|
||||||
|
|
|
@ -133,7 +133,7 @@ function create () {
|
||||||
// tank.play('move');
|
// tank.play('move');
|
||||||
|
|
||||||
// This will force it to decelerate and limit its speed
|
// This will force it to decelerate and limit its speed
|
||||||
tank.body.friction = 0.2;
|
tank.body.linearDamping = 0.2;
|
||||||
tank.body.maxVelocity.setTo(400, 400);
|
tank.body.maxVelocity.setTo(400, 400);
|
||||||
tank.body.collideWorldBounds = true;
|
tank.body.collideWorldBounds = true;
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ function create() {
|
||||||
player.anchor.setTo(0.5, 0.5);
|
player.anchor.setTo(0.5, 0.5);
|
||||||
player.body.collideWorldBounds = true;
|
player.body.collideWorldBounds = true;
|
||||||
player.body.bounce.setTo(0.9, 0.9);
|
player.body.bounce.setTo(0.9, 0.9);
|
||||||
player.body.friction = 0.2;
|
player.body.linearDamping = 0.2;
|
||||||
player.body.gravity.setTo(0, 8);
|
player.body.gravity.setTo(0, 8);
|
||||||
|
|
||||||
// Enable input.
|
// Enable input.
|
||||||
|
|
|
@ -37,7 +37,7 @@ function create() {
|
||||||
player.anchor.setTo(0.5, 0.5);
|
player.anchor.setTo(0.5, 0.5);
|
||||||
player.body.collideWorldBounds = true;
|
player.body.collideWorldBounds = true;
|
||||||
player.body.bounce.setTo(0.9, 0.9);
|
player.body.bounce.setTo(0.9, 0.9);
|
||||||
player.body.friction = 0.2;
|
player.body.linearDamping = 0.2;
|
||||||
|
|
||||||
// Enable input.
|
// Enable input.
|
||||||
player.inputEnabled = true;
|
player.inputEnabled = true;
|
||||||
|
|
|
@ -23,7 +23,7 @@ function create() {
|
||||||
s.name = 'alien' + s;
|
s.name = 'alien' + s;
|
||||||
s.body.collideWorldBounds = true;
|
s.body.collideWorldBounds = true;
|
||||||
s.body.bounce.setTo(0.8, 0.8);
|
s.body.bounce.setTo(0.8, 0.8);
|
||||||
s.body.friction = 0;
|
s.body.linearDamping = 0;
|
||||||
s.body.minVelocity.setTo(0, 0);
|
s.body.minVelocity.setTo(0, 0);
|
||||||
s.body.velocity.setTo(10 + Math.random() * 40, 10 + Math.random() * 40);
|
s.body.velocity.setTo(10 + Math.random() * 40, 10 + Math.random() * 40);
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,11 +16,12 @@ function create() {
|
||||||
|
|
||||||
ball = game.add.sprite(400, 0, 'ball');
|
ball = game.add.sprite(400, 0, 'ball');
|
||||||
|
|
||||||
ball.body.gravity.y = 6;
|
ball.body.gravity.y = 200;
|
||||||
ball.body.bounce.y = 1;
|
ball.body.bounce.y = 1;
|
||||||
|
|
||||||
tilesprite = game.add.tileSprite(300, 450, 200, 100, 'starfield');
|
tilesprite = game.add.tileSprite(300, 450, 200, 100, 'starfield');
|
||||||
tilesprite.body.immovable = true;
|
tilesprite.body.immovable = true;
|
||||||
|
tilesprite.body.setRectangle(200, 100, 0, 0);
|
||||||
|
|
||||||
cursors = game.input.keyboard.createCursorKeys();
|
cursors = game.input.keyboard.createCursorKeys();
|
||||||
|
|
||||||
|
@ -32,13 +33,13 @@ function update() {
|
||||||
|
|
||||||
if (cursors.left.isDown)
|
if (cursors.left.isDown)
|
||||||
{
|
{
|
||||||
tilesprite.x += 8;
|
tilesprite.x -= 8;
|
||||||
tilesprite.tilePosition.x += 8;
|
tilesprite.tilePosition.x -= 8;
|
||||||
}
|
}
|
||||||
else if (cursors.right.isDown)
|
else if (cursors.right.isDown)
|
||||||
{
|
{
|
||||||
tilesprite.x -= 8;
|
tilesprite.x += 8;
|
||||||
tilesprite.tilePosition.x -= 8;
|
tilesprite.tilePosition.x += 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cursors.up.isDown)
|
if (cursors.up.isDown)
|
||||||
|
@ -54,6 +55,6 @@ function update() {
|
||||||
|
|
||||||
function render() {
|
function render() {
|
||||||
|
|
||||||
game.debug.renderSpriteBounds(tilesprite);
|
game.debug.renderPhysicsBody(tilesprite.body);
|
||||||
|
|
||||||
}
|
}
|
|
@ -43,7 +43,7 @@ function create() {
|
||||||
game.physics.gravity.y = 250;
|
game.physics.gravity.y = 250;
|
||||||
|
|
||||||
p.body.bounce.y = 0.2;
|
p.body.bounce.y = 0.2;
|
||||||
p.body.friction = 1;
|
p.body.linearDamping = 1;
|
||||||
p.body.collideWorldBounds = true;
|
p.body.collideWorldBounds = true;
|
||||||
|
|
||||||
game.camera.follow(p);
|
game.camera.follow(p);
|
||||||
|
|
|
@ -176,7 +176,7 @@ function test7() {
|
||||||
|
|
||||||
// sprite.body.gravity.y = 200;
|
// sprite.body.gravity.y = 200;
|
||||||
|
|
||||||
// sprite.body.friction = 0.2;
|
// sprite.body.linearDamping = 0.2;
|
||||||
|
|
||||||
game.input.onDown.add(launch7, this);
|
game.input.onDown.add(launch7, this);
|
||||||
|
|
||||||
|
@ -375,7 +375,7 @@ function update() {
|
||||||
|
|
||||||
if (sprite3)
|
if (sprite3)
|
||||||
{
|
{
|
||||||
game.physics.collideArray(sprite, [sprite2, sprite3]);
|
game.physics.collide(sprite, [sprite2, sprite3]);
|
||||||
game.physics.collide(sprite2, sprite3);
|
game.physics.collide(sprite2, sprite3);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -29,7 +29,7 @@ function create() {
|
||||||
car.body.collideWorldBounds = true;
|
car.body.collideWorldBounds = true;
|
||||||
car.body.bounce.setTo(0.8, 0.8);
|
car.body.bounce.setTo(0.8, 0.8);
|
||||||
car.body.allowRotation = true;
|
car.body.allowRotation = true;
|
||||||
car.body.friction = 0.4;
|
car.body.linearDamping = 0.4;
|
||||||
|
|
||||||
// car.body.acceleration.x = 10;
|
// car.body.acceleration.x = 10;
|
||||||
game.input.onDown.add(start, this);
|
game.input.onDown.add(start, this);
|
||||||
|
|
|
@ -59,13 +59,13 @@ function test8() {
|
||||||
sprite.body.bounce.setTo(0.8, 0.8);
|
sprite.body.bounce.setTo(0.8, 0.8);
|
||||||
sprite.body.minBounceVelocity = 1.2;
|
sprite.body.minBounceVelocity = 1.2;
|
||||||
sprite.body.velocity.x = -400;
|
sprite.body.velocity.x = -400;
|
||||||
sprite.body.friction = 1.2;
|
sprite.body.linearDamping = 1.2;
|
||||||
|
|
||||||
sprite2 = game.add.sprite(500, 100, 'ball');
|
sprite2 = game.add.sprite(500, 100, 'ball');
|
||||||
sprite2.body.collideWorldBounds = true;
|
sprite2.body.collideWorldBounds = true;
|
||||||
sprite2.body.bounce.setTo(0.5, 0.5);
|
sprite2.body.bounce.setTo(0.5, 0.5);
|
||||||
sprite2.body.minBounceVelocity = 0.8;
|
sprite2.body.minBounceVelocity = 0.8;
|
||||||
sprite2.body.friction = 0.5;
|
sprite2.body.linearDamping = 0.5;
|
||||||
|
|
||||||
game.input.onDown.add(launch8, this);
|
game.input.onDown.add(launch8, this);
|
||||||
|
|
||||||
|
|
|
@ -152,7 +152,7 @@ function test5() {
|
||||||
// sprite2.body.checkCollision.down = false;
|
// sprite2.body.checkCollision.down = false;
|
||||||
// sprite2.body.mass = 1;
|
// sprite2.body.mass = 1;
|
||||||
sprite2.body.bounce.setTo(1, 1);
|
sprite2.body.bounce.setTo(1, 1);
|
||||||
// sprite2.body.friction = 0;
|
// sprite2.body.linearDamping = 0;
|
||||||
|
|
||||||
game.input.onDown.add(launch5, this);
|
game.input.onDown.add(launch5, this);
|
||||||
|
|
||||||
|
@ -182,7 +182,7 @@ function test4() {
|
||||||
sprite2.body.checkCollision.down = false;
|
sprite2.body.checkCollision.down = false;
|
||||||
// sprite2.body.mass = 1;
|
// sprite2.body.mass = 1;
|
||||||
// sprite2.body.bounce.setTo(1, 1);
|
// sprite2.body.bounce.setTo(1, 1);
|
||||||
// sprite2.body.friction = 0;
|
// sprite2.body.linearDamping = 0;
|
||||||
|
|
||||||
game.input.onDown.add(launch4, this);
|
game.input.onDown.add(launch4, this);
|
||||||
|
|
||||||
|
@ -213,7 +213,7 @@ function test3() {
|
||||||
sprite2.body.bounce.setTo(0.9, 0.9);
|
sprite2.body.bounce.setTo(0.9, 0.9);
|
||||||
// sprite2.body.mass = 1;
|
// sprite2.body.mass = 1;
|
||||||
// sprite2.body.bounce.setTo(1, 1);
|
// sprite2.body.bounce.setTo(1, 1);
|
||||||
// sprite2.body.friction = 0;
|
// sprite2.body.linearDamping = 0;
|
||||||
|
|
||||||
game.input.onDown.add(launch3, this);
|
game.input.onDown.add(launch3, this);
|
||||||
|
|
||||||
|
@ -237,7 +237,7 @@ function test2() {
|
||||||
sprite.body.collideWorldBounds = true;
|
sprite.body.collideWorldBounds = true;
|
||||||
// sprite.body.checkCollision.right = false;
|
// sprite.body.checkCollision.right = false;
|
||||||
sprite.body.bounce.setTo(0.9, 0.9);
|
sprite.body.bounce.setTo(0.9, 0.9);
|
||||||
// sprite.body.friction = 0;
|
// sprite.body.linearDamping = 0;
|
||||||
// sprite.scale.setTo(2, 2);
|
// sprite.scale.setTo(2, 2);
|
||||||
// sprite.body.mass = 2;
|
// sprite.body.mass = 2;
|
||||||
|
|
||||||
|
@ -248,7 +248,7 @@ function test2() {
|
||||||
// sprite2.body.bounce.setTo(0.9, 0.9);
|
// sprite2.body.bounce.setTo(0.9, 0.9);
|
||||||
// sprite2.body.mass = 1;
|
// sprite2.body.mass = 1;
|
||||||
// sprite2.body.bounce.setTo(1, 1);
|
// sprite2.body.bounce.setTo(1, 1);
|
||||||
// sprite2.body.friction = 0;
|
// sprite2.body.linearDamping = 0;
|
||||||
|
|
||||||
game.input.onDown.add(launch2, this);
|
game.input.onDown.add(launch2, this);
|
||||||
|
|
||||||
|
@ -274,7 +274,7 @@ function test1() {
|
||||||
sprite.body.checkCollision.right = false;
|
sprite.body.checkCollision.right = false;
|
||||||
// sprite.body.bounce.setTo(0.9, 0.9);
|
// sprite.body.bounce.setTo(0.9, 0.9);
|
||||||
// sprite.body.bounce.setTo(1, 1);
|
// sprite.body.bounce.setTo(1, 1);
|
||||||
// sprite.body.friction = 0;
|
// sprite.body.linearDamping = 0;
|
||||||
// sprite.scale.setTo(2, 2);
|
// sprite.scale.setTo(2, 2);
|
||||||
// sprite.body.mass = 2;
|
// sprite.body.mass = 2;
|
||||||
|
|
||||||
|
@ -284,7 +284,7 @@ function test1() {
|
||||||
sprite2.body.bounce.setTo(0.9, 0.9);
|
sprite2.body.bounce.setTo(0.9, 0.9);
|
||||||
// sprite2.body.mass = 1;
|
// sprite2.body.mass = 1;
|
||||||
// sprite2.body.bounce.setTo(1, 1);
|
// sprite2.body.bounce.setTo(1, 1);
|
||||||
// sprite2.body.friction = 0;
|
// sprite2.body.linearDamping = 0;
|
||||||
|
|
||||||
game.input.onDown.add(launch1, this);
|
game.input.onDown.add(launch1, this);
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ function create() {
|
||||||
sprites.setAll('body.collideWorldBounds', true);
|
sprites.setAll('body.collideWorldBounds', true);
|
||||||
sprites.setAll('body.bounce.x', 1);
|
sprites.setAll('body.bounce.x', 1);
|
||||||
sprites.setAll('body.bounce.y', 1);
|
sprites.setAll('body.bounce.y', 1);
|
||||||
sprites.setAll('body.friction', 0);
|
sprites.setAll('body.linearDamping', 0);
|
||||||
sprites.setAll('body.minBounceVelocity', 0);
|
sprites.setAll('body.minBounceVelocity', 0);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,7 +138,7 @@ function test5() {
|
||||||
// sprite2.body.checkCollision.down = false;
|
// sprite2.body.checkCollision.down = false;
|
||||||
// sprite2.body.mass = 1;
|
// sprite2.body.mass = 1;
|
||||||
sprite2.body.bounce.setTo(1, 1);
|
sprite2.body.bounce.setTo(1, 1);
|
||||||
// sprite2.body.friction = 0;
|
// sprite2.body.linearDamping = 0;
|
||||||
|
|
||||||
game.input.onDown.add(launch5, this);
|
game.input.onDown.add(launch5, this);
|
||||||
|
|
||||||
|
@ -168,7 +168,7 @@ function test4() {
|
||||||
sprite2.body.checkCollision.down = false;
|
sprite2.body.checkCollision.down = false;
|
||||||
// sprite2.body.mass = 1;
|
// sprite2.body.mass = 1;
|
||||||
// sprite2.body.bounce.setTo(1, 1);
|
// sprite2.body.bounce.setTo(1, 1);
|
||||||
// sprite2.body.friction = 0;
|
// sprite2.body.linearDamping = 0;
|
||||||
|
|
||||||
game.input.onDown.add(launch4, this);
|
game.input.onDown.add(launch4, this);
|
||||||
|
|
||||||
|
@ -199,7 +199,7 @@ function test3() {
|
||||||
sprite2.body.bounce.setTo(0.9, 0.9);
|
sprite2.body.bounce.setTo(0.9, 0.9);
|
||||||
// sprite2.body.mass = 1;
|
// sprite2.body.mass = 1;
|
||||||
// sprite2.body.bounce.setTo(1, 1);
|
// sprite2.body.bounce.setTo(1, 1);
|
||||||
// sprite2.body.friction = 0;
|
// sprite2.body.linearDamping = 0;
|
||||||
|
|
||||||
game.input.onDown.add(launch3, this);
|
game.input.onDown.add(launch3, this);
|
||||||
|
|
||||||
|
@ -223,7 +223,7 @@ function test2() {
|
||||||
sprite.body.collideWorldBounds = true;
|
sprite.body.collideWorldBounds = true;
|
||||||
// sprite.body.checkCollision.right = false;
|
// sprite.body.checkCollision.right = false;
|
||||||
sprite.body.bounce.setTo(0.9, 0.9);
|
sprite.body.bounce.setTo(0.9, 0.9);
|
||||||
// sprite.body.friction = 0;
|
// sprite.body.linearDamping = 0;
|
||||||
// sprite.scale.setTo(2, 2);
|
// sprite.scale.setTo(2, 2);
|
||||||
// sprite.body.mass = 2;
|
// sprite.body.mass = 2;
|
||||||
|
|
||||||
|
@ -234,7 +234,7 @@ function test2() {
|
||||||
// sprite2.body.bounce.setTo(0.9, 0.9);
|
// sprite2.body.bounce.setTo(0.9, 0.9);
|
||||||
// sprite2.body.mass = 1;
|
// sprite2.body.mass = 1;
|
||||||
// sprite2.body.bounce.setTo(1, 1);
|
// sprite2.body.bounce.setTo(1, 1);
|
||||||
// sprite2.body.friction = 0;
|
// sprite2.body.linearDamping = 0;
|
||||||
|
|
||||||
game.input.onDown.add(launch2, this);
|
game.input.onDown.add(launch2, this);
|
||||||
|
|
||||||
|
@ -260,7 +260,7 @@ function test1() {
|
||||||
sprite.body.checkCollision.right = false;
|
sprite.body.checkCollision.right = false;
|
||||||
// sprite.body.bounce.setTo(0.9, 0.9);
|
// sprite.body.bounce.setTo(0.9, 0.9);
|
||||||
// sprite.body.bounce.setTo(1, 1);
|
// sprite.body.bounce.setTo(1, 1);
|
||||||
// sprite.body.friction = 0;
|
// sprite.body.linearDamping = 0;
|
||||||
// sprite.scale.setTo(2, 2);
|
// sprite.scale.setTo(2, 2);
|
||||||
// sprite.body.mass = 2;
|
// sprite.body.mass = 2;
|
||||||
|
|
||||||
|
@ -270,7 +270,7 @@ function test1() {
|
||||||
sprite2.body.bounce.setTo(0.9, 0.9);
|
sprite2.body.bounce.setTo(0.9, 0.9);
|
||||||
// sprite2.body.mass = 1;
|
// sprite2.body.mass = 1;
|
||||||
// sprite2.body.bounce.setTo(1, 1);
|
// sprite2.body.bounce.setTo(1, 1);
|
||||||
// sprite2.body.friction = 0;
|
// sprite2.body.linearDamping = 0;
|
||||||
|
|
||||||
game.input.onDown.add(launch1, this);
|
game.input.onDown.add(launch1, this);
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ function create() {
|
||||||
|
|
||||||
//sprite.body.drag.setTo(0, -20);
|
//sprite.body.drag.setTo(0, -20);
|
||||||
// sprite.body.drag.setTo(10, 10);
|
// sprite.body.drag.setTo(10, 10);
|
||||||
sprite.body.friction = 0.1;
|
sprite.body.linearDamping = 0.1;
|
||||||
|
|
||||||
// sprite.body.sleepMin.setTo(-50, -20);
|
// sprite.body.sleepMin.setTo(-50, -20);
|
||||||
// sprite.body.sleepMax.setTo(50, 20);
|
// sprite.body.sleepMax.setTo(50, 20);
|
||||||
|
|
|
@ -48,7 +48,7 @@ function create() {
|
||||||
balls.setAll('body.bounce.x', 0.8);
|
balls.setAll('body.bounce.x', 0.8);
|
||||||
balls.setAll('body.bounce.y', 0.9);
|
balls.setAll('body.bounce.y', 0.9);
|
||||||
balls.setAll('body.minBounceVelocity', 0.9);
|
balls.setAll('body.minBounceVelocity', 0.9);
|
||||||
balls.setAll('body.friction', 0.5);
|
balls.setAll('body.linearDamping', 0.5);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
sprite2 = game.add.sprite(340, 250, 'gameboy', 2);
|
sprite2 = game.add.sprite(340, 250, 'gameboy', 2);
|
||||||
|
@ -61,7 +61,7 @@ function create() {
|
||||||
sprite.body.collideWorldBounds = true;
|
sprite.body.collideWorldBounds = true;
|
||||||
sprite.body.minBounceVelocity = 0.9;
|
sprite.body.minBounceVelocity = 0.9;
|
||||||
sprite.body.bounce.setTo(0.5, 0.9);
|
sprite.body.bounce.setTo(0.5, 0.9);
|
||||||
sprite.body.friction = 0.5;
|
sprite.body.linearDamping = 0.5;
|
||||||
|
|
||||||
|
|
||||||
game.input.onDown.add(launch, this);
|
game.input.onDown.add(launch, this);
|
||||||
|
|
BIN
resources/Screen Shots/phaser_polygons.png
Normal file
BIN
resources/Screen Shots/phaser_polygons.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 48 KiB |
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
*
|
*
|
||||||
* Phaser - http://www.phaser.io
|
* Phaser - http://www.phaser.io
|
||||||
*
|
*
|
||||||
* v1.1.4-dev - Released November 28th 2013.
|
* v1.1.4 - Released February 5th 2014.
|
||||||
*
|
*
|
||||||
* By Richard Davey http://www.photonstorm.com @photonstorm
|
* By Richard Davey http://www.photonstorm.com @photonstorm
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ Phaser.Group = function (game, parent, name, useStage) {
|
||||||
{
|
{
|
||||||
if (parent instanceof Phaser.Group)
|
if (parent instanceof Phaser.Group)
|
||||||
{
|
{
|
||||||
parent.add(this);
|
parent._container.addChild(this._container);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -416,8 +416,6 @@ Phaser.Group.prototype = {
|
||||||
var child1 = this.getAt(index1);
|
var child1 = this.getAt(index1);
|
||||||
var child2 = this.getAt(index2);
|
var child2 = this.getAt(index2);
|
||||||
|
|
||||||
console.log('swapIndex ', index1, ' with ', index2);
|
|
||||||
|
|
||||||
this.swap(child1, child2);
|
this.swap(child1, child2);
|
||||||
|
|
||||||
},
|
},
|
||||||
|
@ -1454,102 +1452,6 @@ Phaser.Group.prototype = {
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Dumps out a list of Group children and their index positions to the browser console. Useful for group debugging.
|
|
||||||
*
|
|
||||||
* @method Phaser.Group#dump
|
|
||||||
* @param {boolean} [full=false] - If full the dump will include the entire display list, start from the Stage. Otherwise it will only include this container.
|
|
||||||
*/
|
|
||||||
dump: function (full) {
|
|
||||||
|
|
||||||
if (typeof full == 'undefined')
|
|
||||||
{
|
|
||||||
full = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
var spacing = 20;
|
|
||||||
var output = "\n" + Phaser.Utils.pad('Node', spacing) + "|" + Phaser.Utils.pad('Next', spacing) + "|" + Phaser.Utils.pad('Previous', spacing) + "|" + Phaser.Utils.pad('First', spacing) + "|" + Phaser.Utils.pad('Last', spacing);
|
|
||||||
|
|
||||||
console.log(output);
|
|
||||||
|
|
||||||
var output = Phaser.Utils.pad('----------', spacing) + "|" + Phaser.Utils.pad('----------', spacing) + "|" + Phaser.Utils.pad('----------', spacing) + "|" + Phaser.Utils.pad('----------', spacing) + "|" + Phaser.Utils.pad('----------', spacing);
|
|
||||||
console.log(output);
|
|
||||||
|
|
||||||
if (full)
|
|
||||||
{
|
|
||||||
var testObject = this.game.stage._stage.last._iNext;
|
|
||||||
var displayObject = this.game.stage._stage;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
var testObject = this._container.last._iNext;
|
|
||||||
var displayObject = this._container;
|
|
||||||
}
|
|
||||||
|
|
||||||
do
|
|
||||||
{
|
|
||||||
var name = displayObject.name || '*';
|
|
||||||
|
|
||||||
if (this.cursor == displayObject)
|
|
||||||
{
|
|
||||||
var name = '> ' + name;
|
|
||||||
}
|
|
||||||
|
|
||||||
var nameNext = '-';
|
|
||||||
var namePrev = '-';
|
|
||||||
var nameFirst = '-';
|
|
||||||
var nameLast = '-';
|
|
||||||
|
|
||||||
if (displayObject._iNext)
|
|
||||||
{
|
|
||||||
nameNext = displayObject._iNext.name;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (displayObject._iPrev)
|
|
||||||
{
|
|
||||||
namePrev = displayObject._iPrev.name;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (displayObject.first)
|
|
||||||
{
|
|
||||||
nameFirst = displayObject.first.name;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (displayObject.last)
|
|
||||||
{
|
|
||||||
nameLast = displayObject.last.name;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (typeof nameNext === 'undefined')
|
|
||||||
{
|
|
||||||
nameNext = '-';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (typeof namePrev === 'undefined')
|
|
||||||
{
|
|
||||||
namePrev = '-';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (typeof nameFirst === 'undefined')
|
|
||||||
{
|
|
||||||
nameFirst = '-';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (typeof nameLast === 'undefined')
|
|
||||||
{
|
|
||||||
nameLast = '-';
|
|
||||||
}
|
|
||||||
|
|
||||||
var output = Phaser.Utils.pad(name, spacing) + "|" + Phaser.Utils.pad(nameNext, spacing) + "|" + Phaser.Utils.pad(namePrev, spacing) + "|" + Phaser.Utils.pad(nameFirst, spacing) + "|" + Phaser.Utils.pad(nameLast, spacing);
|
|
||||||
console.log(output);
|
|
||||||
|
|
||||||
displayObject = displayObject._iNext;
|
|
||||||
|
|
||||||
}
|
|
||||||
while(displayObject != testObject)
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -206,6 +206,8 @@ Phaser.World.prototype.setBounds = function (x, y, width, height) {
|
||||||
this.camera.bounds.setTo(x, y, width, height);
|
this.camera.bounds.setTo(x, y, width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.game.physics.setBoundsToWorld();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -390,18 +390,6 @@ Phaser.Sprite = function (game, x, y, key, frame) {
|
||||||
Phaser.Sprite.prototype = Object.create(PIXI.Sprite.prototype);
|
Phaser.Sprite.prototype = Object.create(PIXI.Sprite.prototype);
|
||||||
Phaser.Sprite.prototype.constructor = Phaser.Sprite;
|
Phaser.Sprite.prototype.constructor = Phaser.Sprite;
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
Phaser.Sprite.prototype.initGroup = function() {
|
|
||||||
|
|
||||||
// this.world.setTo(this.parent.position.x + this.x, this.parent.position.y + this.y);
|
|
||||||
|
|
||||||
// console.log('Sprite initGroup', this.world);
|
|
||||||
console.log('Sprite initGroup', this.group.x, this.group.y);
|
|
||||||
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Automatically called by World.preUpdate. Handles cache updates, lifespan checks, animation updates and physics updates.
|
* Automatically called by World.preUpdate. Handles cache updates, lifespan checks, animation updates and physics updates.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author @karlmacklin <tacklemcclean@gmail.com>
|
* @author @karlmacklin <tacklemcclean@gmail.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author @karlmacklin <tacklemcclean@gmail.com>
|
* @author @karlmacklin <tacklemcclean@gmail.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author @karlmacklin <tacklemcclean@gmail.com>
|
* @author @karlmacklin <tacklemcclean@gmail.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -269,13 +269,6 @@ Phaser.Touch.prototype = {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
for (var i = 0; i < event.changedTouches.length; i++)
|
|
||||||
{
|
|
||||||
//console.log('touch enter');
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -298,13 +291,6 @@ Phaser.Touch.prototype = {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
for (var i = 0; i < event.changedTouches.length; i++)
|
|
||||||
{
|
|
||||||
//console.log('touch leave');
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,6 @@ PIXI.DisplacementFilter = function(texture)
|
||||||
texture.baseTexture._powerOf2 = true;
|
texture.baseTexture._powerOf2 = true;
|
||||||
|
|
||||||
// set the uniforms
|
// set the uniforms
|
||||||
//console.log()
|
|
||||||
this.uniforms = {
|
this.uniforms = {
|
||||||
displacementMap: {type: 'sampler2D', value:texture},
|
displacementMap: {type: 'sampler2D', value:texture},
|
||||||
scale: {type: '2f', value:{x:30, y:30}},
|
scale: {type: '2f', value:{x:30, y:30}},
|
||||||
|
|
|
@ -52,9 +52,6 @@ PIXI.WebGLFilterManager.prototype.pushFilter = function(filterBlock)
|
||||||
|
|
||||||
this.getBounds(filterBlock.target);
|
this.getBounds(filterBlock.target);
|
||||||
|
|
||||||
// addpadding?
|
|
||||||
//displayObject.filterArea.x
|
|
||||||
|
|
||||||
var filterArea = filterBlock.target.filterArea;
|
var filterArea = filterBlock.target.filterArea;
|
||||||
|
|
||||||
var padidng = filter.padding;
|
var padidng = filter.padding;
|
||||||
|
@ -72,7 +69,6 @@ PIXI.WebGLFilterManager.prototype.pushFilter = function(filterBlock)
|
||||||
//gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, filterArea.width, filterArea.height, 0, gl.RGBA, gl.UNSIGNED_BYTE, null);
|
//gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, filterArea.width, filterArea.height, 0, gl.RGBA, gl.UNSIGNED_BYTE, null);
|
||||||
gl.bindFramebuffer(gl.FRAMEBUFFER, texture.frameBuffer);
|
gl.bindFramebuffer(gl.FRAMEBUFFER, texture.frameBuffer);
|
||||||
|
|
||||||
//console.log(filterArea)
|
|
||||||
// set view port
|
// set view port
|
||||||
gl.viewport(0, 0, filterArea.width, filterArea.height);
|
gl.viewport(0, 0, filterArea.width, filterArea.height);
|
||||||
|
|
||||||
|
@ -82,7 +78,6 @@ PIXI.WebGLFilterManager.prototype.pushFilter = function(filterBlock)
|
||||||
PIXI.offset.x = -filterArea.x;
|
PIXI.offset.x = -filterArea.x;
|
||||||
PIXI.offset.y = -filterArea.y;
|
PIXI.offset.y = -filterArea.y;
|
||||||
|
|
||||||
//console.log(PIXI.defaultShader.projectionVector)
|
|
||||||
// update projection
|
// update projection
|
||||||
gl.uniform2f(PIXI.defaultShader.projectionVector, filterArea.width/2, -filterArea.height/2);
|
gl.uniform2f(PIXI.defaultShader.projectionVector, filterArea.width/2, -filterArea.height/2);
|
||||||
gl.uniform2f(PIXI.defaultShader.offsetVector, -filterArea.x, -filterArea.y);
|
gl.uniform2f(PIXI.defaultShader.offsetVector, -filterArea.x, -filterArea.y);
|
||||||
|
@ -92,10 +87,7 @@ PIXI.WebGLFilterManager.prototype.pushFilter = function(filterBlock)
|
||||||
gl.clearColor(0,0,0, 0);
|
gl.clearColor(0,0,0, 0);
|
||||||
gl.clear(gl.COLOR_BUFFER_BIT);
|
gl.clear(gl.COLOR_BUFFER_BIT);
|
||||||
|
|
||||||
//filter.texture = texture;
|
|
||||||
filterBlock._glFilterTexture = texture;
|
filterBlock._glFilterTexture = texture;
|
||||||
|
|
||||||
//console.log("PUSH")
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -292,12 +284,10 @@ PIXI.WebGLFilterManager.prototype.applyFilterPass = function(filter, filterArea,
|
||||||
|
|
||||||
if(filter.uniforms.dimensions)
|
if(filter.uniforms.dimensions)
|
||||||
{
|
{
|
||||||
//console.log(filter.uniforms.dimensions)
|
|
||||||
filter.uniforms.dimensions.value[0] = this.width;//width;
|
filter.uniforms.dimensions.value[0] = this.width;//width;
|
||||||
filter.uniforms.dimensions.value[1] = this.height;//height;
|
filter.uniforms.dimensions.value[1] = this.height;//height;
|
||||||
filter.uniforms.dimensions.value[2] = this.vertexArray[0];
|
filter.uniforms.dimensions.value[2] = this.vertexArray[0];
|
||||||
filter.uniforms.dimensions.value[3] = this.vertexArray[5];//filterArea.height;
|
filter.uniforms.dimensions.value[3] = this.vertexArray[5];//filterArea.height;
|
||||||
// console.log(this.vertexArray[5])
|
|
||||||
}
|
}
|
||||||
|
|
||||||
shader.syncUniforms();
|
shader.syncUniforms();
|
||||||
|
@ -463,14 +453,9 @@ PIXI.WebGLFilterManager.prototype.getBounds = function(displayObject)
|
||||||
}
|
}
|
||||||
while(tempObject !== testObject);
|
while(tempObject !== testObject);
|
||||||
|
|
||||||
// maximum bounds is the size of the screen..
|
|
||||||
//minX = minX > 0 ? minX : 0;
|
|
||||||
//minY = minY > 0 ? minY : 0;
|
|
||||||
|
|
||||||
displayObject.filterArea.x = minX;
|
displayObject.filterArea.x = minX;
|
||||||
displayObject.filterArea.y = minY;
|
displayObject.filterArea.y = minY;
|
||||||
|
|
||||||
// console.log(maxX+ " : " + minX)
|
|
||||||
displayObject.filterArea.width = maxX - minX;
|
displayObject.filterArea.width = maxX - minX;
|
||||||
displayObject.filterArea.height = maxY - minY;
|
displayObject.filterArea.height = maxY - minY;
|
||||||
};
|
};
|
||||||
|
|
|
@ -194,9 +194,6 @@ PIXI.WebGLRenderGroup.prototype.renderSpecific = function(displayObject, project
|
||||||
endBatch = lastRenderable;
|
endBatch = lastRenderable;
|
||||||
}
|
}
|
||||||
|
|
||||||
//console.log(endBatch);
|
|
||||||
// TODO - need to fold this up a bit!
|
|
||||||
|
|
||||||
if(startBatch == endBatch)
|
if(startBatch == endBatch)
|
||||||
{
|
{
|
||||||
if(startBatch instanceof PIXI.WebGLBatch)
|
if(startBatch instanceof PIXI.WebGLBatch)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -710,8 +710,6 @@ Phaser.StageScaleMode.prototype = {
|
||||||
var availableWidth = window.innerWidth;
|
var availableWidth = window.innerWidth;
|
||||||
var availableHeight = window.innerHeight;
|
var availableHeight = window.innerHeight;
|
||||||
|
|
||||||
// console.log('available', availableWidth, availableHeight);
|
|
||||||
|
|
||||||
if (this.maxWidth && availableWidth > this.maxWidth)
|
if (this.maxWidth && availableWidth > this.maxWidth)
|
||||||
{
|
{
|
||||||
this.width = this.maxWidth;
|
this.width = this.maxWidth;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* @author Richard Davey <rich@photonstorm.com>
|
* @author Richard Davey <rich@photonstorm.com>
|
||||||
* @copyright 2013 Photon Storm Ltd.
|
* @copyright 2014 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue