Commit graph

6992 commits

Author SHA1 Message Date
Richard Davey
80a652e071 Moving to a value ops system for emitters, like the TweenBuilder 2017-10-21 05:05:51 +01:00
Richard Davey
5cb8f98619 Made the index real-time 2017-10-21 05:05:29 +01:00
Richard Davey
bda588df02 Added a Stepped ease. 2017-10-21 03:54:51 +01:00
Richard Davey
c8b2c2bbb9 Support for randomScale, alpha and angle. Also renamed angle to emitterAngle. 2017-10-20 18:49:45 +01:00
Richard Davey
4fb743005c Array configs come first. 2017-10-20 18:49:19 +01:00
Richard Davey
0d4b36f368 Now render from the correct list array. 2017-10-20 14:14:37 +01:00
Richard Davey
93665ff80a Emitter Manager now uses a list to allow for emitter sequencing. Added missing depth component. Added ability to emit across all emitters from a given coordinate. 2017-10-20 14:14:22 +01:00
Richard Davey
6180feea8e Emitter follower now has offset and visibility tracking. 2017-10-20 14:13:48 +01:00
Richard Davey
892319bdb5 Removed import 2017-10-20 14:13:25 +01:00
Richard Davey
19e895b7a1 Added new List structure, based on Display List without the scene sorting. 2017-10-20 14:13:15 +01:00
Richard Davey
66b7e655e9 The blend mode can be set by a string now as well as a number (sprite.blendMode = 'ADD'). 2017-10-20 14:12:58 +01:00
Richard Davey
fa620e8b5b Split out the Depth setters to their own component. 2017-10-20 14:12:25 +01:00
Richard Davey
a93a7e0562 Fixed object setter 2017-10-20 03:48:50 +01:00
Richard Davey
77b335c9f7 Added emitter follow support 2017-10-20 03:48:42 +01:00
Richard Davey
aad5150990 Emitters can now be created from config objects 2017-10-20 03:20:39 +01:00
Richard Davey
82e210845e MinMax can be configured via objects or numbers 2017-10-20 03:20:24 +01:00
Richard Davey
cb8b74e1c7 Scale, rotation, alpha and all eases back in. 2017-10-20 01:49:03 +01:00
Richard Davey
956d59f99d Emitter.setFrame now works with single or multiple frames. 2017-10-20 00:54:47 +01:00
Richard Davey
c268d44962 Renderer now renders the entire manager, saving a flush after each emitter. 2017-10-20 00:54:28 +01:00
Richard Davey
c65c247393 Preparing new frames getter. 2017-10-18 15:18:42 +01:00
Richard Davey
f40459553d Added support for GetRandomPoint to the Curve and Path classes. 2017-10-18 13:45:34 +01:00
Richard Davey
6a3280bd34 Added Texture.getFramesFromTextureSource and Texture.getTextureSourceIndex from a TextureSource. 2017-10-18 13:45:11 +01:00
Richard Davey
d7bd14ba2b Working through some velocity tests 2017-10-18 02:26:15 +01:00
Richard Davey
053eea0b3a Fixed bug and added copyToMinMax function 2017-10-18 02:26:05 +01:00
Richard Davey
4c6183931c Working through updating the emitter and particle classes to use the new MinMax format 2017-10-17 21:32:45 +01:00
Richard Davey
4f1bd5a3eb Tidying up 2017-10-17 21:32:14 +01:00
Richard Davey
f13043ee63 Math.MinMax classes added 2017-10-17 21:32:00 +01:00
Richard Davey
61c8f63168 Tidying up comments 2017-10-17 21:31:45 +01:00
Richard Davey
f751d4066a Added Math.FromPercent function 2017-10-17 21:31:28 +01:00
Richard Davey
d279e77910 Moving to new folder 2017-10-17 04:19:42 +01:00
Richard Davey
d49d7b10c2 Particle Emitter Manager looks after all emitters bound to it 2017-10-17 04:19:29 +01:00
Richard Davey
4ac80bde34 New Particle Manager renderer functions 2017-10-17 04:19:03 +01:00
Richard Davey
66fc40845b Defaults y to x if not given 2017-10-17 04:18:29 +01:00
Richard Davey
6accb89ff0 The emitter can now set the blend mode and render target directly, also includes scrollFactor now 2017-10-17 04:18:05 +01:00
Richard Davey
6770113aa0 Added SKIP_CHECK blend mode const and moved setBlendMode to handle it in the main loop 2017-10-17 04:17:28 +01:00
Richard Davey
daf8216369 Added new SKIP_CHECK blend mode 2017-10-17 04:17:04 +01:00
Richard Davey
e633e9d407 Particle Emitter has its own blend mode, render target and visibility.
The emitter also now looks after its own particles and is a child of a Particle Manager.
2017-10-17 04:16:52 +01:00
Richard Davey
44b076fab8 Particle now has a frame component 2017-10-17 04:16:08 +01:00
Richard Davey
c7d08a3652 Moved to the Particles folder 2017-10-17 04:15:53 +01:00
Richard Davey
e6dfa1da73 Removed object check in 'set' and added y argument default to x 2017-10-16 22:57:28 +01:00
Richard Davey
9c5e257598 Added Frame halfWidth and halfHeight properties 2017-10-16 22:16:33 +01:00
Richard Davey
90e6637be3 Particle Renderers now bail out early if emitter is empty 2017-10-16 22:16:13 +01:00
Richard Davey
a98b3544c7 Updated WebGL particle renderer to allow particles to have unique frames (within the same texture) 2017-10-16 22:15:51 +01:00
Richard Davey
898e445a3b Updated build 2017-10-16 12:43:09 +01:00
Richard Davey
498e1215f5 JSDoc blocks added. 2017-10-13 17:08:19 +01:00
Richard Davey
b28962e442 Split Curve up into includes and tidied up the namespace so it all now lives under Phaser.Curves. 2017-10-13 16:39:41 +01:00
Richard Davey
1882ee82ce Split Path up into includes. 2017-10-13 14:56:47 +01:00
Richard Davey
23f201660d JSDocs added. 2017-10-13 14:11:54 +01:00
Richard Davey
c22668d53d JSDoc blocks added. 2017-10-13 12:12:59 +01:00
Richard Davey
60d9133d05 Renamed from Frame to AnimationFrame and moved folder. 2017-10-13 11:56:52 +01:00