Richard Davey
6cda06c6b2
The Text.dirty
Game Object property has been removed. It wasn't used internally at all, so was just adding confusion and using space.
2023-09-27 16:58:25 +01:00
Alvaro Estrada
73a1d96b48
Correction
...
Made a correction, my previous assumption was that the particleData stored a copy of the configuration data, but after further review of the code only the min and max values are ever used. Any further extensions of the code will need to have these properties.
2023-09-25 13:57:03 -06:00
Alvaro Estrada
1ce053c7a7
Removed interface EmitterOpRandomStartEndConfig
...
The interface EmitterOpRandomStartEndConfig, even though it is another path to configure a random emit value, it does not fully describe that all the options for the EmitterOpEaseConfig are available to use. Instead it is better to add to the description of the EmitterOpEaseConfig that there is a random start value option available.
2023-09-24 23:51:44 -06:00
Alvaro Estrada
9b4d41d1bf
Fixed a typo, changed 'Interal' for 'Internal'
2023-09-24 22:49:42 -06:00
Alvaro Estrada
1888025575
Added to the description that EmitterColorOp is an extension of the EmitterOp class.
2023-09-24 22:48:21 -06:00
Rex
1704e2ca5a
Add read-only originX, originY properties
2023-09-21 11:10:49 +08:00
Rex
8f061e1039
Update remove, removeAll, add methods
2023-09-21 00:40:53 +08:00
Alvaro Estrada
787c534ff1
Update ParticleEmitter.js
...
Made AddEmitZone and AddDeathZone work more similar.
* AddDeathZone returns an output array
* AddEmitZone checks for the validity of the source needed methods
2023-09-20 10:27:36 -06:00
Alvaro Estrada
5c09d6e34d
Updated the description of DeathZoneObj
...
Switched the references of Circle, Ellipse, Polygon, and Triangle for only one reference to the DeathZoneSource
2023-09-19 12:15:34 -06:00
Alvaro Estrada
45b6292a0c
Constructor parameters correction
...
Defining stepRate as an optional parameter
2023-09-18 09:58:58 -06:00
Alvaro Estrada
62949f1d38
addEmitZone return correction
...
Changed the type of return
2023-09-14 13:01:37 -06:00
Alvaro Estrada
62eb820ba0
Type clarification for emit zone data
...
I have updated the definition of EmitZoneObject to exclusively represent EdgeZone or RandomZone objects, excluding their configurations. Previously, the emitZones property was either an array of RandomZones or an array of EdgeZones, not an Array that could hold either. With this change, emitZones is now represented as an array of EmitZoneObjects.
EmitZoneData takes over the role previously held by EmitZoneObject.
2023-09-14 12:35:31 -06:00
Alvaro Estrada
6aa625b3cc
Description correction
2023-09-13 12:34:13 -06:00
Alvaro Estrada
5df5258c68
EmitterOpOnEmitCallback update
...
Changed the parameters to be optional since not all the onEmit calls actually pass parameters to the function, so there should be a warning about that
2023-09-13 12:31:29 -06:00
Alvaro Estrada
9d33475c5d
Changed the obligatory definition for an optional definition
2023-09-07 20:53:17 -06:00
Alvaro Estrada
7ff66e81bb
Fixed int type
...
Added int as possible undefined
2023-09-07 18:43:26 -06:00
Alvaro Estrada
953b316526
EmitterOpRandomMinMaxConfig type correction
...
Added the description of the "int" boolean property that was missing
2023-09-07 18:18:52 -06:00
Alvaro Estrada
0ed6d4030d
Created ParticleData description
...
Gave a description for the ParticleData type
2023-09-07 18:12:52 -06:00
Alvaro Estrada
2d32b53c1a
Added the use of Vector2Like
...
Changed the types of follow and followOffset to use the interface Vector2Like, this enable more objects to be used and not only gameobjects and better describe followOffset
2023-09-07 18:11:02 -06:00
Richard Davey
de48d84699
Updated jsdocs
2023-09-07 17:21:32 +01:00
Richard Davey
232916e3fa
Fixed use of modified Wrap function
2023-09-07 16:42:41 +01:00
Richard Davey
533ed6e47d
The ParticleEmitterWebGLRenderer
has been refactored so that the particle.frame
is used as the source of the glTexture
used in the batch and also if a new texture unit is required. This fixes issues where a Particle Emitter would fail to use the correct frame from a multi-atlas texture. Fix #6515
2023-09-07 16:14:06 +01:00
Richard Davey
540fe9ec9a
Merge pull request #6578 from rexrainbow/mesh-setinteractive-improve
...
Uses current faces to do hit-testing
2023-09-07 14:08:28 +01:00
Richard Davey
6cbcfefe7b
Clarified jsdocs
2023-09-07 13:28:52 +01:00
Richard Davey
b57369347f
Merge pull request #6576 from PresentCreativeLLC/EmitParticle-Type-Fix
...
Update return type of emitParticle
2023-09-07 13:26:44 +01:00
Richard Davey
0cec5012b4
Merge pull request #6575 from PresentCreativeLLC/ParticleEmitterConfig-Type-Fix
...
Update ParticleEmitterConfig.js
2023-09-07 13:26:05 +01:00
Richard Davey
8622e611f7
Merge pull request #6595 from PresentCreativeLLC/ParticleEmitterFrameConfigFix
...
Update ParticleEmitterFrameConfig.js
2023-09-07 13:23:40 +01:00
Richard Davey
6d22019f26
Update ParticleEmitterAnimConfig.js
2023-09-07 13:21:51 +01:00
Richard Davey
18f5a73692
Merge pull request #6587 from PresentCreativeLLC/missing-particle-emitter-property
...
Added missing description of the anims property of the particle emitter for JSDoc
2023-09-07 13:19:17 +01:00
Richard Davey
4c65ea408a
Merge pull request #6605 from emadkhezri/master
...
Fixed a typo in TextFactory.js
2023-09-07 13:16:37 +01:00
Richard Davey
d9f51c0562
null the Camera reference
2023-09-05 14:56:13 +01:00
Emad
266ddb7545
fixed a typo in TextFactory.js
2023-09-03 22:34:28 +10:00
Richard Davey
b5c9b76eff
Updated docs
2023-08-28 15:42:02 +01:00
Alvaro Estrada
4cfa8c4287
Update ParticleEmitterFrameConfig.js
...
Changed the configuration to better reflect what is accepted by the function
2023-08-24 13:57:52 -06:00
Alvaro Estrada
e37134e47e
Fixed file name discrepancy with the interface name
2023-08-17 11:11:57 -06:00
Alvaro Estrada
525730dbb1
Added missing description of the anims property of the particle emitter
...
- Created a description of the object handed to the function setAnim
- Added the property anim to ParticleEmitterConfig
- Changed the parameters description of setAnim to better match
2023-08-17 11:09:04 -06:00
Rex
cd3646c850
Uses current faces to do hit-testing
2023-08-10 12:04:41 +08:00
Alvaro Estrada
6177670abc
Update return type of emitParticle
...
The function emitParticle can also return undefined when the particle max limit has been reached
2023-08-08 07:07:49 -06:00
Alvaro Estrada
f01af5ba3a
Update ParticleEmitterConfig.js
...
- Fixed the Texture type in the ParticleEmitterConfig
2023-08-07 23:15:25 -06:00
Alvaro Estrada
6bc801ddff
Update ParticleEmitterConfig.js
...
- Fixed a typo
- Updated JSDoc so ParticleEmitterConfig refers to EmitZoneObject and EmitZoneObject[] instead of EdgeZoneConfig and RandomZoneConfig
- Updated JSDoc so ParticleEmitterConfig refers to DeatZoneObject and DeathZoneObject[] instead of DeathZoneConfig
2023-08-07 18:14:00 -06:00
Trissolo
1ea1c9313c
Added two optional parameters, 'updateSize' and 'updateOrigin', which are used as second and third arguments when setting the frame. In fact 'setFrame()' takes three arguments
2023-08-02 11:17:20 +02:00
Richard Davey
d5318589bd
Marked as optional
2023-07-26 18:49:38 +01:00
Richard Davey
80da532028
Merge pull request #6555 from PresentCreativeLLC/particle-emitter-type-fix
...
JSDocs update
2023-07-26 18:46:24 +01:00
Richard Davey
719bfd9dd8
Default the fill/line style to transparent
2023-07-24 14:33:49 +01:00
Alvaro Estrada
996a1361c4
JSDocs update
...
Updated the JSDocs for the particle emitter to fix an issue with its typescript constructor description
2023-07-21 13:48:18 -06:00
Richard Davey
c44dbccedc
The PathFollower.pathUpdate
method will now check if the tween
property has a valid data
component before running the update. This prevents a call to PathFollower.stopFollow
from throwing a Cannot read properties of null (reading '0')
error as it tried to do a single update post stop. Fix #6508
2023-07-21 18:20:38 +01:00
Richard Davey
4fa348e161
Group.createFromConfig
will now check to see if the config contains either internalCreateCallback
or internalRemoveCallback
and set them accordingly. This fixes an issue where the callbacks would never be set if specified in an array of single configuration objects. Fix #6519
2023-07-21 18:12:33 +01:00
Richard Davey
7d4e6a3688
When using interpolation for a Particle Emitter operation, such as: x: { values: [ 50, 500, 200, 800 ] }
it would fail to set the final value unless you specified the interpolation
property as well. It now defaults to linear
if not given. Fix #6551
2023-07-21 17:33:13 +01:00
Richard Davey
a17c6f78e9
Particle.alpha
is now clamped to the range 0 to 1 within the update
method, preventing it from going out of range. Fix #6551
2023-07-21 17:18:59 +01:00
Richard Davey
56254d0114
The Rope
Game Object now calls initPostPipeline
allowing you to use Post FX directly on it, such as glow, blur, etc. Fix #6550
2023-07-21 17:07:32 +01:00
Richard Davey
b266223318
Modified method name to be plural
2023-07-21 16:57:48 +01:00
Richard Davey
a4e53acc33
Merge pull request #6453 from rexrainbow/particles-clear-zones
...
Add methods to clear EmitZone or DeathZone
2023-07-21 16:55:22 +01:00
Richard Davey
b3e1b77686
Updated jsdocs
2023-07-21 16:54:51 +01:00
Richard Davey
0db2134c2e
Merge pull request #6505 from Ariorh1337/6504
...
6504: add letter spacing
2023-07-21 16:48:45 +01:00
Richard Davey
31a0fe0303
Merge pull request #6480 from EmilSV/bitmaptext_render_fix
...
BitmapText now reset texture unit on flush
2023-07-21 16:36:27 +01:00
Richard Davey
bce1e48040
Merge pull request #6494 from samme/docs/particle-emitter-xy
...
Docs: particleX and particleY are updatable ops
2023-07-21 16:06:53 +01:00
Richard Davey
63234a2add
Text.setRTL
is a new method that allows you to set a Text Game Object as being rendered from right-to-left, instead of the default left to right (thanks @rexrainbow)
2023-07-21 16:03:43 +01:00
Richard Davey
c678807d69
Merge pull request #6517 from rexrainbow/text-setrtl
...
Add setRTL method
2023-07-21 15:57:10 +01:00
Richard Davey
fb3c85888b
Typo fix
2023-06-11 22:37:06 +01:00
Rex
ba5eb16aeb
Add setRTL method
2023-05-31 21:01:15 +08:00
Dmitry Omelchenko
b84ee33cc2
add letter spacing
2023-05-13 04:50:37 +03:00
samme
1149ad2fc5
Docs: particleX and particleY are updatable ops
2023-05-04 16:32:38 -07:00
Richard Davey
ed180bcc44
Particle.scaleY
would always be set to the scaleX
value, even if given a different one within the config. It will now use its own value correctly.
2023-04-19 17:58:48 +01:00
Emil Schnedler Vad
0d06b87c9e
BitmapText now reset texture unit on flush
2023-04-19 15:37:17 +02:00
Richard Davey
6b55674d89
Update ParticleEmitterConfig.js
2023-04-12 08:49:58 +01:00
Richard Davey
4ccf0371ec
Remove visible check, so they render to DynamicTextures again
2023-04-12 07:10:52 +01:00
Richard Davey
63a852779a
Return array of zones
2023-04-12 02:07:59 +01:00
Richard Davey
1c6e0c81d1
Merge pull request #6462 from EmilSV/particle-render-fix
...
fixed particle using a white texture if flush happened
2023-04-12 01:54:43 +01:00
Richard Davey
4a892c007d
Removed 'removeVideoElementOnDestroy' and better docs
2023-04-12 01:46:45 +01:00
Richard Davey
136c2fee42
Updated video events
2023-04-12 01:46:32 +01:00
Richard Davey
08556b2695
Delete VIDEO_TIMEOUT_EVENT.js
2023-04-12 01:46:23 +01:00
Richard Davey
ce05f42759
Update VideoFactory.js
2023-04-12 00:39:34 +01:00
Richard Davey
ff3f92f4d5
Test for ended state. Fix #5873
2023-04-12 00:39:30 +01:00
Richard Davey
9cd1fa45fb
Updated jsdocs
2023-04-12 00:08:42 +01:00
Richard Davey
3af1d9002c
Reset playCalled on complete. Emit new texture ready event.
2023-04-12 00:01:15 +01:00
Richard Davey
950fabe306
Added texture ready event
2023-04-12 00:00:58 +01:00
Richard Davey
8c2e591362
Moved PLAY event to after texture creation. Added frameReady property. Better paused handling.
2023-04-11 19:46:13 +01:00
Richard Davey
93620ca39e
Fixed markers and video looping
2023-04-11 18:26:46 +01:00
Richard Davey
8412e53df3
Working perfectly for modern and legacy browsers.
2023-04-11 17:03:00 +01:00
Richard Davey
257fdaed4f
All now working via promise + rvf flow
2023-04-11 02:05:56 +01:00
Richard Davey
bff9184329
Added new unsupported event
2023-04-11 02:05:37 +01:00
Richard Davey
45646c52a2
Nearly finished refactoring of RVF / Promise path of Video game object
2023-04-11 00:57:11 +01:00
Richard Davey
368cb4a146
Added new Video events
2023-04-11 00:39:14 +01:00
Richard Davey
90654dedc1
Updated docs
2023-04-11 00:39:03 +01:00
Richard Davey
af9a67f0a4
Update Video.js
2023-04-10 19:51:26 +01:00
Emil Schnedler Vad
c4327de589
fixed particle using a white texture if flush happen
2023-04-09 17:54:57 +02:00
Emil Schnedler Vad
bc6ec0a124
reverted using getTextBounds for cotainer getBounds()
2023-04-08 20:37:12 +02:00
Richard Davey
6b6077f62b
Recoding Video Game Object
2023-04-07 19:18:54 +01:00
Richard Davey
afe5401a25
Add missing String cast. Fix #6451
2023-04-05 14:47:00 +01:00
Rex
1e4b807656
Add methods to clear EmitZone or DeathZone
2023-04-05 16:36:29 +08:00
Richard Davey
49d56e7dc4
Added new clearFX
method and tidied up the docs and functions for FX removal. Fix #6451
2023-04-04 15:46:11 +01:00
Richard Davey
715ee10367
Clarifying the docs. Fix #6446
2023-04-03 18:30:05 +01:00
Richard Davey
01afa66230
clear
now has 2 arguments to clear pre/post or both. Fix #6440
2023-03-31 14:45:37 +01:00
Richard Davey
6d539ab1c4
Merge pull request #6419 from kainage/fix-particle-lifespan
...
Fix ParticleEmitter#setParticleLifespan
2023-03-31 14:27:20 +01:00
Richard Davey
09ebf4048e
Removed use of 'Add' (don't need exclusive check) and fixed index 0 offset errors
2023-03-30 15:49:03 +01:00
Kainage
469a7fac45
Merge branch 'photonstorm:master' into fix-particle-lifespan
2023-03-24 11:37:43 -07:00
Richard Davey
d9e98a7e85
Mesh and Plane now support setInteractive
. Fix #6394
2023-03-24 00:07:11 +00:00
Richard Davey
7237299639
The GetBounds.getCenter
method now has an optional includeParent
argument, which allows you to get the value in world space. Also updated types.
2023-03-23 17:15:53 +00:00
Richard Davey
5944a8f5a2
Add default origin. Fixes setInteractive()
.
2023-03-23 00:34:21 +00:00
Richard Davey
dd98011eb3
Added custom hitAreaCallback for #6394
2023-03-22 18:51:46 +00:00