Commit graph

104 commits

Author SHA1 Message Date
photonstorm
000afb74a2 Split out rope and tilesprite as custom tasks. 2015-07-22 12:44:03 +01:00
photonstorm
5d0788b47d Consolidated all Pointer buttons into the new DeviceButton class. 2015-07-17 13:52:09 +01:00
photonstorm
c9aacc7679 Added Phaser.Create in, fixes build task (#1897) 2015-07-10 17:27:01 +01:00
photonstorm
698167a596 Tiled Image Collection support is now available and has been added to the TilemapParser and Tilemap classes (thanks @asyed94 #1879) 2015-07-02 13:53:02 +01:00
photonstorm
a69c156526 The Text Bounds is a rectangular region that allows you to align your text within it, regardless of the number of lines of text or position within the world. For example in an 800x600 sized game if you set the textBounds to be 0,0,800,600 and text alignment to 'left' and vertical alignment to 'bottom' then the text will render in the bottom-right hand corner of the game, regardless of the size of font you're using or the number of lines in the text itself.
Set the Style properties `boundsAlignH` and `boundsAlignV` or adjust them via the Text setters to change the alignment.

It works by calculating the final position based on the Text.canvas size, which is modified as the text is updated. Some fonts have additional padding around them which you can mitigate by tweaking the Text.padding property.

Setting a textBounds _doesn't_ update the wordWrapWidth, so be aware of the relationship between the two.

Call this method with nothing defined for any of the parameters to reset an existing textBounds.

#1824
2015-06-17 17:18:04 +01:00
photonstorm
fb4709fb1a Removed PIXI.BitmapText as it's no longer used. 2015-06-03 05:28:24 +01:00
photonstorm
89a95fa2c3 Added Video to gruntfile. 2015-05-06 07:58:04 +01:00
photonstorm
7674060afc Removed PIXI.EventListener and VideoTexture as it's no longer required. 2015-05-06 01:59:49 +01:00
Steven Rogers
258b549a0d Stubbed Net and Debug so they can be properly excluded during a custom build. 2015-04-29 09:07:06 -04:00
photonstorm
a2eaccabed Added EventTarget and VideoTexture back into Pixi. 2015-04-17 19:55:08 +01:00
photonstorm
b196e4f17e Enabled PIXI.VideoTexture support. 2015-04-17 17:36:20 +01:00
photonstorm
234497ddea Removed Creature libs from jshint. 2015-04-13 23:19:05 +01:00
photonstorm
8f06991527 Added support for the [Creature Automated Animation Tool](http://www.kestrelmoon.com/creature/). You can now create a Phaser.Creature object which uses json data and a texture atlas for the animations. Creature is a powerful animation tool, similar to Spriter or Spine. It is currently limited to WebGL games only, but the new libs should prove a solid starting point for anyone wanting to incorporate Creature animations into their games. 2015-04-13 23:16:29 +01:00
photonstorm
d7c0a907f9 Small grunt fix. 2015-03-26 02:58:47 +00:00
photonstorm
e33455e34f 2.3.0 API Docs 2015-03-26 02:55:18 +00:00
photonstorm
17b2eafbf3 Split GraphicsData to its own file. 2015-03-25 11:04:48 +00:00
photonstorm
889c85cd81 Updated copyright year. 2015-03-05 14:02:15 +00:00
photonstorm
59a72ffa80 Grunt file now properly includes stub files for Game core managers. 2015-03-04 00:32:33 +00:00
photonstorm
a75e28d2b8 jshint fixes. 2015-02-22 20:08:44 +00:00
photonstorm
7efb051f54 New build scripts working for the default builds and custom builds. 2015-02-19 17:23:35 +00:00
photonstorm
c56d2c63ca Custom build scripts are go! 2015-02-19 15:27:44 +00:00
photonstorm
f34088458d More grunt work. Nearly there. 2015-02-19 06:03:42 +00:00
photonstorm
9c46027340 Working through the new build scripts. 2015-02-19 05:01:50 +00:00
photonstorm
cbac770aed New grunt manifests. 2015-02-19 05:01:30 +00:00
photonstorm
f9eaa4001f New manifests. 2015-02-17 18:16:06 +00:00
photonstorm
c733bd3fba Build file updates. 2015-02-17 06:00:05 +00:00
vulvulune
6795d30e74 jshint
equality check error
2015-02-05 21:40:03 +01:00
vulvulune
b8665f2979 Refactoring of the script to generate comments.d.ts
Refactoring of the script to generate comments.d.ts files.
Using typescript package instead of typescript-services (not maintened
anymore)

Update of the phaser.comments.d.ts with the last dev version.
2015-02-05 21:30:28 +01:00
vulvulune
7be4b8d7a9 Replace the grunt docs tasks with grunt-jsdoc
Replace builddoc and exportdocjson grunt tasks with grunt-jsdoc.
To avoid an error I added a fake comment to a @todo param in the p2.js
file.
2015-01-22 16:22:51 +01:00
vulvulune
19bfd386ac Complete "tsdocs" tasks to download plugins
Complete the tsdocs task to download automatically the phaser-plugins
and scan their comments to add them in the phaser.comments.d.ts where
the plugins classes are defined.
2015-01-22 13:37:58 +01:00
vulvulune
547aa8d124 Improve comments.d.ts file generation
If there was a comment formatted with "//" before a member name in the
d.ts file, the property name was not extracted correctly to get the
comments from jsdoc
2015-01-22 09:58:33 +01:00
vulvulune
0c8b5f447f Improve d.ts comments generation
Add trimright in the comments, because there are a lot of comments with
useless whitespaces.
2015-01-21 12:05:35 +01:00
vulvulune
6c7da59565 Improve d.ts comments generation
Remove empty @returns.
2015-01-21 11:54:16 +01:00
vulvulune
af1345c39e Improve d.ts comments generation
-Improve the script to clean the different kinds of end of line
-Improve the alignement with @return multiline comments
-Add a jsdoc plugin to convert the class name of p2.js file, like this
the comments for the p2 classes are now included in the d.ts files.
2015-01-21 11:42:56 +01:00
vulvulune
a5fde63486 Improve d.ts comments generation
- Remove " - " after @param paramname, and @return because it is
useless.
- Improve alignement of multiline param comments.
2015-01-21 08:50:14 +01:00
vulvulune
af41e9919f Adapt buildtsdoc.js to correct jshint errors (2) 2015-01-20 18:14:53 +01:00
vulvulune
3654945727 Adapt buildtsdoc.js to correct jshint errors 2015-01-20 18:02:04 +01:00
vulvulune
df6b946ceb Add grunt task to generate d.ts with comments
Add "tsdocs" grunt task to generate d.ts files with comments.
2015-01-20 17:18:56 +01:00
photonstorm
bf3c59b098 Grunt replace:docs task updated. 2015-01-06 06:57:11 +00:00
Paul
cc8c2944fa jsdoc - namealias fix
Corrected the namealias jsdoc plugin to not include PIXI-from-YUI docs.

This is because they lack corresponding javascript code and need the
'name' property to remain intact.
2014-12-01 17:09:19 -08:00
Paul
bf16b97bdf jsdoc - namealias fix
Fixed issue with namealias and class doclects without names.
2014-11-30 03:06:28 -08:00
Paul
c8b0052743 jsdoc - sourceproxy docs and cleanup 2014-11-30 02:32:29 -08:00
Paul
2f6c109901 jsdoc - short/friendly @link plugin
Added support for short `{@link #member}` markup. This makes interlinking
much cleaner and shorter; similar short-link support was available in
previous versions of jsdoc.
2014-11-30 02:32:10 -08:00
Paul
352d53802f jsdoc - added namealias
The namealias plugin gets jsdoc to detect lots of documentation it was not
correctly picking up due to the application of the `name` property. This
can be read about in
https://github.com/jsdoc3/jsdoc/issues/804#event-195287680 - this results
in _much_ more complete documentation generation, especially when
properties are defined in constructors.
2014-11-30 02:32:09 -08:00
Paul
6203ae0722 jsdoc - PIXI documentation filtering
Added the filterpixi.js jsdoc plugin which marks some PIXI
interaction-related methods and properties as private. This ensures that
they do not show up in the final Phaser documentation.
2014-11-30 02:31:55 -08:00
Paul
056d18cb43 yuidoc-to-jsdoc - jshint fix 2014-11-25 10:15:29 -08:00
Paul
12b2d4485c yuidoc-to-jsdoc - bug fix and jsobj-like mapping
Fixed bug with incorrect generation of "Array<>".

Added a primitive type-accepter for jsobject-like (for some very primitive
value); but it covers the PIXI case.
2014-11-25 02:34:59 -08:00
photonstorm
aa68e9433d Grunt task updates. 2014-11-25 00:48:40 +00:00
photonstorm
f8a1632450 Grunt task updates. 2014-11-25 00:24:28 +00:00
photonstorm
ab114cc4a1 The start of TweenData. 2014-11-20 05:26:49 +00:00