Commit graph

6575 commits

Author SHA1 Message Date
Richard Davey
47c4df66e6 Added Remove Animation event and handler. 2017-05-02 16:02:49 +01:00
Richard Davey
a8bc0c0c27 Merge pull request #3013 from rblopes/upgrade-tooling
[Phaser 3] Upgrade of development dependencies
2017-05-01 22:51:56 +01:00
Rafael Barbosa Lopes
1b77dc4fa4 Upgraded development dependencies, some clean up.
This commit brings the following updates:

- Removal of the following redundant or unused packages:

  - `json-loader`: Webpack 2 can handle JSON files by default;
  - `copy-webpack-plugin`: unused;
  - `webpack-dev-server`: unused.

- Upgrade of the following packages to their latest versions:

  - `fs-extra`;
  - `webpack`: upgraded to the latest stable version;
  - `webpack-shell-plugin`.

- Addition of the following packages:

  - `uuid`, in replacement of the deprecated `node-uuid`, with no
    changes to the public API.

  - `eslint`, with ESLint linting utility.

- Addition of two runnable scripts to help development tasks:

  - `build`: An alias for running `webpack`.
  - `eslint`: Alias for running ESLint using the provided configuration
    in the project.

- Fix the package entry point, so package consumers will be capable to use
  library in a future release.

- Update `.npmignore`, so npm will include only the relevant package
  files.

- Some clean-up and a few code fixes.
2017-04-30 21:52:22 -03:00
Richard Davey
9663a4022e Start of shuffle action. 2017-05-01 01:44:29 +01:00
Richard Davey
9d1640063b Added tabIndex property. 2017-05-01 01:27:35 +01:00
Felipe Alfonso
e6fefdab24 Using canvas buffer for generating tile texture 2017-04-28 15:10:32 -03:00
photonstorm
456809e8dd GetFrames can now handle you setting just a string for the frames array, and it'll get all the frames from the texture for it. 2017-04-28 04:31:08 +01:00
photonstorm
3647e28427 Added Texture.getFrameNames which is handy for things like atlas imports or sprite sheets. 2017-04-28 04:30:32 +01:00
photonstorm
17d6667c63 Swapped to perf.now. 2017-04-28 03:15:08 +01:00
photonstorm
54442c59d4 Forcing Variable Timer for further testing. 2017-04-28 03:15:02 +01:00
photonstorm
119ae11736 Using perf.now and tidying it all up. 2017-04-28 03:14:30 +01:00
photonstorm
4d142ad026 Updated Animation so it now uses the delta values, rather than the time. Smoother and no longer suffers duration peak errors. 2017-04-28 03:14:09 +01:00
photonstorm
1eda6229be Moved the raf after the callback. 2017-04-28 03:13:32 +01:00
photonstorm
960acce62c eslint fixes 2017-04-28 03:13:22 +01:00
photonstorm
ba2e5ffc26 Added Format String util. 2017-04-28 01:52:46 +01:00
photonstorm
a232e6c97d Created VariableTimeStep loop and integrated it into the Game and State Systems.
Added GetSpeed Math util.
2017-04-27 17:03:19 +01:00
Richard Davey
07f72f489a Added TickerLoop and made it optional via config. 2017-04-27 03:11:56 +01:00
photonstorm
d2fa3779f4 Working on the new TickerLoop. 2017-04-26 17:13:56 +01:00
photonstorm
8264351f75 Renamed GetObjectValue to GetValue and replaced through-out entire codebase. More consistent now with GetAdvancedValue, etc. 2017-04-26 16:03:22 +01:00
photonstorm
427018d291 You can now provide the TextMetrics as part of the config object, to avoid the expensive canvas scanning needed.
Text.getTextMetrics and TextStyle.getTextMetrics added to faciliate this. Plus added to toJSON.
2017-04-26 15:54:23 +01:00
photonstorm
e2576fe512 Text.padding supported and working. 2017-04-26 15:34:15 +01:00
Richard Davey
3f6c74c1f7 More work on Text Metrics. 2017-04-26 03:55:42 +01:00
Felipe Alfonso
4073db3551 TileSprite base and renderer 2017-04-25 19:09:13 -03:00
Richard Davey
0df585f7d5 Testing various text measuring options. 2017-04-25 19:46:13 +01:00
Richard Davey
a4dc2d28aa Added TextStyle.toJSON and merged the output with Text.toJSON. 2017-04-25 18:24:37 +01:00
Richard Davey
ad0ff4d64b Added BuildFromConfig for Text object.
Updated TextStyle to use advanced object getter.
2017-04-25 18:07:23 +01:00
Richard Davey
c0254bbbf0 Added setScaleMode and setBlendMode functions. 2017-04-21 03:12:25 +01:00
Felipe Alfonso
d4e4509e22 Render off-screen and on-screen for EffectLayer 2017-04-20 21:30:19 -03:00
Felipe Alfonso
3c476ae26b Fixed EffectRenderer 2017-04-20 21:25:31 -03:00
Richard Davey
b3fb6d64f2 Added ability to create EffectLayer via config object. 2017-04-21 00:54:57 +01:00
Felipe Alfonso
8df65e7270 changed renderTexture name 2017-04-20 20:50:47 -03:00
Felipe Alfonso
1742ec0f12 RenderPass Update 2017-04-20 15:06:57 -03:00
Felipe Alfonso
18e3b9379d Render Pass rendering on the screen 2017-04-20 13:18:14 -03:00
Richard Davey
d7c1ef1062 Updated issue template. 2017-04-20 13:07:23 +01:00
Richard Davey
e631c2031b Merge pull request #2990 from johnfn/patch-1
Fix typo in Color
2017-04-20 12:47:08 +01:00
Felipe Alfonso
fd4d25a3b6 RenderPass update 2017-04-18 19:15:10 -03:00
photonstorm
6aa2fb009b Renamed Texture Parsers to follow conventions elsewhere in the library. Started on SS from Atlas. 2017-04-18 15:31:30 +01:00
Felipe Alfonso
88c599cb28 Fixed render target issue with BitmapText 2017-04-13 12:55:25 -03:00
Felipe Alfonso
bcbec418b1 Fixed Graphics and Blitter issue with renderTarget 2017-04-13 12:45:01 -03:00
Richard Davey
81c6124a4d Added more toJSON GameObject functions. 2017-04-13 00:35:27 +01:00
Richard Davey
5eee8225bf Added ToJSON Game Object component. 2017-04-13 00:05:21 +01:00
Richard Davey
929d6fc8ef Enforced GameObjects to specify their type (a string based const) 2017-04-13 00:05:12 +01:00
Richard Davey
612db78818 Added AnimationJSON Loader File type.
Fixed ToJSON component.
2017-04-12 15:27:05 +01:00
Richard Davey
fa4192e1f0 Moved Animation Manager functions into its own components folder for clarity.
Added FromJSON.
Updated Create so you only pass in a config object now, not a key AND config.
2017-04-12 14:39:11 +01:00
Richard Davey
ee5e4f5195 Tidied up the Animation folder.
Animation Manager now in its own folder, with all methods split out to their own files.
Animation Components moved to components folder.
AnimationFrame renamed to Frame and moved inside the frame folder, as it's frame specific.
2017-04-12 13:53:55 +01:00
Richard Davey
da3496a71d Added toJSON support to the Animation Manager and Animations. 2017-04-12 13:14:42 +01:00
photonstorm
01a542303a Config based SS rip. 2017-04-11 17:22:22 +01:00
photonstorm
4b4ef1dcfd eslint fix. 2017-04-11 17:21:50 +01:00
photonstorm
93b4d33a78 Suffix support in multiatlas call. 2017-04-11 17:21:42 +01:00
Felipe Alfonso
581fdb50ee RenderTarget added to renderable game objects 2017-04-11 10:15:38 -03:00