Skip to content

Commit f4ff4d8

Browse files
committed
1.1.6 release. The final of the 1.1 branch.
1 parent 529d210 commit f4ff4d8

194 files changed

Lines changed: 3230 additions & 1396 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 41 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
![Phaser Logo](http://www.photonstorm.com/wp-content/uploads/2013/09/phaser_10_release.jpg)
22

3-
Phaser 1.1.5
3+
Phaser 1.1.6
44
============
55

66
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.
77

8-
Version: 1.1.5 "Saldaea" - Released: 12th February 2014
8+
Version: 1.1.6 "Shienar" - Released: 24th February 2014
99

1010
By Richard Davey, [Photon Storm](http://www.photonstorm.com)
1111

@@ -23,7 +23,7 @@ By Richard Davey, [Photon Storm](http://www.photonstorm.com)
2323
Welcome to Phaser
2424
-----------------
2525

26-
This 1.1.5 release is released to address issues in 1.1.4 that we didn't want you to have to wait too long for.
26+
1.1.6 is the final point release before Phaser 2.0 is released this March.
2727

2828
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:
2929

@@ -46,10 +46,12 @@ Phaser is everything we ever wanted from an HTML5 game framework. It powers all
4646
![MiniCybernoid](http://www.photonstorm.com/wp-content/uploads/2013/10/phaser-cybernoid-640x480.png)
4747

4848

49-
Help Test 1.2
49+
Help Test 2.0
5050
-------------
5151

52-
You'll notice a new [1.2 branch](https://github.com/photonstorm/phaser/tree/1.2) on github. Please help test out 1.2 as much as you can. It features the brand new Pixi 1.5 internally as well as nearly complete integration with p2.js for all physics (dropping ArcadePhysics entirely). New versions are being pushed several times a day, so be sure to update and pull often. Don't expect to just run old games right under it yet, but please do check out the new tests, experiment and poke it around as much as you can - thank you!
52+
Originally we were going to release Phaser 1.2 next, however after working solidly on it for a while we realise it's such a large and API breaking/changing update that we need to ste-up the version to 2.0 to avoid any possible confusion. Progress has been rapid and we'd love for you to help test it. You'll notice a new [1.2 branch](https://github.com/photonstorm/phaser/tree/1.2) on github - we're going to keep the branch name as 1.2 as we're nearly at the end of development now, but please understand this is what will actually be the 2.0 release.
53+
54+
Please help test out 1.2/2.0 as much as you can. It features the brand new Pixi 1.5 internally as well as nearly complete integration with p2.js for all physics (dropping ArcadePhysics entirely). New versions are being pushed several times a day, so be sure to update and pull often. Don't expect to just run old games right under it yet, but please do check out the new tests, experiment and poke it around as much as you can - thank you!
5355

5456

5557
Getting Started Guides
@@ -65,24 +67,30 @@ There is also an [un-official Getting Started Guide](http://www.antonoffplus.com
6567
Change Log
6668
----------
6769

68-
Version 1.1.5 - "Saldaea" - 12th February 2014
70+
Version 1.1.6 - "Shienar" - 24th February 2014
71+
72+
New Examples:
73+
74+
* Added lovely new little mini golf game by jpcloud.
75+
76+
77+
Updates:
78+
79+
* Loader can now load JSON files natively (thanks lucas)
80+
* TilemapParser now errors if the tileset isn't the right size
81+
6982

7083
Bug Fixes:
7184

72-
* Explicitly paused Timer continues if you un-focus and focus the browser window (thanks georgiee)
73-
* Added TimerEvent.pendingDelete and checks in Timer.update, so that removing an event in a callback no longer throws an exception (thanks georgiee)
74-
* Fixed TypeScript defs on lines 1741-1748 (thanks wombatbuddy)
75-
* Added SAT.js to TypeScript definition. Now compiles properly.
76-
* Added missing Line.js to the Grunt file.
77-
* Tilemap#paste diffX and diffY equations changed, fixed issue #393 (thanks brejep)
78-
* Added missing return value in Body.hitLeft and hitRight, fixes issue #398 (thanks ram64).
79-
* Fixed easing tween example case. Issue #379 (thanks wesleywerner)
80-
* Removed SAT.js UMD wrapped, fixes issue #361 (thanks luizbills)
81-
* Removed inContact check from Body.separate.
82-
* Fixed Tilemap docs (wrongly pointed to Tileset methods)
85+
* Updated Physics.Body.applyDamping so that velocity is reduced down to zero properly (thanks caezs)
86+
* ArcadePhysics.collideSpriteVsTilemapLayer wouldn't call the process or collide callbacks if only 1 tile was involved in the check (thanks mandarinx)
87+
* Lots of documentation fixes (thanks nhowell)
88+
* Fix for PixiPatch so it renders masks again (thanks georgios)
89+
* Modified ArcadePhysics.intersects so it returns a value as well as asigns (thanks bunnyhero)
90+
* Lots of TypeScript defs fixes (thanks clark)
8391

8492

85-
See the full Change Log for all the 1.1.4 updates and API changes (as there were a lot of them!)
93+
See the full Change Log for all the 1.1.4 and 1.1.5 updates and API changes (as there were a lot of them!)
8694

8795
You can view the Change Log for all previous versions at https://github.com/photonstorm/phaser/changelog.md
8896

@@ -120,11 +128,11 @@ CDNJS
120128

121129
Thanks to a community member Phaser is now available on [CDNJS](http://cdnjs.com). You can include the following in your html:
122130

123-
`http://cdnjs.cloudflare.com/ajax/libs/phaser/1.1.4/phaser.min.js`
131+
`http://cdnjs.cloudflare.com/ajax/libs/phaser/1.1.5/phaser.min.js`
124132

125133
Or if you prefer you can leave the protocol off, so it works via http and https:
126134

127-
`//cdnjs.cloudflare.com/ajax/libs/phaser/1.1.4/phaser.min.js`
135+
`//cdnjs.cloudflare.com/ajax/libs/phaser/1.1.5/phaser.min.js`
128136

129137

130138
Requirements
@@ -231,34 +239,39 @@ Road Map
231239

232240
Here is what's on our road map for the coming months:
233241

234-
Version 1.2 ("Shienar")
242+
March 2014 will see Phaser 2.0 ("Aes Sedai") Released. The new features and fixes already implemented are vast, and include:
235243

236244
* Update to Pixi 1.5 - this newly released build has lots of internal changes and new features we want to take advantage of.
245+
* Integration of the p2.js physics system and removal of the old ArcadePhysics. Full body dynamics are go!
246+
* Better CocoonJS packaging features (screencanvas, audio checks, etc)
247+
* Fixed width bitmap font support, plus enhanced Bitmap font rendering.
248+
* Significantly optimised render and update loops. We're seeing significant fps improvements across the board.
249+
* Literally hundreds of bug fixes across all core classes.
237250

238-
Version 1.3 ("Tarabon")
251+
Beyond version 2.0 here are some of the features planned for the future:
252+
253+
Version 2.1 ("Shienar")
239254

240255
* Enhance the State Management, so you can perform non-destructive State swaps and persistence.
241-
* Dedicated CocoonJS packaging features (screencanvas, etc)
242256
* A more advanced Particle system, one that can render to a single canvas (rather than spawn hundreds of Sprites), more advanced effects, etc.
243257
* Ability to control DOM elements from the core game and layer them into the game.
244258
* Touch Gestures.
245259
* Support for parallel asset loading.
246-
* Fixed width bitmap font support, plus enhanced Bitmap font rendering.
247260

248-
Version 2.0 ("Aes Sedai")
261+
Version 2.2 ("Tarabon")
249262

250-
* Integrate p2.js physics system completely.
251263
* Comprehensive testing across Firefox OS devices, CocoonJS and Ejecta.
252264
* Integration with third party services like Google Play Game Services and Amazon JS SDK.
253265
* Flash CC HTML5 export integration.
254-
* Massively enhance the audio side of Phaser. Although it does what it does well, it could do with taking more advantage of Web Audio - echo effects, positional sound, etc.
266+
* Massively enhance the audio side of Phaser. Take more advantage of Web Audio: echo effects, positional sound, etc.
255267

256-
Beyond version 2.0
268+
Beyond version 2.2
257269

258270
* Test out packaging with Node-webkit.
259271
* Game parameters stored in Google Docs.
260272
* Look at HiDPI Canvas settings.
261273
* Multiple Camera support.
274+
* DragonBones support.
262275

263276

264277
Contributing

changelog.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
11
Change Log
22
==========
33

4+
Version 1.1.5 - "Saldaea" - 12th February 2014
5+
----------------------------------------------
6+
7+
Bug Fixes:
8+
9+
* Explicitly paused Timer continues if you un-focus and focus the browser window (thanks georgiee)
10+
* Added TimerEvent.pendingDelete and checks in Timer.update, so that removing an event in a callback no longer throws an exception (thanks georgiee)
11+
* Fixed TypeScript defs on lines 1741-1748 (thanks wombatbuddy)
12+
* Added SAT.js to TypeScript definition. Now compiles properly.
13+
* Added missing Line.js to the Grunt file.
14+
* Tilemap#paste diffX and diffY equations changed, fixed issue #393 (thanks brejep)
15+
* Added missing return value in Body.hitLeft and hitRight, fixes issue #398 (thanks ram64).
16+
* Fixed easing tween example case. Issue #379 (thanks wesleywerner)
17+
* Removed SAT.js UMD wrapped, fixes issue #361 (thanks luizbills)
18+
* Removed inContact check from Body.separate.
19+
* Fixed Tilemap docs (wrongly pointed to Tileset methods)
20+
21+
422
Version 1.1.4 - "Kandor" - February 5th 2014
523
--------------------------------------------
624

docs/Animation.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ <h1 class="page-title">Source: animation/Animation.js</h1>
923923

924924
<span class="jsdoc-message">
925925
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-dev</a>
926-
on Wed Feb 12 2014 15:32:11 GMT-0000 (GMT) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
926+
on Mon Feb 24 2014 01:12:21 GMT-0000 (GMT) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
927927
</span>
928928
</footer>
929929
</div>

docs/AnimationManager.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ <h1 class="page-title">Source: animation/AnimationManager.js</h1>
879879

880880
<span class="jsdoc-message">
881881
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-dev</a>
882-
on Wed Feb 12 2014 15:32:11 GMT-0000 (GMT) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
882+
on Mon Feb 24 2014 01:12:21 GMT-0000 (GMT) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
883883
</span>
884884
</footer>
885885
</div>

docs/AnimationParser.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ <h1 class="page-title">Source: animation/AnimationParser.js</h1>
777777

778778
<span class="jsdoc-message">
779779
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-dev</a>
780-
on Wed Feb 12 2014 15:32:11 GMT-0000 (GMT) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
780+
on Mon Feb 24 2014 01:12:21 GMT-0000 (GMT) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
781781
</span>
782782
</footer>
783783
</div>

docs/ArcadePhysics.js.html

Lines changed: 6 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,14 +1127,8 @@ <h1 class="page-title">Source: physics/arcade/ArcadePhysics.js</h1>
11271127
return;
11281128
}
11291129

1130-
if (this._mapData.length > 1)
1130+
for (var i = 0; i &lt; this._mapData.length; i++)
11311131
{
1132-
this.separateTiles(sprite.body, this._mapData);
1133-
}
1134-
else
1135-
{
1136-
var i = 0;
1137-
11381132
if (this.separateTile(sprite.body, this._mapData[i]))
11391133
{
11401134
// They collided, is there a custom process callback?
@@ -1162,6 +1156,8 @@ <h1 class="page-title">Source: physics/arcade/ArcadePhysics.js</h1>
11621156
}
11631157
}
11641158

1159+
return true;
1160+
11651161
},
11661162

11671163
/**
@@ -1248,7 +1244,7 @@ <h1 class="page-title">Source: physics/arcade/ArcadePhysics.js</h1>
12481244

12491245
if (a.width &lt;= 0 || a.height &lt;= 0 || b.width &lt;= 0 || b.height &lt;= 0)
12501246
{
1251-
result = false;
1247+
return false;
12521248
}
12531249

12541250
result = !(a.right &lt; b.left || a.bottom &lt; b.top || a.left > b.right || a.top > b.bottom);
@@ -1258,6 +1254,7 @@ <h1 class="page-title">Source: physics/arcade/ArcadePhysics.js</h1>
12581254
a.removeContact(b);
12591255
}
12601256

1257+
return result;
12611258
},
12621259

12631260
/**
@@ -1293,32 +1290,6 @@ <h1 class="page-title">Source: physics/arcade/ArcadePhysics.js</h1>
12931290

12941291
},
12951292

1296-
/**
1297-
* The core separation function to separate a physics body and an array of tiles.
1298-
* @method Phaser.Physics.Arcade#separateTiles
1299-
* @param {Phaser.Physics.Arcade.Body} body - The Body object to separate.
1300-
* @param {array&lt;Phaser.Tile>} tiles - The array of tiles to collide against.
1301-
* @returns {boolean} Returns true if the body was separated, otherwise false.
1302-
*/
1303-
separateTiles: function (body, tiles) {
1304-
1305-
var tile;
1306-
var result = false;
1307-
1308-
for (var i = 0; i &lt; tiles.length; i++)
1309-
{
1310-
tile = tiles[i];
1311-
1312-
if (this.separateTile(body, tile))
1313-
{
1314-
result = true;
1315-
}
1316-
}
1317-
1318-
return result;
1319-
1320-
},
1321-
13221293
/**
13231294
* The core separation function to separate a physics body and a tile.
13241295
* @method Phaser.Physics.Arcade#separateTile
@@ -1881,7 +1852,7 @@ <h1 class="page-title">Source: physics/arcade/ArcadePhysics.js</h1>
18811852

18821853
<span class="jsdoc-message">
18831854
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-dev</a>
1884-
on Wed Feb 12 2014 15:32:11 GMT-0000 (GMT) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
1855+
on Mon Feb 24 2014 01:12:21 GMT-0000 (GMT) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
18851856
</span>
18861857
</footer>
18871858
</div>

docs/BitmapData.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1570,7 +1570,7 @@ <h1 class="page-title">Source: gameobjects/BitmapData.js</h1>
15701570

15711571
<span class="jsdoc-message">
15721572
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-dev</a>
1573-
on Wed Feb 12 2014 15:32:11 GMT-0000 (GMT) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
1573+
on Mon Feb 24 2014 01:12:21 GMT-0000 (GMT) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
15741574
</span>
15751575
</footer>
15761576
</div>

docs/BitmapText.js.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ <h1 class="page-title">Source: gameobjects/BitmapText.js</h1>
585585
}
586586

587587
/**
588-
* @method Phaser.Text.prototype.destroy
588+
* @method Phaser.BitmapText.prototype.destroy
589589
*/
590590
Phaser.BitmapText.prototype.destroy = function() {
591591

@@ -683,7 +683,7 @@ <h1 class="page-title">Source: gameobjects/BitmapText.js</h1>
683683

684684
<span class="jsdoc-message">
685685
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-dev</a>
686-
on Wed Feb 12 2014 15:32:11 GMT-0000 (GMT) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
686+
on Mon Feb 24 2014 01:12:21 GMT-0000 (GMT) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
687687
</span>
688688
</footer>
689689
</div>

docs/Body.js.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -932,8 +932,7 @@ <h1 class="page-title">Source: physics/arcade/Body.js</h1>
932932
this.speed = 0;
933933
}
934934

935-
// Don't bother if speed 0
936-
if (this.speed > 0)
935+
if (this.speed > 0 || !this.velocity.isZero())
937936
{
938937
this.velocity.x = Math.cos(this.angle) * this.speed;
939938
this.velocity.y = Math.sin(this.angle) * this.speed;
@@ -1991,7 +1990,7 @@ <h1 class="page-title">Source: physics/arcade/Body.js</h1>
19911990

19921991
<span class="jsdoc-message">
19931992
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-dev</a>
1994-
on Wed Feb 12 2014 15:32:11 GMT-0000 (GMT) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
1993+
on Mon Feb 24 2014 01:12:21 GMT-0000 (GMT) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
19951994
</span>
19961995
</footer>
19971996
</div>

docs/Button.js.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ <h1 class="page-title">Source: gameobjects/Button.js</h1>
906906
* Internal function that handles input events.
907907
*
908908
* @protected
909-
* @method Phaser.Button.prototype.onInputOverHandler
909+
* @method Phaser.Button.prototype.onInputOutHandler
910910
* @param {Phaser.Button} sprite - The Button that the event occured on.
911911
* @param {Phaser.Pointer} pointer - The Pointer that activated the Button.
912912
*/
@@ -932,7 +932,7 @@ <h1 class="page-title">Source: gameobjects/Button.js</h1>
932932
* Internal function that handles input events.
933933
*
934934
* @protected
935-
* @method Phaser.Button.prototype.onInputOverHandler
935+
* @method Phaser.Button.prototype.onInputDownHandler
936936
* @param {Phaser.Button} sprite - The Button that the event occured on.
937937
* @param {Phaser.Pointer} pointer - The Pointer that activated the Button.
938938
*/
@@ -958,7 +958,7 @@ <h1 class="page-title">Source: gameobjects/Button.js</h1>
958958
* Internal function that handles input events.
959959
*
960960
* @protected
961-
* @method Phaser.Button.prototype.onInputOverHandler
961+
* @method Phaser.Button.prototype.onInputUpHandler
962962
* @param {Phaser.Button} sprite - The Button that the event occured on.
963963
* @param {Phaser.Pointer} pointer - The Pointer that activated the Button.
964964
*/
@@ -1085,7 +1085,7 @@ <h1 class="page-title">Source: gameobjects/Button.js</h1>
10851085

10861086
<span class="jsdoc-message">
10871087
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-dev</a>
1088-
on Wed Feb 12 2014 15:32:11 GMT-0000 (GMT) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
1088+
on Mon Feb 24 2014 01:12:21 GMT-0000 (GMT) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
10891089
</span>
10901090
</footer>
10911091
</div>

0 commit comments

Comments
 (0)