Skip to content

Commit 9f23c37

Browse files
committed
0.9.4 release
1 parent b6f8a3f commit 9f23c37

4 files changed

Lines changed: 35 additions & 32 deletions

File tree

Tests/Tests.csproj

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,6 @@
9696
<TypeScriptCompile Include="sprites\dynamic texture 1.ts" />
9797
</ItemGroup>
9898
<ItemGroup>
99-
<Content Include="tweens\properties.js">
100-
<DependentUpon>properties.ts</DependentUpon>
101-
</Content>
102-
<TypeScriptCompile Include="tweens\properties.ts" />
103-
<TypeScriptCompile Include="misc\screen grab.ts" />
104-
<Content Include="misc\screen grab.js">
105-
<DependentUpon>screen grab.ts</DependentUpon>
106-
</Content>
10799
<TypeScriptCompile Include="sprites\align.ts" />
108100
<TypeScriptCompile Include="scrollzones\simple scrollzone.ts" />
109101
<TypeScriptCompile Include="scrollzones\ballscroller.ts" />

Tests/phaser.js

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3621,7 +3621,7 @@ var Phaser;
36213621
* @return {Boolean} A value of true if the Circle objects diameter is less than or equal to 0; otherwise false.
36223622
**/
36233623
function () {
3624-
if(this._diameter < 1) {
3624+
if(this._diameter <= 0) {
36253625
return true;
36263626
}
36273627
return false;
@@ -7619,7 +7619,7 @@ var Phaser;
76197619
/**
76207620
* Phaser
76217621
*
7622-
* v0.9.4 - April 24th 2013
7622+
* v0.9.4 - April 28th 2013
76237623
*
76247624
* A small and feature-packed 2D canvas game framework born from the firey pits of Flixel and Kiwi.
76257625
*
@@ -8486,7 +8486,6 @@ var Phaser;
84868486
this.onStart.dispatch(this._object);
84878487
this._startTime = this._game.time.now + this._delayTime;
84888488
for(var property in this._valuesEnd) {
8489-
console.log(typeof property);
84908489
// This prevents the interpolation of null values or of non-existing properties
84918490
if(this._object[property] === null || !(property in this._object)) {
84928491
throw Error('Phaser.Tween interpolation of null value of non-existing property');
@@ -8665,8 +8664,8 @@ var Phaser;
86658664
var World = (function () {
86668665
function World(game, width, height) {
86678666
this._game = game;
8668-
this._cameras = new Phaser.CameraManager(this._game, 0, 0, width, height);
8669-
this._game.camera = this._cameras.current;
8667+
this.cameras = new Phaser.CameraManager(this._game, 0, 0, width, height);
8668+
this._game.camera = this.cameras.current;
86708669
this.group = new Phaser.Group(this._game, 0);
86718670
this.bounds = new Phaser.Rectangle(0, 0, width, height);
86728671
this.worldDivisions = 6;
@@ -8675,15 +8674,15 @@ var Phaser;
86758674
this.group.preUpdate();
86768675
this.group.update();
86778676
this.group.postUpdate();
8678-
this._cameras.update();
8677+
this.cameras.update();
86798678
};
86808679
World.prototype.render = function () {
86818680
// Unlike in flixel our render process is camera driven, not group driven
8682-
this._cameras.render();
8681+
this.cameras.render();
86838682
};
86848683
World.prototype.destroy = function () {
86858684
this.group.destroy();
8686-
this._cameras.destroy();
8685+
this.cameras.destroy();
86878686
};
86888687
World.prototype.setSize = // World methods
86898688
function (width, height, updateCameraBounds) {
@@ -8744,13 +8743,13 @@ var Phaser;
87448743
});
87458744
World.prototype.createCamera = // Cameras
87468745
function (x, y, width, height) {
8747-
return this._cameras.addCamera(x, y, width, height);
8746+
return this.cameras.addCamera(x, y, width, height);
87488747
};
87498748
World.prototype.removeCamera = function (id) {
8750-
return this._cameras.removeCamera(id);
8749+
return this.cameras.removeCamera(id);
87518750
};
87528751
World.prototype.getAllCameras = function () {
8753-
return this._cameras.getAll();
8752+
return this.cameras.getAll();
87548753
};
87558754
World.prototype.createSprite = // Game Objects
87568755
function (x, y, key) {
@@ -11859,7 +11858,6 @@ var Phaser;
1185911858
this.onUpdateCallback = null;
1186011859
this.onRenderCallback = null;
1186111860
this.onPausedCallback = null;
11862-
this.camera = null;
1186311861
this.cache = null;
1186411862
this.input = null;
1186511863
this.loader = null;
@@ -11947,6 +11945,13 @@ var Phaser;
1194711945
if (typeof notifyCallback === "undefined") { notifyCallback = null; }
1194811946
return this.collision.overlap(objectOrGroup1, objectOrGroup2, notifyCallback, Phaser.Collision.separate);
1194911947
};
11948+
Object.defineProperty(Game.prototype, "camera", {
11949+
get: function () {
11950+
return this.world.cameras.current;
11951+
},
11952+
enumerable: true,
11953+
configurable: true
11954+
});
1195011955
return Game;
1195111956
})();
1195211957
Phaser.Game = Game;

build/phaser.js renamed to build/phaser-094.js

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3621,7 +3621,7 @@ var Phaser;
36213621
* @return {Boolean} A value of true if the Circle objects diameter is less than or equal to 0; otherwise false.
36223622
**/
36233623
function () {
3624-
if(this._diameter < 1) {
3624+
if(this._diameter <= 0) {
36253625
return true;
36263626
}
36273627
return false;
@@ -7619,7 +7619,7 @@ var Phaser;
76197619
/**
76207620
* Phaser
76217621
*
7622-
* v0.9.4 - April 24th 2013
7622+
* v0.9.4 - April 28th 2013
76237623
*
76247624
* A small and feature-packed 2D canvas game framework born from the firey pits of Flixel and Kiwi.
76257625
*
@@ -8486,7 +8486,6 @@ var Phaser;
84868486
this.onStart.dispatch(this._object);
84878487
this._startTime = this._game.time.now + this._delayTime;
84888488
for(var property in this._valuesEnd) {
8489-
console.log(typeof property);
84908489
// This prevents the interpolation of null values or of non-existing properties
84918490
if(this._object[property] === null || !(property in this._object)) {
84928491
throw Error('Phaser.Tween interpolation of null value of non-existing property');
@@ -8665,8 +8664,8 @@ var Phaser;
86658664
var World = (function () {
86668665
function World(game, width, height) {
86678666
this._game = game;
8668-
this._cameras = new Phaser.CameraManager(this._game, 0, 0, width, height);
8669-
this._game.camera = this._cameras.current;
8667+
this.cameras = new Phaser.CameraManager(this._game, 0, 0, width, height);
8668+
this._game.camera = this.cameras.current;
86708669
this.group = new Phaser.Group(this._game, 0);
86718670
this.bounds = new Phaser.Rectangle(0, 0, width, height);
86728671
this.worldDivisions = 6;
@@ -8675,15 +8674,15 @@ var Phaser;
86758674
this.group.preUpdate();
86768675
this.group.update();
86778676
this.group.postUpdate();
8678-
this._cameras.update();
8677+
this.cameras.update();
86798678
};
86808679
World.prototype.render = function () {
86818680
// Unlike in flixel our render process is camera driven, not group driven
8682-
this._cameras.render();
8681+
this.cameras.render();
86838682
};
86848683
World.prototype.destroy = function () {
86858684
this.group.destroy();
8686-
this._cameras.destroy();
8685+
this.cameras.destroy();
86878686
};
86888687
World.prototype.setSize = // World methods
86898688
function (width, height, updateCameraBounds) {
@@ -8744,13 +8743,13 @@ var Phaser;
87448743
});
87458744
World.prototype.createCamera = // Cameras
87468745
function (x, y, width, height) {
8747-
return this._cameras.addCamera(x, y, width, height);
8746+
return this.cameras.addCamera(x, y, width, height);
87488747
};
87498748
World.prototype.removeCamera = function (id) {
8750-
return this._cameras.removeCamera(id);
8749+
return this.cameras.removeCamera(id);
87518750
};
87528751
World.prototype.getAllCameras = function () {
8753-
return this._cameras.getAll();
8752+
return this.cameras.getAll();
87548753
};
87558754
World.prototype.createSprite = // Game Objects
87568755
function (x, y, key) {
@@ -11859,7 +11858,6 @@ var Phaser;
1185911858
this.onUpdateCallback = null;
1186011859
this.onRenderCallback = null;
1186111860
this.onPausedCallback = null;
11862-
this.camera = null;
1186311861
this.cache = null;
1186411862
this.input = null;
1186511863
this.loader = null;
@@ -11947,6 +11945,13 @@ var Phaser;
1194711945
if (typeof notifyCallback === "undefined") { notifyCallback = null; }
1194811946
return this.collision.overlap(objectOrGroup1, objectOrGroup2, notifyCallback, Phaser.Collision.separate);
1194911947
};
11948+
Object.defineProperty(Game.prototype, "camera", {
11949+
get: function () {
11950+
return this.world.cameras.current;
11951+
},
11952+
enumerable: true,
11953+
configurable: true
11954+
});
1195011955
return Game;
1195111956
})();
1195211957
Phaser.Game = Game;

build/phaser-094.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)