2.0.5 dist files.

This commit is contained in:
photonstorm 2014-05-20 10:02:23 +01:00
parent 88306b6e12
commit b8a2b9347f
11 changed files with 4328 additions and 746 deletions

View file

@ -12931,7 +12931,6 @@ Phaser.Physics.P2.prototype = {
{
output.push(body);
}
}
return output;
@ -12956,7 +12955,7 @@ Phaser.Physics.P2.prototype = {
map.layers[layer].bodies[i].destroy();
}
map.layers[layer].bodies.length = [];
map.layers[layer].bodies.length = 0;
},
@ -12995,7 +12994,7 @@ Phaser.Physics.P2.prototype = {
{
var tile = map.layers[layer].data[y][x];
if (tile && tile.collides)
if (tile && tile.index > -1 && tile.collides)
{
if (optimize)
{
@ -15472,6 +15471,7 @@ Object.defineProperty(Phaser.Physics.P2.Body.prototype, "debug", {
/**
* A Body can be set to collide against the World bounds automatically if this is set to true. Otherwise it will leave the World.
* Note that this only applies if your World has bounds! The response to the collision should be managed via CollisionMaterials.
*
* @name Phaser.Physics.P2.Body#collideWorldBounds
* @property {boolean} collideWorldBounds - Should the Body collide with the World bounds?
*/
@ -16151,7 +16151,7 @@ Phaser.Physics.P2.DistanceConstraint = function (world, bodyA, bodyB, distance,
distance = world.pxm(distance);
p2.DistanceConstraint.call(this, bodyA, bodyB, distance, maxForce);
p2.DistanceConstraint.call(this, bodyA, bodyB, distance, {maxForce: maxForce});
};

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

View file

@ -9592,29 +9592,55 @@ PIXI.RenderTexture = function(width, height, renderer, scaleMode)
PIXI.RenderTexture.prototype = Object.create(PIXI.Texture.prototype);
PIXI.RenderTexture.prototype.constructor = PIXI.RenderTexture;
PIXI.RenderTexture.prototype.resize = function(width, height)
/**
* Resize the RenderTexture.
*
* @method resize
* @param width {Number} The width to resize to.
* @param height {Number} The height to resize to.
* @param updateBase {Boolean} Should the baseTexture.width and height values be resized as well?
*/
PIXI.RenderTexture.prototype.resize = function(width, height, updateBase)
{
if (width === this.width && height === this.height)
{
return;
}
this.width = width;
this.height = height;
this.frame.width = this.width;
this.frame.height = this.height;
if(this.renderer.type === PIXI.WEBGL_RENDERER)
if (updateBase)
{
this.baseTexture.width = this.width;
this.baseTexture.height = this.height;
}
if (this.renderer.type === PIXI.WEBGL_RENDERER)
{
this.projection.x = this.width / 2;
this.projection.y = -this.height / 2;
var gl = this.renderer.gl;
gl.bindTexture(gl.TEXTURE_2D, this.baseTexture._glTextures[gl.id]);
gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, this.width, this.height, 0, gl.RGBA, gl.UNSIGNED_BYTE, null);
}
else
this.textureBuffer.resize(this.width, this.height);
};
/**
* Clears the RenderTexture.
*
* @method clear
*/
PIXI.RenderTexture.prototype.clear = function()
{
if (this.renderer.type === PIXI.WEBGL_RENDERER)
{
this.textureBuffer.resize(this.width, this.height);
this.renderer.gl.bindFramebuffer(this.renderer.gl.FRAMEBUFFER, this.textureBuffer.frameBuffer);
}
PIXI.Texture.frameUpdates.push(this);
this.textureBuffer.clear();
};
/**

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

37
build/phaser.min.js vendored

File diff suppressed because one or more lines are too long