Richard Davey
c629a6821c
docgen extends updates to handle non-invasive merging.
2014-09-29 12:14:02 +01:00
Richard Davey
acba9c4e14
Updated TypeScript defs.
2014-09-29 12:14:02 +01:00
Richard Davey
4c2476c423
Merge pull request #1209 from danxexe/fix-collide-docs
...
Fix docs for collide and collideHandler
2014-09-29 11:51:39 +01:00
DanX
3a1ec3c5c1
Fix docs for collide and collideHandler
2014-09-26 22:37:11 -03:00
photonstorm
319146292b
First pass at scale handling on drag. Enable with: sprite.input.scaleLayer = true;
2014-09-25 17:01:27 +01:00
photonstorm
415c7fe578
Added the sourceRect
and maskRect
parameters back into BitmapData.alphaMask
as they were accidentally removed in 2.1 (thanks seejay92)
2014-09-25 15:30:03 +01:00
Richard Davey
7f23438a75
Merge pull request #1208 from clark-stevenson/patch-1
...
Update phaser.d.ts
2014-09-25 10:51:56 +01:00
Clark Stevenson
01bcec97d2
Update phaser.d.ts
...
Small fixes and a few additions
2014-09-25 09:38:38 +01:00
photonstorm
7f196a01e7
Text.addColor allows you to set specific colors within the Text. It works by taking a color value, which is a typical HTML string such as #ff0000
or rgb(255,0,0)
and a position. The position value is the index of the character in the Text string to start applying this color to. Once set the color remains in use until either another color or the end of the string is encountered. For example if the Text was Photon Storm
and you did Text.addColor('#ffff00', 6)
it would color in the word Storm
in yellow.
...
Text.clearColors resets any previously set colors from `Text.addColor`.
2014-09-24 17:10:02 +01:00
photonstorm
d7f8e11d21
Removed the customBounds layer.
2014-09-24 06:52:22 +01:00
photonstorm
c8e62368a4
docgen updates.
2014-09-24 06:52:02 +01:00
photonstorm
f3fd3ebe0e
Added AudioSprite to the build files.
2014-09-24 06:51:53 +01:00
photonstorm
9e29a58d89
Sound.fadeOut(duration) will fade the Sound to a volume of zero over the duration given. At the end of the fade the Sound will be stopped and Sound.onFadeComplete dispatched.
...
Sound.fadeIn(duration, loop) will start the Sound playing, or restart it if already playing, set its volume to zero and then increase the volume over the duration given until it reaches 1. At the end of the fade the Sound.onFadeComplete event is dispatched.
2014-09-24 06:51:39 +01:00
photonstorm
dd74e3b0b4
Changing any of the Text properties such as font, lineSpacing and fontSize on a Text object that wasn't already on the display list would cause an updateTransform error. Parent is now checked first in all setters.
2014-09-24 01:10:36 +01:00
photonstorm
a79cafe134
docgen is now adding inherited classes into the results properly.
2014-09-23 22:57:55 +01:00
Richard Davey
473e9a1d88
jshint fix
2014-09-23 22:28:15 +01:00
Richard Davey
abe6f5ace2
Point.parse updated to allow either/or x/y setting and default values.
...
Point.parse will return a new Point object based on the x and y properties of the object given to Point.parse (thanks @codevinsky #1198 )
2014-09-23 22:23:01 +01:00
Richard Davey
d7d69947fb
Merge pull request #1198 from codevinsky/feature/point-parse
...
Phaser.Point.parse
2014-09-23 22:15:51 +01:00
Richard Davey
01fd3df434
AudioSprite support is now built into the Loader and SoundManager. AudioSprites are like sprite sheets, only they consist of a selection of audio files and markers in a json configuration. You can find more details at https://github.com/tonistiigi/audiosprite (thanks @codevinsky #1205 )
...
Fixed AudioSprite jsdoc, casing and formatting issues.
2014-09-23 22:15:09 +01:00
Richard Davey
be07fb33ec
Merge pull request #1205 from codevinsky/feature/audiosprite
...
Phaser.AudioSprite
2014-09-23 21:45:30 +01:00
Jeremy Dowell
7cce1366f2
jshint cleanup
2014-09-23 10:25:49 -05:00
Jeremy Dowell
dd0d1729ad
Phaser.AudioSprite
...
AudioSprite implementation for phaser.
Loads audio sprites based on the file format created with: https://github.com/tonistiigi/audiosprite
2014-09-23 10:21:29 -05:00
Richard Davey
ba7f33d386
docgen updates
2014-09-22 11:32:33 +01:00
Richard Davey
c6231ddd38
jsdoc fix
2014-09-22 11:32:26 +01:00
Richard Davey
bc0f174f29
More rigid corruption checks for the pixi docs.
2014-09-21 11:04:43 +01:00
Richard Davey
eb72e4c581
Fixing jsdoc headers.
2014-09-21 10:28:04 +01:00
Richard Davey
7528783a43
Fixed missing Pixi from class names and extends.
2014-09-21 10:24:21 +01:00
Richard Davey
0114f66af5
Split the methods and properties into public, protected and private sub-arrays.
2014-09-21 10:12:18 +01:00
Richard Davey
0c4d4cd7e1
readme update.
2014-09-19 15:22:33 +01:00
Richard Davey
49ddf46ef3
Merge pull request #1199 from codevinsky/feature/rectangle-aabb
...
Rectangle.aabb
2014-09-19 13:50:14 +01:00
photonstorm
5980a3bdc6
Loader can now natively load XML files via load.xml
. Once the XML file has loaded it is parsed via either DOMParser or ActiveXObject and then added to the Cache, where it can be retrieved via cache.getXML(key)
.
...
Cache now has support for XML files stored in their own container. You can add them with `cache.addXML` (typically this is done from the Loader automatically for you) and get them with `cache.getXML(key)`. There is also `cache.checkXMLKey(key)`, `cache.checkKeys` and `cache.removeXML(key)`.
2014-09-19 13:45:04 +01:00
Jeremy Dowell
ab9da10999
added: Rectangle.aabb
...
* Calculates the Axis Aligned Bounding Box (or aabb) from an array of points.
*
* @method Phaser.Rectangle#aabb
* @param {Phaser.Point[]} points - The array of one or more points.
* @param {Phaser.Rectangle} [out] - Optional Rectangle to store the value in, if not supplied a new Rectangle object will be created.
* @return {Phaser.Rectangle} The new Rectangle object.
* @static
2014-09-18 15:16:33 -05:00
photonstorm
5a58d6be38
Refining the processor.
2014-09-18 20:33:01 +01:00
photonstorm
090e550964
Now parses the whole codebase without throwing any errors :)
2014-09-18 17:02:51 +01:00
photonstorm
e945defb86
Mass export ability added to docgen.
2014-09-18 16:58:47 +01:00
photonstorm
d18f523d93
jsdoc fixes.
2014-09-18 16:58:25 +01:00
photonstorm
597b828d7a
StateManager.boot would call start on a State twice if it was added to the game and started before the DOM load had completed. This didn't cause an error but was duplicating function calls needlessly.
2014-09-18 05:14:44 +01:00
photonstorm
426b43cc9f
Removed console.log calls.
2014-09-18 05:12:35 +01:00
photonstorm
d68ed61999
If you called StateManager.start from within a states init
method which also had a preload
method it would fail to start the next State.
2014-09-18 05:11:58 +01:00
photonstorm
756561920f
Group.ignoreDestroy boolean will bail out early from any call to Group.destroy
. Handy if you need to create a global Group that persists across States.
2014-09-18 05:11:48 +01:00
Jeremy Dowell
29dd09fdf6
added: Phaser.Point.parse
...
static method that will take an object of any kind and return a new point based on the x & y properties of that object.
optional x & y property names can also be supplied
2014-09-17 14:23:28 -05:00
photonstorm
60888f675c
json export working. Tidied up for Methods and Parameters.
2014-09-17 01:08:43 +01:00
Richard Davey
40efc325b0
Updated index browser and viewer to handle any depth nesting.
2014-09-16 22:28:51 +01:00
photonstorm
e5eea56c9b
jsdoc updates.
2014-09-16 19:44:04 +01:00
photonstorm
20551f9129
Lots of jsdocs fixes ready for the new doc generator.
2014-09-16 17:35:08 +01:00
Richard Davey
2ea27517ab
docgen processor now handling class definitions.
2014-09-16 12:20:14 +01:00
Richard Davey
cf363a56f1
Cache.removeImage has a new parameter: removeFromPixi
which is true
by default. It will remove the image from the Pixi BaseTextureCache as well as from the Phaser Cache. Set to false if you don't want the Pixi cache touched.
2014-09-16 12:20:03 +01:00
Richard Davey
d6c0942e20
Now parsing Pixi jsdoc format.
2014-09-16 02:07:21 +01:00
Richard Davey
f73bf702d5
docgen updates and preparing to parse Pixi source.
2014-09-16 00:28:25 +01:00
Richard Davey
15a0ae6b4f
jsdoc fix
2014-09-16 00:28:09 +01:00