Commit graph

6236 commits

Author SHA1 Message Date
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
Richard Davey
5cdf2f0e96 Fixed animation values being overridden on load. 2017-04-11 03:28:39 +01:00
Richard Davey
1abf6e7b1e Sprite now uses BuildAnimation function. 2017-04-11 03:13:51 +01:00
Richard Davey
e96dabf0cd Fixed paths 2017-04-11 03:13:41 +01:00
Richard Davey
dabfbc0ae1 Added animation build function. 2017-04-11 03:13:30 +01:00
Richard Davey
fcc01d28aa eslint fixes. 2017-04-11 02:49:13 +01:00
Richard Davey
2c4a697665 Expose the GameObjectCreator. 2017-04-11 02:49:13 +01:00
Richard Davey
05920eae8e An advanced object property extraction function. Allows you to defined property callbacks, arrays to pick from, random ints and random floats. 2017-04-11 02:49:13 +01:00
Richard Davey
9ee3e759b5 Gets a value from an object with a min / max clamp. 2017-04-11 02:49:13 +01:00
Richard Davey
c8d22fe881 Added BuildGameObject and related functions. Allows you to create a game object via a configuration object, rather than having to call all the functions directly. Applied to Images and Sprites so far. Accessed via this.make.sprite or this.make.image. 2017-04-11 02:49:13 +01:00
Felipe Alfonso
d08e23f4f4 Reset renderTarget to null when rendering camera effects 2017-04-10 16:15:18 -03:00
Felipe Alfonso
48782ec751 calling GameObject constructor on EffectLayer 2017-04-10 13:12:54 -03:00
photonstorm
294b110c61 Comment 2017-04-10 17:04:24 +01:00
photonstorm
ffa50f27f6 Added in all of the animation callbacks (start, repeat, update and complete), and user-defined arguments for each of them + callback scope. 2017-04-10 16:27:38 +01:00
Felipe Alfonso
5095e66fa7 Int and Matrix uniform setting 2017-04-10 12:05:56 -03:00
photonstorm
223a40c3dd README update. 2017-04-10 14:49:07 +01:00
photonstorm
f303996f07 Removed ability to set alpha per animation frame (you do it via onUpdate if needed)
Added showOnStart and hideOnComplete config options to set visible state of sprite.
2017-04-10 14:38:44 +01:00
Richard Davey
e462def9bd Added PlayAnimation action. 2017-04-08 01:59:44 +01:00
Richard Davey
ecbc428917 Loader shouldn't append a hypen for multi-atlases. 2017-04-08 01:13:38 +01:00
Felipe Alfonso
92cd873d85 uniform managment added to EffectLayer 2017-04-07 15:50:44 -03:00
photonstorm
198101c683 Added Layer.getChildren. 2017-04-07 15:44:04 +01:00
Felipe Alfonso
0370ebf15e Fixed clearing render target issue 2017-04-07 02:06:55 -03:00
Felipe Alfonso
b1b184aed4 render target dimensions don't affect viewport 2017-04-07 01:34:35 -03:00
Felipe Alfonso
e83db4445f Fixed issue with attribute order on osx and ios 2017-04-07 01:23:44 -03:00
Felipe Alfonso
511781bdb0 More granular errors and warnings 2017-04-07 00:42:06 -03:00
Richard Davey
2d5d75d97d Get from sys instead. 2017-04-07 03:11:19 +01:00
Felipe Alfonso
8c479a56c0 Effect Layer 2017-04-06 22:49:15 -03:00
Felipe Alfonso
6fe063b1d2 Merge branch 'master' of https://github.com/photonstorm/phaser 2017-04-06 22:48:31 -03:00
Richard Davey
b981f626e5 Added Play and StaggerPlay to the AnimationManager. 2017-04-07 00:41:05 +01:00
Richard Davey
24b223af86 Added TimeScale component. 2017-04-07 00:34:06 +01:00
Richard Davey
20c230d804 Added Animation.delay, repeat and repeatDelay, and fixed scoping issues and return values. 2017-04-07 00:29:20 +01:00
Richard Davey
98fa6ec24d Split all the Animation functions out into their own files for easier management.
The Sprite Animation component now maintains its own set of animation properties (like repeat, yoyo, etc) so you can modify it on a local basis without messing up anything else using the same animation. These are reset if you load a new animation into the Sprite.
2017-04-07 00:07:20 +01:00
Felipe Alfonso
63a614ef74 fixed issues with Text rendering 2017-04-06 14:40:43 -03:00
Richard Davey
105a2234e7 Frames can now set the alpha and visible properties of the sprites. Frame.onUpdate now called. 2017-04-06 03:45:45 +01:00
Richard Davey
c4924fbd70 Added Animation pause, resume and paused methods. Also remove animation, and includeDelay option to getFirstTick. 2017-04-06 00:58:56 +01:00
Felipe Alfonso
aa8f0820c0 Resource clean up and adapted batches to allow shader swapping 2017-04-05 19:01:44 -03:00
Felipe Alfonso
85a3830f1a Shader resource creation added to webgl renderer 2017-04-05 14:59:59 -03:00
Richard Davey
d34a3256ed Init the prevTick to avoid ffwd glitches. 2017-04-05 17:05:51 +01:00
Richard Davey
e588ff511a Added Texture.has(frame) check 2017-04-05 17:04:55 +01:00
Richard Davey
4314fb095f Added Frame progress slice. 2017-04-05 17:04:43 +01:00