Commit graph

98 commits

Author SHA1 Message Date
Richard Davey
70a87a576d Some legacy instances of float moved to number. 2019-02-13 12:39:36 +00:00
Richard Davey
e7b1d086e7 Moving all of the typedefs to properly namespaced scopes, rather than globals
\o/ ~ "Someone, save me!"
2019-02-13 12:35:12 +00:00
Brian Lui
af085646eb
Fix: Type declaration for blendMode 2019-02-08 15:58:18 +08:00
Richard Davey
44f4ac3598 Type def fix 2019-01-29 23:49:23 +00:00
Richard Davey
aa341854c7 Happy New Year 2019-01-15 16:20:22 +00:00
Richard Davey
4b27b37a0c Added texture and unit arguments to batchQuad and batchTri, fixing the y2k bug. 2018-12-12 11:08:52 +00:00
Richard Davey
6f8759c186 Whenever Camera.roundPixels was enabled it would use a bitwise operation to truncate the float (x |= 0) - this has been replaced across all files that used it, with a call to Math.round instead. This gives far better results when zooming cameras both in and out of a Scene, stopping thin gaps appearing between closely packed Game Objects. 2018-11-30 10:27:25 +00:00
Richard Davey
18af31ffb7 Fixed how dead particles are managed, reduced gc churn and reset particle positions. Also removed un-needed stable sort. 2018-11-21 11:53:46 +00:00
Richard Davey
fca695f632 Removed Particle.index as it's no longer required 2018-11-21 11:53:21 +00:00
Piotr 'Waclaw I' Hanusiak
893310d5bb array of dead particles is now being filled up with dead particles. 2018-10-29 22:19:57 +01:00
Richard Davey
d13984f460 Added jsdocs 2018-10-19 18:32:10 +01:00
Richard Davey
0b3d54a198 Added jsdocs 2018-10-19 18:29:36 +01:00
Richard Davey
4b1c762296 Updated @memberOf to @memberof 2018-10-10 10:49:13 +01:00
Richard Davey
4d13702c33 The Particle Emitter Manager has been given a NOOP method called setBlendMode to stop warnings from being thrown if you added an emitter to a Container in the Canvas renderer. Fix #4083 2018-10-05 16:31:43 +01:00
Richard Davey
b45df05ddb Updated to get the frame names 2018-09-27 14:15:58 +01:00
Richard Davey
dedc939fdd initPipeline now defaults to the Texture Tint Pipeline if nothing else is specified. 2018-09-05 11:19:02 +01:00
Richard Davey
4deb8e49ad eslint fixes 2018-08-03 19:37:42 +01:00
Richard Davey
9f44896a3f The Blend Mode is now set directly in all Canvas Renderers without comparing it to what's stored in the Canvas Renderer. This fixes problems where the blend mode would be lost between two different Game Objects because they restored the context, but didn't update the renderer flag. Game Objects in Canvas can now mix and match blend modes across the display list. 2018-08-03 01:29:18 +01:00
Richard Davey
e0918df6b0 Canvas particle renderer now using same matrix math as webgl 2018-08-03 01:04:46 +01:00
Richard Davey
0a035353fa lint fix 2018-08-03 01:04:25 +01:00
Richard Davey
7313573161 The ParticleEmitterManager now has the Transform component. This means you can now set the position, rotation or scale of the Emitter Manager, and it will influence every Emitter it is rendering. The Managers transform is mixed with that of the Camera. This works in both Canvas and WebGL. 2018-07-31 23:21:07 +01:00
Richard Davey
c3cc4317dd Particle.color has been removed as it's now calculated during rendering to allow for Camera alpha support. 2018-07-31 23:18:49 +01:00
Richard Davey
34b27fd57a ParticleEmitter would fail to draw a textured particle in Canvas mode 2018-07-29 12:16:42 +01:00
Richard Davey
4481795d32 Swapped to using getX / getY 2018-07-27 00:53:00 +01:00
Richard Davey
8873bdcbf6 Fixed pipeline method call 2018-07-26 23:50:54 +01:00
Thomas Felix
43f6b1d231 fix: Corrects the wrong JSdoc comments
Wrong comments lead to a faulty Typescript Definition file missing
the depth attribute.
2018-07-25 22:13:38 +02:00
Richard Davey
fc5eb2511c Particles using a blend mode wouldn't render correctly after the updates in 3.11. If the blend mode changes during the processing of an emitter manager it'll now correctly rebind the texture, stopping the particles from vanishing. Fix #3851 2018-07-23 01:39:21 +01:00
Richard Davey
106e32a4f5 Removed un-used imports 2018-07-19 13:26:11 +01:00
Richard Davey
ec5bd1912e GameObject.willRender now takes a Camera as its only argument and uses it within the check. This has allowed me to remove 23 duplicate checks spread across the various Game Objects, all of which did the same thing, saving both KB and CPU time as the flags were being checked twice in most cases. 2018-07-19 13:19:02 +01:00
Richard Davey
5ba80defb7 Pass GO to setPipeline 2018-07-11 16:23:44 +01:00
Richard Davey
82b15c8695 Removed drawEmitterManager and moved to emitter render function 2018-07-11 14:40:36 +01:00
Richard Davey
7a23378015 Unified use of roundPixels, antialias and pixelArt modes 2018-06-27 15:15:00 +01:00
Richard Davey
7aa46657c2 Tidying up jsdocs and changing float to number 2018-06-26 23:19:14 +01:00
Richard Davey
8391042ff9
Merge pull request #3783 from samme/feature/particle-emitter-stop
Add ParticleEmitter#stop()
2018-06-25 22:42:00 +01:00
Richard Davey
51468fdefc Merge branch 'master' of https://github.com/photonstorm/phaser 2018-06-25 16:25:42 +01:00
Richard Davey
90ba2608fa Added in Camera alpha support to all canvas renderers 2018-06-25 16:24:08 +01:00
samme
bc2212c87d Add ParticleEmitter#stop() 2018-06-23 12:51:16 -07:00
Chris Andrew
c2bfc52987 Documented the majority of the Geom Line functions. 2018-06-21 18:13:56 +01:00
Chris Andrew
6854ccb764 Cleaned up some remaining GameObject descriptions. 2018-06-21 14:18:28 +01:00
Chris Andrew
978f982c26 Documented the remaining ParticleEmitter Zone classes. 2018-06-21 14:12:47 +01:00
Chris Andrew
df88218534 Finished up EmitterOp method descriptions.
Finally!
2018-06-21 12:47:29 +01:00
Chris Andrew
7f232b6bed Further EmitterOp documentation. 2018-06-20 17:18:03 +01:00
Chris Andrew
584e8f9919 Started documenting the EmitterOp class. 2018-06-20 16:18:00 +01:00
Chris Andrew
9f23818c40 Documented various missing descriptions for GameObject classes and functions. 2018-06-20 07:28:02 +01:00
Andre van Tonder
b2f8a139cc change ParticleEmitter.startFollow to fix issue 3764 2018-06-18 14:25:12 +08:00
Richard Davey
15b544fc46 jsdoc fixes 2018-06-13 08:37:40 +01:00
Richard Davey
7df02a4447 Added 2 NOOPs instead of merging the whole mixins. 2018-06-01 00:03:45 +01:00
TadejZupancic
6f7463f4f7
Particle Emitter Manager in Container
Added Alpha and ScrollFactor Mixin to Particle Emitter Manager otherwise it crashes when added to the Container.
2018-05-30 10:44:49 +02:00
Richard Davey
2630c982b4 jsdoc fixes 2018-05-22 15:55:36 +01:00
Richard Davey
9429a28574 The Particle tint value was incorrectly calculated, causing the color channels to be inversed. Fix #3643 2018-05-18 13:16:17 +01:00