Skip to content

Commit

Permalink
Tidied up the Examples, fixed Arcade Physics Body, added Body enable …
Browse files Browse the repository at this point in the history
…support to Group and fixed QuadTree.
  • Loading branch information
photonstorm committed Mar 10, 2014
1 parent c4183d2 commit 8fff386
Show file tree
Hide file tree
Showing 56 changed files with 62,955 additions and 63,328 deletions.
5,370 changes: 5,370 additions & 0 deletions build/custom/ninja.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions build/custom/ninja.min.js

Large diffs are not rendered by default.

3,016 changes: 3,002 additions & 14 deletions build/custom/p2.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions build/custom/p2.min.js

Large diffs are not rendered by default.

8,656 changes: 213 additions & 8,443 deletions build/custom/phaser-no-libs.js

Large diffs are not rendered by default.

14 changes: 6 additions & 8 deletions build/custom/phaser-no-libs.min.js

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions build/custom/pixi.js
Original file line number Diff line number Diff line change
Expand Up @@ -9035,7 +9035,6 @@ PIXI.BaseTexture.prototype.updateSourceImage = function(newSrc)
PIXI.BaseTexture.fromImage = function(imageUrl, crossorigin, scaleMode)
{
var baseTexture = PIXI.BaseTextureCache[imageUrl];
crossorigin = !crossorigin;

if(!baseTexture)
{
Expand Down Expand Up @@ -9561,7 +9560,7 @@ PIXI.RenderTexture.tempMatrix = new PIXI.Matrix();
}
exports.PIXI = PIXI;
} else if (typeof define !== 'undefined' && define.amd) {
define(PIXI);
define('PIXI', (function() { return root.PIXI = PIXI; })() );
} else {
root.PIXI = PIXI;
}
Expand Down
2 changes: 1 addition & 1 deletion build/custom/pixi.min.js

Large diffs are not rendered by default.

74 changes: 1 addition & 73 deletions build/phaser.d.ts
Original file line number Diff line number Diff line change
@@ -1,76 +1,3 @@
declare class SAT {

flattenPointsOn(points: Array<SAT.Vector>, normal: SAT.Vector, result: Array<number>): Array<number>;
isSeparatingAxis(aPos: SAT.Vector, bPos: SAT.Vector, aPoints: Array<SAT.Vector>, bPoints: Array<SAT.Vector>, axis: SAT.Vector, response: SAT.Response): boolean;
vornoiRegion(line: SAT.Vector, point: SAT.Vector): number;
testCircleCircle(a: SAT.Circle, b: SAT.Circle, response: SAT.Response): boolean;
testPolygonCircle(a: SAT.Polygon, b: SAT.Circle, response: SAT.Response): boolean;
testCirclePolygon(a: SAT.Circle, b: SAT.Polygon, response: SAT.Response): boolean;
testPolygonPolygon(a: SAT.Polygon, b: SAT.Polygon, response: SAT.Response): boolean;

}

declare module SAT {

class Vector {
constructor(x: number, y: number);
x: number;
y: number;
copy(other: SAT.Vector): SAT.Vector;
perp(): SAT.Vector;
rotate(angle: number): SAT.Vector;
rotatePrecalc(sin: number, cos: number): SAT.Vector;
reverse(): SAT.Vector;
normalize(): SAT.Vector;
add(other: SAT.Vector): SAT.Vector;
sub(other: SAT.Vector): SAT.Vector;
scale(x: number, y: number): SAT.Vector;
project(other: SAT.Vector): SAT.Vector;
projectN(other: SAT.Vector): SAT.Vector;
reflect(axis: SAT.Vector): SAT.Vector;
reflectN(axis: SAT.Vector): SAT.Vector;
dot(other: SAT.Vector): SAT.Vector;
len2(): SAT.Vector;
len(): SAT.Vector;
}

class Circle {
constructor(pos: SAT.Vector, radius: number);
pos: SAT.Vector;
r: number;
}

class Polygon {
constructor(pos: SAT.Vector, points: Array<SAT.Vector>);
pos: SAT.Vector;
points: Array<SAT.Vector>;
recalc(): SAT.Polygon;
rotate(angle: number): SAT.Polygon;
scale(x: number, y: number): SAT.Polygon;
translate(x: number, y: number): SAT.Polygon;
}

class Box {
constructor(pos: SAT.Vector, w: number, h: number);
pos: SAT.Vector;
w: number;
h: number;
toPolygon(): SAT.Polygon;
}

class Response {
constructor();
a: any;
b: any;
overlapN: SAT.Vector;
overlapV: SAT.Vector;
clear(): SAT.Response;
aInB: boolean;
bInA: boolean;
overlap: number;
}
}

// Type definitions for PIXI 1.5.1
// Project: https://github.com/GoodBoyDigital/pixi.js/
// Original 1.3 by: xperiments <http://github.com/xperiments>
Expand Down Expand Up @@ -2890,6 +2817,7 @@ declare module Phaser {
insert(body: any): void;
populate(group: Phaser.Group): void;
populateHandler(sprite: Phaser.Sprite): void;
reset(x: number, y: number, width: number, height: number, maxObject?: number, maxLevels?: number, level?: number): void;
retrieve(sprite: Object): any[];
split(): void;
//I am not sure these are relevant? Searching in the code yeilds no result
Expand Down
Loading

0 comments on commit 8fff386

Please sign in to comment.