Commit graph

11462 commits

Author SHA1 Message Date
Richard Davey
c37da11d36 pma is essential - to hell with Firefox! 2021-11-08 21:51:08 +00:00
Richard Davey
2efa08d3db Testing pma off 2021-11-08 18:49:48 +00:00
Richard Davey
3e45e6af38 Update WebAudioSoundManager.js 2021-11-08 18:26:06 +00:00
Richard Davey
46b9db5aca Added jsdocs, removed debug calls, added decoding flag 2021-11-08 18:01:50 +00:00
Richard Davey
86b26eff8d Added jsdocs, removed debug tests, fixed pending playback 2021-11-08 18:01:23 +00:00
Richard Davey
aaed099c0a Create WebAudioDecodeEntry.js 2021-11-08 18:01:03 +00:00
Richard Davey
78c141c84e Removed unlock handler from main loop 2021-11-08 18:00:54 +00:00
Richard Davey
1bf6ec2712 Removed un-used code 2021-11-08 17:58:53 +00:00
Richard Davey
077db60818
Merge pull request #5921 from teng-z/master
fix: The window touchcancel event is not removed
2021-11-08 16:09:13 +00:00
Richard Davey
18b9643d8f Return all sound types. Fix #5578 2021-11-08 16:04:11 +00:00
Richard Davey
1deb04bcee Documented all of the NoAudio properties and methods #5578 2021-11-08 15:51:56 +00:00
404
3a3f479196 fix: The window touchcancel event is not removed 2021-11-08 16:13:59 +08:00
Rex
784c2bd1ae Allow Shape game object to be a mask 2021-11-05 10:57:17 +08:00
Richard Davey
a2956176dd New unlocking and decode queue code 2021-11-05 00:27:26 +00:00
Richard Davey
4f1f5ede9c Postponed all audio buffer creation until context is ready 2021-11-05 00:27:13 +00:00
Richard Davey
63fd3b92cd Expose new DECODED_KEY event 2021-11-05 00:26:57 +00:00
Richard Davey
b57e5f0dfa Only add to the cache if we've got data! 2021-11-05 00:26:44 +00:00
Richard Davey
313d2e8936 Create DECODED_KEY_EVENT.js 2021-11-05 00:26:30 +00:00
Richard Davey
4d6c67c22e Working through removing audio decoding from the loader 2021-11-04 17:54:43 +00:00
Richard Davey
c3b897d338
Merge pull request #5890 from natureofcode/fix/quadratic-bezier-curve#type
Fix missing `QuadraticBezier` curves in `Path.fromJSON()` results
2021-11-04 16:44:14 +00:00
Richard Davey
7e14e2feaa Update Path.js 2021-11-04 16:41:42 +00:00
Richard Davey
bf0b3b1601 Correct version number 2021-11-04 16:39:36 +00:00
Richard Davey
9400f9e410
Merge pull request #5854 from natureofcode/feature/path#get-curve-at
Add new `Path#getCurveAt()` method
2021-11-04 16:39:30 +00:00
Richard Davey
70253a95b7
Merge pull request #5858 from GregDevProjects/issue-5684
Add static Lerp method on Vector2
2021-11-04 16:25:53 +00:00
Richard Davey
067e6fd4f0 Scene.pause will now check to see if the Scene is in either a RUNNING or CREATING state and throw a warning if not. You cannot pause non-running Scenes. 2021-11-04 14:55:24 +00:00
Richard Davey
b8468c8bc2 Added getStatus method 2021-11-04 14:55:16 +00:00
Richard Davey
b8339c16e6 Compressed Texture files can now be loaded from a file configuration object or a file pack 2021-11-03 22:07:34 +00:00
Richard Davey
18e044ef02 Removed all of the pendingDestroy calls, as this is now handled by the Loader Plugin. 2021-11-03 21:20:06 +00:00
natureofcode
e43f54fdd5 Add new Path#getCurveAt() method 2021-11-04 00:40:40 +05:00
Richard Davey
1a07b840b9 Added state property, pendingDestroy and destroy methods 2021-11-03 18:51:25 +00:00
Richard Davey
9eeccf3690 The Loader calls pendingDestroy automatically 2021-11-03 18:51:10 +00:00
Richard Davey
d3e9dc59e5 Removed file destroy 2021-11-03 18:50:56 +00:00
Richard Davey
a794e9c4c5 Added pendingDestroy guard 2021-11-03 18:50:45 +00:00
Richard Davey
dc73546048 Updated the docs about the data parameter 2021-11-03 18:50:28 +00:00
Richard Davey
a00f88a786 Added new PENDING_DESTROY const 2021-11-03 18:50:14 +00:00
Richard Davey
68a1a4b300 Added links to atlas software 2021-11-03 17:01:46 +00:00
Richard Davey
07f0bd4184 The JSON Hash and Array Texture Parsers will now throw a console.warn if the JSON is invalid and contains identically named frames. 2021-11-03 13:49:24 +00:00
Richard Davey
68550dbddb Update Key.js 2021-11-02 22:54:17 +00:00
Richard Davey
fc1234e55b Added createProgram, setBoolean and the new src properties 2021-11-02 18:05:18 +00:00
Richard Davey
565dfc801a WebGLPipeline.setBoolean is a new method that allows you to set a boolean uniform on a shader. 2021-11-02 18:00:25 +00:00
Richard Davey
95d7dc71b2 Update SpriteFXPipeline.js 2021-11-02 17:05:23 +00:00
Richard Davey
4b63bd2500 Update Pipeline.js 2021-11-02 17:05:16 +00:00
Richard Davey
950ba75bfc Updated jsdocs 2021-11-02 14:02:46 +00:00
Richard Davey
aea45bb06d Text with RTL enabled wouldn't factor in the left / right padding correctly, causing the text to be cut off. It will now account for padding in the line width calculations. Fix #5830 2021-11-01 18:44:10 +00:00
Richard Davey
3e1d77ad8f The KeyboardPlugin.removeKey method has a new optional parameter removeCapture. This will remove any keyboard capture events for the given Key. Fix #5693 2021-11-01 18:13:51 +00:00
Richard Davey
8ec99f9224 Use cached reg ex 2021-11-01 17:34:13 +00:00
Richard Davey
176a95336e The Video config will now detect for x-m4v playback support for video formats and store it in the Video.m4v property. This is used automatically by the VideoFile file loader. Fix #5719 2021-11-01 17:33:44 +00:00
Richard Davey
314ff439c9
Merge pull request #5889 from samme/fix/path-follower-end
Fix PathFollower end point when given `to`
2021-11-01 17:07:54 +00:00
natureofcode
d180218ae6 Fix type field of QuadraticBezier curve class
It fixes missing `QuadraticBezier` curves in `Path.fromJSON()` results
2021-10-31 01:19:56 +05:00
samme
ebb27e8ae4 Fix PathFollower end point when given to 2021-10-30 11:13:50 -07:00
Richard Davey
f7d81c4bd1 The default Tween._pausedState has changed from INIT to PENDING_ADD. This fixes a bug where if you called Tween.play immediately after creating it, it would force the tween to freeze. Fix #5454 2021-10-29 18:49:49 +01:00
Richard Davey
5e2c00e69f Calling Tween.reset when a tween was in a state of PENDING_REMOVE would cause it to fail to restart. It now restarts fully. Fix #4793 2021-10-29 18:26:13 +01:00
Richard Davey
5a1be5d07d TweenManager.reset is a new method that will take a tween, remove it from all internal arrays, then seek it back to its start and set it as being active. 2021-10-29 18:25:14 +01:00
Richard Davey
66939d0621 Clarify scene data in docs. Fix #5001 2021-10-29 17:53:57 +01:00
Richard Davey
8c6f5ec109 The ScriptFile Loader File Type has a new optional parameter: type. This is a string that controls the type attribute of the <script> tag that is generated by the Loader. By default it is 'script', but you can change it to 'module' or any other valid type. 2021-10-29 15:47:41 +01:00
Richard Davey
3c429088e4 Use the new isRay parameter 2021-10-28 15:01:51 +01:00
Richard Davey
7b976d6d8e The Geom.Intersects.GetLineToPolygon method has a new optional parameter isRay. If true it will treat the line parameter as a ray, if false, as a line segment (the default). 2021-10-28 15:01:51 +01:00
Richard Davey
d587b8f5a7 The Geom.Intersects.GetLineToPoints method has a new optional parameter isRay. If true it will treat the line parameter as a ray, if false, as a line segment (the default). 2021-10-28 15:01:51 +01:00
Richard Davey
50b02e9cdf The Geom.Intersects.GetLineToLine method has a new optional parameter isRay. If true it will treat the first line parameter as a ray, if false, as a line segment (the default). 2021-10-28 15:01:51 +01:00
Richard Davey
20d4391c29 Calling ParticleEmitter.setScale would set the scaleY property to null, causing calls to setScaleY to throw a runtime error. scaleY is now a required property across both the Particle and Emitter classes and all of the conditional checks for it have been removed 2021-10-28 15:01:51 +01:00
Richard Davey
c94719e0b8 Added alt swap frame 2021-10-28 01:19:52 +01:00
Richard Davey
be06610957 Preparing for beta 4 2021-10-27 18:09:56 +01:00
Richard Davey
03345ea60c Update WebGLPipeline.js 2021-10-27 17:21:59 +01:00
Richard Davey
9980c35c3e Update SpriteFXPipeline.js 2021-10-27 17:21:55 +01:00
Richard Davey
6aa75d8e5d Now works with multi-atlases and normal maps 2021-10-27 17:15:55 +01:00
Richard Davey
dbeefcc405 Update CompressedTextureFileConfig.js 2021-10-27 17:06:38 +01:00
Richard Davey
b3f34a0471 Update Text.js 2021-10-27 15:46:20 +01:00
Richard Davey
8a941dce98 Added optional shape config 2021-10-27 13:19:40 +01:00
Richard Davey
c391ad6c87 Check if still input enabled 2021-10-26 18:24:06 +01:00
Richard Davey
0fcd785ceb Calling TimerEvent.reset in the Timer callback would cause the timer to be added to the Clock's pending removal and insertion lists together, throwing an error. It will now not add to pending removal if the timer was reset. Fix #5887 2021-10-26 18:23:46 +01:00
Richard Davey
50669c7bdf Updated jsdocs. Fix #5880 2021-10-26 14:31:15 +01:00
Richard Davey
29ada646e0 Updated docs 2021-10-26 00:04:37 +01:00
Richard Davey
17c76c831c The Multi Tint fragment shader now uses the new getSampler function approach from Phaser 4 2021-10-26 00:00:35 +01:00
Richard Davey
4d18ad6ff8 Removed GenerateSrc, removed need for forloop declaration 2021-10-26 00:00:20 +01:00
Richard Davey
27833cafc7 Fixed else block 2021-10-25 21:15:53 +01:00
Richard Davey
39a06f241b The SceneManager.bootScene method will now always call LoaderPlugin.start, even if there are no files in the queue. This means that the Loader will always dispatch its START and COMPLETE events, even if the queue is empty because the files are already cached. You can now rely on the START and COMPLETE events to be fired, regardless, using them safely in your preload scene. Fix #5877 2021-10-25 18:48:38 +01:00
Richard Davey
43ed170cd7 ScaleManager.getParentBounds will now also check to see if the canvas bounds have changed x or y position, and if so return true, causing the Scale Manager to refresh all of its internal cached values. This fixes an issue where the canvas may have changed position on the page, but not its width or height, so a refresh wasn't triggered. Fix #5884 2021-10-25 18:25:24 +01:00
Richard Davey
64e343045e
Merge pull request #5869 from samme/feature/error-for-file-process-fails
Print a console error when file processing fails
2021-10-25 18:02:25 +01:00
Richard Davey
f6147757d5
Merge pull request #5871 from samme/docs/ObjectHelper
Docs: fix types in Phaser.Tilemaps.ObjectHelper#setFromJSON
2021-10-25 18:01:18 +01:00
Richard Davey
c9beece946
Merge pull request #5879 from samme/docs/scene-config
Docs: mark Scene config optional
2021-10-25 17:59:55 +01:00
Richard Davey
55ef37b6fb Removed spriteData, added destroy, tidied up docs 2021-10-21 18:38:15 +01:00
Richard Davey
461e1ff4d0 Update PipelineConfig.js 2021-10-21 18:38:05 +01:00
Richard Davey
0020f03ead Fixed Sprite FX targetBounds 2021-10-20 17:02:37 +01:00
Richard Davey
143d63dcb0 Debugging 2021-10-20 12:37:05 +01:00
Richard Davey
508630ad81 Added renderTargets, maxDimension, frameInc and targetIndex 2021-10-20 12:36:54 +01:00
Richard Davey
9e38e37d6f Removed RenderTargets (moved to PM) and flipped projection matrix 2021-10-19 22:48:02 +01:00
Richard Davey
5fb2604292 Removed flip verts 2021-10-19 22:47:34 +01:00
Richard Davey
d46f6e37f3 WebGLPipeline.flipProjectionMatrix is a new method that allows you to flip the y and bottom projection matrix values via a parameter. 2021-10-19 22:47:22 +01:00
Richard Davey
ef4d5d94bb New fsTarget copySubTex approach (faster) 2021-10-19 18:43:15 +01:00
Richard Davey
c6ac6125c9 Update MultiPipeline.js 2021-10-19 18:42:58 +01:00
samme
787437c219 Docs: mark Scene config optional
Fixes #5874
2021-10-19 09:13:14 -07:00
Richard Davey
a576059055 Prepare for 3.60 Beta 3 2021-10-18 18:31:32 +01:00
Richard Davey
b434c3b4f8 Fixed jsdocs 2021-10-18 17:54:25 +01:00
Richard Davey
347b6db490 Added altFrame option and calculations + handy utility functions 2021-10-18 17:49:09 +01:00
Richard Davey
d4edcbd8ca Set default vert shader 2021-10-18 16:01:53 +01:00
Richard Davey
f34657cf87 Removed the Tint and Flip components from the Camera class. Neither were ever used internally, or during rendering, so it was just confusing having them in the API. 2021-10-17 16:34:45 +01:00
Richard Davey
ba0a52e386 Update SpriteFXPipeline.js 2021-10-16 15:30:03 +01:00
Richard Davey
638fd113b5 Flip the Y on textures 2021-10-16 15:23:33 +01:00
Richard Davey
9d7a575a4f Added FX component 2021-10-16 15:23:19 +01:00
Richard Davey
43df6de757 Removed duplicate post fx calls 2021-10-16 15:22:30 +01:00
Richard Davey
5e509bd72b Removed 'drawToFrame' (it's the only option) and added 'batchTexture' 2021-10-16 15:08:58 +01:00
Richard Davey
7a705d757c The Text Game Object would call the pre and post batch functions twice by mistake, potentially applying a post fx twice to it. 2021-10-16 15:08:39 +01:00
Richard Davey
acc9f07e5c Fixed data and alpha value 2021-10-15 18:45:23 +01:00
Richard Davey
fd1ab765a3 Full JSDocs and tidied up all the methods 2021-10-15 18:39:10 +01:00
Richard Davey
dddf601acb Added onFXCopy 2021-10-15 18:38:57 +01:00
Richard Davey
efa8c8b5a5 Fixed verts and called onFX 2021-10-15 00:59:04 +01:00
Richard Davey
163978452e Added onFX 2021-10-15 00:58:40 +01:00
Richard Davey
6c00b5cfc4 Added onPreCopy 2021-10-14 18:51:39 +01:00
Richard Davey
8a89700bf7 Fixed shader uniform issue and tidied up code 2021-10-14 18:45:59 +01:00
Richard Davey
bfecf9da5a RenderTarget will now automatically set the wrapping mode to clamp. 2021-10-14 18:45:41 +01:00
Richard Davey
c1c8e5d12b The WebGLRenderer.createTextureFromSource method has a new optional boolean parameter forceClamp that will for the clamp wrapping mode even if the texture is a power-of-two. 2021-10-14 18:45:28 +01:00
Richard Davey
d5a86d7b07 Update SpriteFXPipeline.js 2021-10-14 01:08:06 +01:00
Richard Davey
5d2749f5d6 Update SpriteFXPipeline.js 2021-10-14 00:55:27 +01:00
samme
15b62e1756 Docs: fix types in Phaser.Tilemaps.ObjectHelper#setFromJSON 2021-10-13 15:58:32 -07:00
Richard Davey
219ff50b90 Fixed copyFrame handling 2021-10-13 23:38:04 +01:00
Richard Davey
c4c5453dfb Removed log 2021-10-13 23:35:29 +01:00
samme
ba5e4ffab7 Docs: add Phaser.Types.GameObjects.Particles.ParticleClassConstructor
Fixes #5731 ?
2021-10-13 13:23:31 -07:00
samme
52e402e14e Docs: add Phaser.Types.GameObjects.Group.GroupClassTypeConstructor 2021-10-13 13:22:54 -07:00
Richard Davey
fd54fa741c Update SpriteFXPipeline.js 2021-10-13 18:56:41 +01:00
Richard Davey
635e7283d5 Added buffer to setVertexBuffer and setShader 2021-10-13 18:56:31 +01:00
Richard Davey
0bf366a096 Update SpriteFXPipeline.js 2021-10-13 13:04:08 +01:00
Richard Davey
803d71469e Fixed the vert and uv handling 2021-10-12 21:47:48 +01:00
Richard Davey
4f454a5701 Update WebGLPipeline.js 2021-10-12 21:47:39 +01:00
Richard Davey
3afc8b1a8e Flip the verts 2021-10-12 21:47:33 +01:00
Richard Davey
6eebd6c1cf GameObjects.Components.FX is a new component that provides access to FX specific propertis and methods. The Image and Sprite Game Objects have this component by default. 2021-10-12 21:47:24 +01:00
Richard Davey
2a473889dc Update SpriteFXPipeline.js 2021-10-12 18:54:06 +01:00
Richard Davey
85c6c4be44 Swap frame support added and drawSprite method 2021-10-12 18:00:50 +01:00
Richard Davey
68c3fc4171 Fixed resizing. Set RTs in boot. 2021-10-12 16:09:53 +01:00
Richard Davey
6fe88aeee7 Refactored to use existing functions where possible 2021-10-12 13:32:39 +01:00
Richard Davey
9e9c9298eb Much better renderTarget handling. Sprite now draws properly. Config handling done. Need to fix bindAndDraw 2021-10-12 01:03:45 +01:00
Richard Davey
53eb64b92b Added isSpriteFX property 2021-10-12 01:03:18 +01:00
Richard Davey
904ca9f7c4 Removed SpriteFX as you extend it, not instantiate it 2021-10-12 01:03:04 +01:00
Richard Davey
fd655d054c Added fxPadding property to Image 2021-10-12 01:02:42 +01:00
Richard Davey
e9d85c57ee Update SpriteFXPipeline.js 2021-10-11 18:49:17 +01:00
Richard Davey
7af3693fb5 Add SpriteFX Pipeline to const and default array 2021-10-11 18:49:13 +01:00
Richard Davey
b73d889ca9 Bump version 2021-10-11 18:48:41 +01:00
Richard Davey
038ffa7b77 Create SpriteFXPipeline.js 2021-10-11 18:06:42 +01:00
Richard Davey
fa25b9e254 Removed temp function 2021-10-11 18:06:35 +01:00
Richard Davey
5c88dd8593 Only need to set the width 2021-10-11 17:56:26 +01:00
Richard Davey
784f722b90 Remove, we'll handle this elsewhere 2021-10-11 17:56:11 +01:00
Richard Davey
e26eb49769 Update RenderTargetConfig.js 2021-10-11 17:04:20 +01:00
Richard Davey
d32badabf5 When defining the renderTargets in a pipeline config, you can now set optional width and height properties, which will create a Render Target of that exact size, ignoring the scale value (if also given). 2021-10-11 17:02:36 +01:00
Richard Davey
c1430f41dc Testing FX padding 2021-10-11 15:10:57 +01:00
Richard Davey
43d660a304
Merge pull request #5864 from rexrainbow/timer-with-a-short-delay
Invoke callback many times in very short delay case
2021-10-11 15:02:00 +01:00
Rex
92bedcfeac Check event.callback 2021-10-11 16:12:40 +08:00
Rex
00f998bf0d Check event.callback 2021-10-11 16:04:38 +08:00
Rex
6814d5c6b5 Twist code 2021-10-11 16:03:15 +08:00
Rex
0a1f47c65e Invoke callback many times in very short delay case 2021-10-11 15:44:00 +08:00
samme
e7130fb546 eslint-disable no-console 2021-10-10 12:56:11 -07:00
GregDevProjects
0c04102731 rename function, move it to Math class 2021-10-10 10:49:54 -03:00
samme
7b66f486d4 Remove console warnings for JSON/XML parse fails
Now done in onProcessError() instead
2021-10-09 10:31:54 -07:00
samme
c2d6d3b398 Print console errors for file process failures 2021-10-09 10:28:56 -07:00
kainage
369bf06b8e Fix WebGL Tilemap Layer Rendering
* A typo was blowing up rendering the tilemaps all together
* FIx the X coord not being calculated correctly in the `batchTexture` call
2021-10-06 22:01:12 -07:00
Greg
1d009f8a68 Add static Lerp method on Vector2 2021-10-06 21:56:02 -03:00
Richard Davey
8aa6385cec Fixed JSDocs 2021-10-06 21:39:44 +01:00
Richard Davey
663d6631d0 Merge branch 'master' of https://github.com/photonstorm/phaser 2021-10-06 21:14:33 +01:00
Richard Davey
9e753a4cfb Beta.1 number 2021-10-06 21:14:29 +01:00
Richard Davey
31836eaf3c Update CompressedTextureFile.js 2021-10-06 21:14:18 +01:00
Richard Davey
6f4ceba23f
Merge pull request #5855 from lfarroco/master
Fix rendering of Tiled object layers on isometric maps
2021-10-06 21:11:34 +01:00
Richard Davey
bf02aaa7ee Update WebGLTextureCompression.js 2021-10-06 18:48:04 +01:00
Richard Davey
56eccd67ff Finished and now works with atlas files too 2021-10-06 18:47:58 +01:00
Richard Davey
5ed49aea79 Create CompressedTextureFileConfig.js 2021-10-06 18:47:43 +01:00
Richard Davey
01beb898b3 The WebGLRenderer.createTextureFromSource method now accepts the CompressedTextureData data objects and creates WebGL textures from them. 2021-10-06 18:47:35 +01:00
Richard Davey
615321582f Expose the parsers 2021-10-06 18:44:19 +01:00
Richard Davey
97be6a965d Textures.Parsers.PVRParser is a new parser for the PVR compression container format. 2021-10-06 18:44:13 +01:00
Richard Davey
94906435c2 Textures.Parsers.KTXParser is a new parser for the KTX compression container format. 2021-10-06 18:44:03 +01:00
Richard Davey
e4bbc4dec7 TextureManager#addCompressedTexture is a new method that will add a compressed texture, and optionally atlas data into the Texture Manager and return a Texture object than any Sprite can use. 2021-10-06 18:43:20 +01:00
Richard Davey
3a6219914e Now parses compressed textures and sets the algorithm property 2021-10-06 18:42:26 +01:00
Richard Davey
8752890c2c Create MipmapType.js 2021-10-06 17:47:21 +01:00
Richard Davey
f2d21f26fd Create CompressedTextureData.js 2021-10-06 17:47:16 +01:00
Leonardo Farroco
fc4db55b26 adds isometric ratio 2021-10-05 23:19:09 -03:00
Richard Davey
7934613e8f The Tilemaps.Tile.getBounds method would take a camera parameter but then not pass it to the methods called internally, thus ignoring it. It now factors the camera into the returned Rectangle. 2021-10-05 21:52:54 +01:00
Richard Davey
234ba03b35 Update WebGLRenderer.js 2021-10-05 18:36:50 +01:00
Richard Davey
686e32b8d0 Now parses KTX and PVR textures 2021-10-05 18:33:50 +01:00
Richard Davey
a2428e1424 Create PVRParser.js 2021-10-05 18:30:24 +01:00
Richard Davey
6f9471f40d Create KTXParser.js 2021-10-05 18:30:21 +01:00
Richard Davey
f376958ca1 Added getCompressedTextureName method 2021-10-05 18:30:17 +01:00
Richard Davey
c0c17a1dd2 Update index.js 2021-10-05 18:00:22 +01:00
Richard Davey
9702594245 Create CompressedTextureFile.js 2021-10-05 17:58:45 +01:00
Richard Davey
7bdb9d672f Added supportsCompressedTexture method 2021-10-05 17:04:44 +01:00
Richard Davey
5a941ed509 Expanded to support all formats 2021-10-05 16:48:51 +01:00
Richard Davey
573dd3a14d Added getCompressedTextures method 2021-10-05 16:48:42 +01:00
Leonardo Farroco
64f7b992be linting 2021-10-03 16:35:02 -03:00
Leonardo Farroco
687942e77e Change positioning for isometric object layer from Tiled 2021-10-03 16:30:05 -03:00
Richard Davey
b968e46ee2 The Multi Pipeline now uses highp float precision by default, instead of mediump. This fixes issues with strange blue 'spots' appearing under WebGL on some Android devices. Fix #5751 #5659 #5655 2021-09-28 15:56:54 +01:00
Richard Davey
6cd7d6ce79 The Camera will now emit PRE_RENDER and POST_RENDER events under the Canvas Renderer. Fix #5729 2021-09-28 15:39:47 +01:00
Richard Davey
47bbde0e4b With roundPixels set to true in the game or camera config, Sprites will no longer render at sub-pixel positions under CANVAS. Fix #5774 2021-09-28 15:34:46 +01:00
Richard Davey
a4d8c9be47 Fix #5759 2021-09-28 15:21:13 +01:00
Richard Davey
83e2406cb4 The CameraManager.destroy function will now remove the Scale Manager RESIZE event listener created as part of boot, where-as before it didn't clean it up, leading to gc issues. Fix #5791 2021-09-28 15:08:31 +01:00
Richard Davey
c84187b856
Merge pull request #5842 from samme/feature/scene-stop-abort
Ignore scene stop if already shutdown
2021-09-24 14:40:48 +01:00
Richard Davey
cca537b66b
Merge pull request #5841 from samme/feature/warn-particle-missing-frame
Warn, throw for particle texture frame mistakes
2021-09-24 14:38:20 +01:00
samme
023336f826 Throw an error for missing particle texture frame 2021-09-23 11:15:58 -07:00
samme
da86ea7029 Warn for missing texture frames 2021-09-23 11:15:29 -07:00
Richard Davey
550dd2bd85
Merge pull request #5514 from etherealmachine/patch-1
Fix typing of MapData objects
2021-09-23 16:03:24 +01:00
Richard Davey
5dfab5f5d9 eslint and jsdoc fixes for #5697 2021-09-23 16:02:52 +01:00
Richard Davey
d44e8e782e
Merge branch 'master' into tilemap 2021-09-23 15:47:47 +01:00
Richard Davey
dc6b9c6d93 lint fix 2021-09-23 15:37:22 +01:00
Richard Davey
0c8bc91d4c
Merge pull request #5316 from kainage/camera-flash-effect-alpha
Allow setting alpha for 2D camera flash effect
2021-09-23 15:35:50 +01:00
Richard Davey
93db763f69
Merge pull request #5340 from 16patsle/Fix_object_types
Add more specific 'object' types, including GO Configs
2021-09-23 15:30:43 +01:00
Richard Davey
c8aeb4724a Added scale configs to game config #5840 2021-09-22 12:12:35 +01:00
Richard Davey
b57afb45c9 Fixed eslint issues in #5701 2021-09-22 11:44:43 +01:00
Richard Davey
49c9d2795d
Merge pull request #5701 from Skel0t/patch-1
Line-Line Intersection fix if dx1 === 0
2021-09-22 11:42:17 +01:00
Richard Davey
a5c0795967
Merge pull request #5772 from sylvainpolletvillard/master
types: complete Phaser.Input.Gamepad.Configs definitions
2021-09-22 11:35:25 +01:00
Richard Davey
ede72366ca
Merge pull request #5624 from andriibarvynko/fix_check_matrix_for_one_row_matrix_support
Allow to have one row matrix in CheckMatrix
2021-09-22 11:32:56 +01:00
Richard Davey
f4c7cb4a6d Fixed jsdocs. Renamed property to tileOffset. Fixed parsing of it. #5637 2021-09-22 11:26:08 +01:00
Richard Davey
736be1abc8 tileOffset hadn't been applied to the canvas renderer #5637 2021-09-22 11:25:39 +01:00
Richard Davey
d0b5b91a5e tileOffset is always set, so this check is redundant #5637 2021-09-22 11:25:13 +01:00
Richard Davey
32209baf39 Updated jsdocs 2021-09-22 11:24:35 +01:00
Richard Davey
d16588014f
Merge pull request #5637 from moJiXiang/fix-tilemap-offset
fix tilemap draw offset, maybe it is a bug, related issue #5633
2021-09-22 11:14:15 +01:00
Richard Davey
7434769faf
Merge pull request #5657 from moJiXiang/fix-bug-#5647
fix PutTileAt tile size with releated tileset width and height, releated bug #5647
2021-09-22 11:10:03 +01:00
Richard Davey
2771f280d2
Merge pull request #5750 from jonnytest1/master
assign array by index for skipped chunks
2021-09-22 11:03:44 +01:00
Richard Davey
d70b149170
Merge pull request #5793 from samme/fix/separate-tile-update-center
Update body center after tile separation
2021-09-22 11:01:28 +01:00
Richard Davey
0ab2534306 Update PipelineManager.js 2021-09-21 14:53:18 +01:00
Richard Davey
1c64f44dab Fixed eslint, added documentation 2021-09-21 12:01:48 +01:00
Richard Davey
1e5542df92
Merge pull request #5740 from hanzooo/loader-type
feat: Add support for load image by HTMLImageElement
2021-09-21 11:52:28 +01:00
Richard Davey
cd4baa100d
Merge pull request #5744 from rexrainbow/rectangle-setsize
Update Rectangle shape game object's display origin and default hitArea
2021-09-21 11:46:42 +01:00
Richard Davey
f0eb694166
Merge pull request #5763 from samme/fix/group-double-collide
Do physics group vs. self collisions without the RTree
2021-09-21 11:44:52 +01:00
Richard Davey
496b928c61 Fixed eslint issues 2021-09-21 11:38:33 +01:00
Richard Davey
9cfbe65bfa
Merge pull request #5766 from xiamidaxia/scenePlugins
Spine plugin multiple game instances support
2021-09-21 11:36:01 +01:00
Richard Davey
2546096b64 Fixed JSDocs. Close #5836 2021-09-21 11:33:01 +01:00
Richard Davey
4fd0a27b15 Formatting fix 2021-09-20 12:34:35 +01:00
Richard Davey
4ab8a4d3a3
Merge pull request #5767 from mayacoda/master
Fix getBounds for creating MatterTileBody for staggered tiles
2021-09-20 12:26:55 +01:00
Richard Davey
ee71c6b5d4
Merge pull request #5770 from eltociear/patch-1
Fix typo in MatterCollisionPair.js
2021-09-20 12:24:30 +01:00
Richard Davey
eff631944b
Merge pull request #5794 from samme/fix/render-texture-snapshot-canvas
Fix CanvasRenderer#snapshotCanvas()
2021-09-20 12:19:42 +01:00
Richard Davey
5f2e3f35e1 Fixed code format 2021-09-20 12:18:54 +01:00
Richard Davey
da3e8b5a25
Merge pull request #5788 from martell-ventures/loadURL_crossorigin
Add Crossorigin support
2021-09-20 12:16:14 +01:00
Richard Davey
4b011e2225
Merge pull request #5790 from samme/fix/createFromObjects-offset
Fix offset for non-tile objects in createFromObjects()
2021-09-20 12:12:41 +01:00
Richard Davey
d0b359fdd3
Merge pull request #5797 from samme/fix/create-renderer-fallback
Fix WEBGL-only selection and throw for unknown renderer type
2021-09-20 12:09:39 +01:00
Richard Davey
519a7f99e1 Bumped version 2021-09-20 12:08:56 +01:00
Richard Davey
e26f1dd460
Merge pull request #5800 from samme/fix/nested-layers-error
Add Layer#addToDisplayList(), Layer#removeFromDisplayList()
2021-09-20 12:07:11 +01:00
Richard Davey
e131488a32 Bumped version 2021-09-20 12:05:46 +01:00
Richard Davey
8075c3ab1b
Merge pull request #5819 from samme/fix/dom-element-parent-visibility
Add DOMElement#preRender, remove DOMElement#preUpdate
2021-09-20 12:01:16 +01:00
Richard Davey
cb6347d3b6 Merge branch 'master' of https://github.com/photonstorm/phaser 2021-09-20 11:59:30 +01:00
Richard Davey
f76f8711cd Added scene property 2021-09-20 11:59:20 +01:00
Richard Davey
9adcd5c615
Merge pull request #5825 from ubershmekel/master
Fix #5811, log error on invalid scene.start(key)
2021-09-20 11:54:49 +01:00
Richard Davey
4007f597da
Merge pull request #5834 from samme/docs/CreateFromObjectLayerConfig
Docs: correct CreateFromObjectLayerConfig.classType
2021-09-20 11:52:56 +01:00
Richard Davey
5a7ed14b3b Merge branch 'master' of https://github.com/photonstorm/phaser 2021-09-20 11:51:37 +01:00
Richard Davey
bf087e5068 Fixed JSDocs. Fix #5833 #5835 2021-09-20 11:51:21 +01:00
Richard Davey
929ad23b4e
Merge pull request #5748 from rexrainbow/zone-default-dropzone
Use default hitArea if hitArea parameter is not given
2021-09-20 11:45:18 +01:00
Richard Davey
235a997dfa
Merge pull request #5743 from rexrainbow/view-port
Add method to get visible area
2021-09-20 11:42:22 +01:00
Richard Davey
2f8d6a023d Updated version number 2021-09-20 11:41:47 +01:00
Richard Davey
259f68d04b Merge branch 'master' of https://github.com/photonstorm/phaser 2021-09-20 11:39:49 +01:00
Richard Davey
d8c5626a3a The Display.Masks.BitmapMask destroy method will now remove the context-lost event handler. 2021-09-20 11:39:32 +01:00
Richard Davey
305fbd1ec6
Merge pull request #5742 from rexrainbow/turn-off-context-restore-event
Turn off context restore event when game object is destroyed
2021-09-20 11:35:34 +01:00
Richard Davey
9db0b98228
Merge pull request #5757 from samme/fix/tween-setCallback
Correct use of Tween#setCallback() and Timeline#setCallback()
2021-09-20 11:31:09 +01:00
Richard Davey
cb15887bda
Merge pull request #5824 from samme/feature/texture-missing-error-msg
Add texture key to the missing frame warning
2021-09-20 11:29:19 +01:00
natureofcode
81e3c06676 Hotfix broken drag 2021-09-17 23:00:29 +05:00
natureofcode
89ff86202b Fix #5828 2021-09-17 12:19:39 +05:00
samme
08a600edcb Docs: correct CreateFromObjectLayerConfig.classType
Fixes #5831
2021-09-14 09:10:09 -07:00
samme
6df5b7e3a6 Ignore scene stop if already shutdown 2021-09-14 08:53:44 -07:00
Yuval Greenfield
1a713b4c5e Fix #5811, log error on invalid scene.start(key) 2021-09-03 23:11:29 -07:00
Richard Davey
535ca66ec6 colr typo in the docs 2021-09-03 12:35:32 +01:00
Richard Davey
7bbccf3327 Changing to v3.60 2021-09-03 12:35:18 +01:00
samme
c9cbace6f2 Add texture key to the missing frame warning 2021-09-02 10:41:16 -07:00
samme
846ea3fe1d Add DOMElement#preRender, remove DOMElement#preUpdate
Check parent visibility in preRender()

Fixes #5816
2021-08-27 10:43:21 -07:00
samme
728db67a6d Add Layer#addToDisplayList(), Layer#removeFromDisplayList()
Fixes #5799
2021-08-01 14:04:51 -07:00
samme
ec8a629d1c Fix WEBGL-only selection and throw for unknown renderer type
Fixes #5583
2021-07-30 11:41:28 -07:00
samme
8c2b1a7e35 Fix snapshotCanvas
Fixes #5792
2021-07-28 10:29:15 -07:00
samme
214a19fb7a Update body center after tile separation 2021-07-28 09:57:54 -07:00
samme
788bcb4330 Fix offset in createFromObjects()
Fixes #5789
2021-07-22 11:08:32 -07:00
Ryan Martell
078a94c3e6 Add Crossorigin support 2021-07-20 12:47:45 -06:00
Sylvain Pollet-Villard
2abe9e323f types: fixed duplicate names 2021-07-08 23:54:10 +02:00
Sylvain Pollet-Villard
dca5346573 types: JSDoc for Phaser.Input.Gamepad.Configs 2021-07-08 23:53:58 +02:00
Ikko Ashimine
21b11d8f7b
Fix typo in MatterCollisionPair.js
occured -> occurred
2021-07-07 16:40:53 +09:00
Maya Nedeljkovich
20ebc6f7a2 Fix getBounds for creating MatterTileBody for staggered tiles 2021-06-30 15:21:13 +02:00
xiamidaxia
9d2374c4a5 Fix install scene plugin #5765 2021-06-30 17:29:25 +08:00
samme
abfb8c6d7d Collide group vs self as array
Fixes #5758
2021-06-29 10:46:57 -07:00
samme
0882e03fce Remove obsolete comment 2021-06-27 11:53:30 -07:00
samme
9e6dc57063 Correct use of tween/timeline setCallback()
Fixes #5753
2021-06-26 17:30:24 -07:00
Jm
28f58f4e5e
Merge branch 'photonstorm:master' into loader-type 2021-06-23 13:09:15 +08:00
Richard Davey
9066f756f9 Made it clear a Tween will not update _ properties. Fix #5747 2021-06-18 18:06:58 +01:00
Richard Davey
7d70bfbd57 Removed Config.domBehindCanvas property as it's never used internally. Fix #5749 2021-06-18 18:03:07 +01:00
jonnytest1
46009935b4
assign array by index for skipped chunks
loading breaks for layers that skip chunks with no data
2021-06-18 02:34:05 +02:00
Rex
66e322dcd5 Use default hitArea if not hitArea is not ogiven
Default hitArea will resize when `zone.setSize(w, h)`
2021-06-16 11:16:19 +08:00
Rex
3a7557c3f4 Update display origin and default hitArea 2021-06-12 13:41:37 +08:00
Rex
3246dc4d8e Add method to get visible area 2021-06-12 13:27:22 +08:00
Rex
a6c75a36c8 Turn off context restore event when game object is destroyed 2021-06-12 12:44:23 +08:00
Jm
c1e73c3c2f feat: add image load type 2021-06-10 13:24:29 +00:00
Josh Black
cea3d45719 Add capacitor:// to protocol check to prevent malformed double-url issue in capacitor 2021-06-02 12:30:33 +01:00
Richard Davey
3dc66c3a43 Preparing for 3.56 2021-06-01 16:11:42 +01:00
Richard Davey
f95d1d224b Animation.createFromAseprite would calculate an incorrect frame duration if the frames didn't all have the same speed. 2021-06-01 16:11:27 +01:00
Richard Davey
1a086fc57c 3.55.2 Release 2021-05-27 14:52:00 +01:00
Richard Davey
9cd5f56eea Fixed an issue in FillPathWebGL, IsoBoxWebGLRenderer and IsoTriangleWebGLRenderer functions which caused the filled versions of most Shape Game Objects to pick-up the texture of the previous object on the display list. Fix #5720 2021-05-27 14:48:40 +01:00
Richard Davey
55b69e5d98 Made fromScene optional 2021-05-26 15:49:05 +01:00
Richard Davey
78b9215e2f Added the missing WebGLPipelineUniformsConfig type def. Fix #5718 (thanks @PhaserEditor2D) 2021-05-26 15:38:51 +01:00
Richard Davey
5552079c9d
Merge pull request #5717 from rexrainbow/destroy-from-scene
Add 'fromScene' parameter in GameObject.destroy() method, and DESTROY event
2021-05-26 15:29:35 +01:00
Richard Davey
c8cc337525 3.55.1 2021-05-26 15:24:17 +01:00
Richard Davey
5d9d543ce0 Fixed rendering calls. Fix #5712 2021-05-26 15:24:09 +01:00
Rex
07ff5de1e1 Add 'fromScene' parameter in GameObject.destroy() method, and DESTROY event 2021-05-26 16:25:12 +08:00
Richard Davey
3b160a2e9d Fixed jsdoc tags 2021-05-24 18:23:09 +01:00
Richard Davey
c7418bd1c3 Lint fix 2021-05-24 17:58:30 +01:00
Richard Davey
2d4326f836 Preparing for 3.56 dev 2021-05-24 17:56:08 +01:00
Richard Davey
0b944eb722 Updated version 2021-05-24 17:34:19 +01:00
Richard Davey
83fbeb97a8 Fixed jsdoc 2021-05-24 17:34:06 +01:00
Richard Davey
45ccff26e1 Fixed jsdoc name 2021-05-24 17:33:01 +01:00
Richard Davey
3a6e82a042 The WebGLShader.set1fv, set2fv, set3fv, set4fv, set1iv, set2iv, set3iv, set4iv, setMatrix2fv, setMatrix3fv and setMatrix4fv methods no longer try to do array comparisons when setting the uniforms, but sets them directly. Fix #5670 2021-05-24 17:24:03 +01:00
Richard Davey
68fb156ab1
Merge pull request #5694 from sebastianfast/master
#5689 moved _pending to beginning of function
2021-05-24 17:02:18 +01:00
Richard Davey
048c2772be
Merge pull request #5683 from karbassi/patch-1
GameObjectConfig allow type object
2021-05-24 17:00:38 +01:00
Richard Davey
f562354292
Merge pull request #5656 from valadaptive/faster-measure-text
Improve performance of MeasureText
2021-05-24 16:57:12 +01:00
Richard Davey
4a32a5cdb8
Merge pull request #5664 from rexrainbow/container-input-2
Invoke `addToRenderList()` before leaving render method
2021-05-24 16:54:43 +01:00
Richard Davey
23582a43a2
Merge pull request #5673 from rexrainbow/array-methods
Add MoveAbove, MoveBelow methods of List structure
2021-05-24 16:53:39 +01:00
Richard Davey
16eeb80d93
Merge pull request #5695 from Patapits/master
Fix WebGLPipelineAttributeConfig documentation
2021-05-24 16:52:41 +01:00
Richard Davey
06028bb2cd
Merge pull request #5704 from VektreX/master
Fixed video not resuming on regaining focus
2021-05-24 16:51:00 +01:00
Richard Davey
5d5d87cce3
Merge pull request #5706 from consolenaut/master
Fix Capacitor iOS audio issue
2021-05-24 16:48:53 +01:00
Emil Schnedler Vad
9fa971902b fixed type of ParticleEmitterConfig deathCallback to function 2021-05-24 16:42:01 +02:00
Brown Dragon
a420b6e46a Improve ObjectHelper docs even if they are just internal only 2021-05-21 09:49:19 -04:00
Josh Black
1a0b0beaae Add 'capacitor://' to local file check in loader File base class to allow capacitor-wrapped iOS apps to read media files 2021-05-18 08:06:45 +01:00
VektreX
b63bb53430 Reset _codePaused to false in play handlers to allow video to resume 2021-05-18 01:32:45 +02:00
Joshua Meyer
a0838c184f
dx1 !== 0 was an unnecessary restriction
In the previous version, if x1 == x2 the code was never able to detect an intersection even if there was one.

This limitation was because of the unnecessary division by dx1. With its removal it should work now.
2021-05-14 21:04:33 +02:00
Brown Dragon
02e67e682f Addresses https://github.com/photonstorm/phaser/issues/5697
This diff adds:
* `type` support to `createFromObjects`. See https://doc.mapeditor.org/en/stable/manual/custom-properties/#typed-tiles for the description in Tiled; this is currently not supported as a parameter, and its usage is documented within the diff.
* `createFromObjects` will also examine the tileset. As per the above link, created objects are supposed to inherit properties from the tile with the same gid, but Phaser doesn't do that right now. After this diff it optionally will, by passing an additional parameter to `createFromObjects`.
> NOTE: I'd be very happy to make this a default behavior, but that's somewhat backwards breaking
* `createFromObjects` will attempt to use the same texture and frame as Tiled when creating the object. This will behave poorly if there is no such frame (for instance, if the texture were loaded with `this.load.image` instead of `this.load.spritesheet`, or using different geometry. However, the current behavior draws missingimage, so this is a strong improvement.
2021-05-13 17:05:03 -04:00
Benjamin Magalhaes
562a05a642 Remove unused WebGLPipelineUniformsConfig 2021-05-13 15:21:35 +02:00
Benjamin Magalhaes
aa97541c3f Fix WebGLPipelineAttributeConfig documentation 2021-05-13 13:31:18 +02:00
Sebastian Fast
df9f367b95 #5689 moved _pending to beginning of function 2021-05-13 10:52:06 +02:00
Richard Davey
1f037d7670 Merge branch 'master' of https://github.com/photonstorm/phaser 2021-05-07 11:30:55 +01:00
Ali Karbassi
dd4ef06f97
GameObjectConfig allow type object
GameObjectConfig x, y, rotation, angle, and alpha should allow type object

Fixes #5682
2021-05-05 17:01:56 -05:00
Richard Davey
144924bc61 JSDoc fix 2021-05-03 18:15:29 +01:00
Richard Davey
f802ac5d8c The Input.Pointer.event property can now be a WheelEvent as well. 2021-05-03 18:15:20 +01:00
Richard Davey
c5f3f377ce Improved JSDocs 2021-04-26 10:05:57 +01:00
Rex
62ea171971 Add MoveAbove, MoveBelow methods of List structure
MoveAbove: Moves the given array element above another one in the array.
MoveBelow: Moves the given array element below another one in the array.
2021-04-26 15:17:42 +08:00
Richard Davey
7d3970178d The RenderTexture.endDraw method has a new optional boolean erase which allows you to draw all objects in the batch using a blend mode of ERASE. This has the effect of erasing any filled pixels in the objects being drawn. 2021-04-25 20:32:56 +01:00
Richard Davey
6735f7e88e Update Shape.js 2021-04-20 15:15:51 +01:00
Rex
fca1eb1206 Also fix it in CanvasRender 2021-04-20 21:15:46 +08:00
Rex
e6ed148abc Invoke addToRenderList first before leaving render method
Leaving render method when children count is 0
2021-04-20 10:22:59 +08:00
Richard Davey
7a12a205b8
Merge pull request #5661 from Palats/master
Fix Phaser.GameObjects.Components.Pipeline#postPipelines doc
2021-04-19 20:41:29 +01:00
Richard Davey
2156be011b Update Extern.js 2021-04-19 08:52:25 +01:00
Pierre Palatin
93543d650a
Fix Phaser.GameObjects.Components.Pipeline#postPipelines doc
* Updates the Documentation

Describe the changes below:
The `s` was missing in the doc for `postPipelines`, leading to wrong Typescript typing and misleading documentation.
2021-04-18 17:49:32 +02:00
Richard Davey
2712e87ca2 Graphics and Shape now use the new Multi Pipeline 2021-04-16 18:19:39 +01:00
Richard Davey
9879a1062e Merged the Graphics Pipeline functions into the MultiPipeline 2021-04-16 18:18:42 +01:00
mojixiang
7f161fa3ad
Update PutTileAt.js 2021-04-15 18:24:06 +08:00
moJiXiang
f686a9674b fix PutTileAt tile size with releated tileset width and height, releated bug #5647 2021-04-15 18:04:14 +08:00
valadaptive
4640874643 Fix check for new text measurement results
actualBoundingBoxDescent is *not* defined on the TextMetrics object
returned from measureText--it's defined on its prototype. This oversight
was causing the slow path to be taken in all browsers.
2021-04-14 22:44:10 -04:00
valadaptive
4cd7706390 Only call getImageData once in MeasureText 2021-04-14 22:38:58 -04:00
Richard Davey
aaa66488dc The Mesh Game Object would incorrectly cull faces if the Camera scrolled. It now calculates the cull correctly, regardless of camera world position, zoom or rotation. Fix #5570 2021-04-13 14:44:46 +01:00
Richard Davey
4e2285fd05 Fixed docs 2021-04-13 14:44:38 +01:00
Richard Davey
bb1a078243 The GameObjectFactory.existing method will now accept Layer as a TypeScript type. Fix #5642 2021-04-13 13:42:33 +01:00
Richard Davey
c1f7753dd8 Typo. Fix #5649 2021-04-13 13:40:06 +01:00
Richard Davey
f425880db9
Merge pull request #5652 from vforsh/webgl-texture-compression
Improve types for WebGL texture compression support
2021-04-13 13:37:45 +01:00
Richard Davey
896befc722
Merge pull request #5639 from mattjennings/fix/load-video-by-config
Fix incorrect key when loading a Video with a config object
2021-04-13 13:36:34 +01:00
Richard Davey
3c3b32ec77
Merge pull request #5641 from samme/fix/UpdateList-shutdown
Fix scene PRE_UPDATE handlers removed at scene shutdown
2021-04-13 13:33:52 +01:00
Richard Davey
d86962e344
Merge pull request #5638 from samme/patch-9
Docs: fix type for KeyboardPlugin#manager
2021-04-13 13:31:42 +01:00
Vladislav Forsh
670a66c697 Improve types for WebGL texture compression support
(cherry picked from commit 5626acffec17c6b4d66c78b8e0aa52e5cfcd8478)
2021-04-13 13:19:24 +03:00
Trissolo
8ae19dee83 Fixed - Math#ToXY: now the existing vector passed as 'out' is setted even if 'index' is 0. 2021-04-05 10:31:21 +02:00
samme
2856b1ab3a Fix clearing PRE_UPDATE by mistake 2021-04-02 19:02:14 -07:00
Matt Jennings
33014d8d6a fix key not being correct when loading video via config object 2021-04-02 15:18:40 -05:00
samme
9e4d693481
Docs: fix type for KeyboardPlugin#manager 2021-04-02 10:31:49 -07:00
moJiXiang
7579702b7a fix tilemap draw offset, maybe it is a bug, related issue #5633 2021-04-01 18:43:27 +08:00
Richard Davey
5c8ecbcf99 Fixed jsdoc layout in #5631 2021-03-30 10:41:43 +01:00
Richard Davey
ad7f1d52e4
Merge pull request #5631 from samme/docs/scene-events
Docs: fix scene events example code
2021-03-30 10:34:11 +01:00
Richard Davey
8c47d54e4d Added missing docs. Fix #5629 2021-03-30 10:30:02 +01:00
Richard Davey
72959cf953 Core.Config.domPointerEvents is a new config property set via dom: { pointerEvents } within the Game Config that allows you to set the pointerEvents css attribute on the DOM Element container. 2021-03-30 10:23:45 +01:00
Richard Davey
b280f3f400 GameObjects.DOMElement.pointerEvents is a new property that allows you to set the pointerEvents attribute on the DOM Element CSS. This is auto by default and should not be changed unless you know what you're doing. 2021-03-30 10:23:23 +01:00
Richard Davey
baa8003f7c Preparing for 3.55 dev 2021-03-30 09:33:25 +01:00
samme
0482d4c563 Docs: fix scene events example code 2021-03-28 10:20:33 -07:00
Richard Davey
4fea76252b 3.54.0 Release 2021-03-26 15:31:33 +00:00
Richard Davey
040730defe Update WebAudioSoundManager.js 2021-03-26 11:24:56 +00:00
Richard Davey
033efd8bb8 Use var and pass mapKey to constructor 2021-03-26 11:11:21 +00:00
Richard Davey
baa5fdfd8c ScenePlugin.pluginKey is a new string-based property, set by the PluginManager that contains the key of the plugin with the Scene Systems. 2021-03-26 10:28:26 +00:00
Richard Davey
f060fec275 Merge branch 'master' of https://github.com/photonstorm/phaser 2021-03-26 10:05:54 +00:00
Richard Davey
d3d73d4c09 Update WebAudioSoundManager.js 2021-03-26 10:05:47 +00:00
Andrii Barvynko
c7fd4c4e0a Allow to have one row matrix in CheckMatrix 2021-03-26 12:03:39 +02:00
Richard Davey
dc980a6a49
Merge pull request #5621 from vforsh/master
Add Phaser.Math.Median method
2021-03-26 09:46:17 +00:00
Richard Davey
2bc03795cb
Merge pull request #5622 from samme/docs/Vector2
Docs: Vector2Like args for Vector2 methods
2021-03-26 09:45:19 +00:00
Richard Davey
b4e3f25116
Merge pull request #5619 from samme/patch-8
Docs: fix generic type for GameObjectFactory#existing
2021-03-26 09:44:45 +00:00
Richard Davey
1861174c21 When an Animation has skipMissedFrames set it will now bail out of the skip catch-up loop if any of the frames cause the animation to complete. Fix #5620 2021-03-26 09:43:36 +00:00
samme
77d14af82a Docs: Vector2Like args for Vector2 2021-03-25 11:54:15 -07:00
Vladislav Forsh
953dd93e9a Add Phaser.Math.Median method 2021-03-25 17:42:22 +03:00
samme
f35ab198f7
Docs: fix generic type for GameObjectFactory#existing 2021-03-24 18:00:44 -07:00
Richard Davey
e5f4548961 The WebAudioSoundManager.onFocus method will now test to see if the state of the AudioContext is interrupted, as happens on iOS when leaving the page, and then resumes the context. Fix #5390 #5156 #4790 2021-03-24 17:37:40 +00:00
Richard Davey
d3b188d670 The Scenes.Systems.install method has been removed. It's no longer required and would throw an error if called. Fix #5580 2021-03-24 16:43:40 +00:00
Richard Davey
29d38b3283 Updated docs 2021-03-24 16:36:22 +00:00
Richard Davey
e9da34e39f Docs update. Fix #5604 2021-03-24 16:30:33 +00:00
Richard Davey
b7e678cf6c Update GameConfig.js 2021-03-24 16:30:33 +00:00
Richard Davey
7411c805b8 Version fix 2021-03-24 16:30:33 +00:00
Richard Davey
c863a59223
Merge pull request #5569 from krotovic/feat/tsgen-this-function
Add support for `this` in function definitions
2021-03-24 16:06:25 +00:00
Richard Davey
2982b866da
Merge pull request #5612 from veleek/benran/keyboardshutdown
Remove and destry all Keys in Scene.Shutdown()
2021-03-24 16:01:08 +00:00
Richard Davey
0806f36685
Merge pull request #5589 from neil-h/master
Stop RGBToString from returning CSS strings with decimal places
2021-03-24 15:56:27 +00:00
Richard Davey
ddb62c7aa8
Merge pull request #5614 from workadventure-xce/fix/dom_elements_container_style
Do not set pointer-events property on DOM elements container
2021-03-24 15:51:26 +00:00
Richard Davey
9aa08a4a4f
Merge pull request #5606 from vforsh/master
Fix #5545
2021-03-24 15:46:41 +00:00
Richard Davey
3da806cdb3
Merge pull request #5601 from masterT/master
Documentation Group#getMatching example fix
2021-03-24 15:44:35 +00:00
Richard Davey
89c9a4caaa
Merge pull request #5598 from samme/patch-7
Docs: fix RenderTexture params
2021-03-24 15:43:57 +00:00
Richard Davey
20831604c7 Fixed missing backgroundColor property in GameConfig. 2021-03-24 15:42:55 +00:00
Richard Davey
bd9fbfe077 Adding a Game Object to a Container that already existed in another Container would leave a copy of it on the Display List 2021-03-24 15:39:30 +00:00
Richard Davey
da44c1e3fb JSDoc fix 2021-03-24 15:39:09 +00:00
PizZaKatZe
9891223a81 Do not set pointer-events property on DOM elements container
Fixes #5594.

If I understand correctly, #5504 tried to achieve the property is left
at its default value. The fact that the DOM container also defines it
was probably overlooked. :-)
2021-03-21 20:08:32 +01:00
Ben Randall
e0f26f6b9d Remove and destry all Keys in Scene.Shutdown() 2021-03-17 20:01:24 -07:00
Vladislav Forsh
ab202efea7 Handle case when fromAtlas could be undefined 2021-03-17 10:26:47 +03:00
Vladislav Forsh
22edb0d95f Update fromAtlas property on font change 2021-03-16 19:44:26 +03:00
Vladislav Forsh
2418b7f484 Fix #5545 2021-03-16 18:04:38 +03:00
Simon Thiboutôt
e15f51c3e0
Fix getMatching example. 2021-03-14 08:49:53 -04:00
samme
43bd8d124c
Docs: fix RenderTexture params 2021-03-11 20:53:59 -08:00
Richard Davey
f39c6d1ee6 Typo 2021-03-10 11:53:49 +00:00
Richard Davey
dd448f505a Preparing for 3.54 2021-03-10 11:53:37 +00:00
Richard Davey
e2f19617f3 3.53.1 Release 2021-03-08 16:37:16 +00:00
Richard Davey
8171c70bf5 Removed duplicate property 2021-03-08 15:06:05 +00:00
Richard Davey
87868d98b9 Uses new Display List methods and added new parameter to destroy. Fix #5576 2021-03-03 18:05:27 +00:00
Richard Davey
425594cb8e Layer.addChildCallback and removeChildCallback will now use the new addToDisplayList and removeFromDisplayList Game Object methods. 2021-03-03 18:01:18 +00:00
Richard Davey
27806dad9c Container.addHandler will now use the new addToDisplayList and removeFromDisplayList Game Object methods. 2021-03-03 18:00:34 +00:00
Richard Davey
d59a7868a3 DisplayList.addChildCallback will now use the new addToDisplayList and removeFromDisplayList Game Object methods. 2021-03-03 18:00:24 +00:00
Richard Davey
a01ed4ff73 Added addToDisplayList, addToUpdateList, removeFromDisplayList and removeFromUpdateList methods. 2021-03-03 17:58:12 +00:00
Neil Haskins
6ec5868f3a
Update RGBToString.js
Prevent adding decimal places behind RGB string with '#' prefix.
2021-03-02 11:30:38 -08:00
Richard Davey
e954547cf7 The PipelineManager.rebind method will now flag all pipelines as glReset = true, so they know to fully rebind the next time they are invoked. 2021-03-01 17:50:40 +00:00
Richard Davey
8d7519b84d * WebGLPipeline.glReset is a new boolean property that keeps track of when the GL Context was last reset by the Pipeline Manager. It then redirects calls to bind to rebind instead to restore the pipeline state.
The `WebGLPipeline.rebind` method now accepts an optional parameter `currentShader`. If provided it will set the current shader to be this after the pipeline reset is complete.
2021-03-01 17:50:39 +00:00
Richard Davey
dc4942ca30
Merge pull request #5568 from samme/feature/camera-controls-zoom
Add min and max zoom to camera controls
2021-03-01 16:41:16 +00:00
Richard Davey
f001d6db2e
Merge pull request #5577 from samme/patch-6
Docs: damping in Phaser.Physics.Arcade.Body#drag
2021-03-01 16:39:47 +00:00
Richard Davey
d22e3567c7 Fixed a conditional bug in Arcade Physics ProcessX when Body2 is Immovable and Body1 is not 2021-02-25 14:40:34 +00:00
samme
ea7a9aa132
Docs: damping in Phaser.Physics.Arcade.Body#drag 2021-02-23 09:53:42 -08:00
Richard Davey
a3bcf4beb1 Improved JSDocs 2021-02-23 17:12:12 +00:00
Richard Davey
d3536fb138
Merge pull request #5574 from samme/fix/canvas-particle-emitter-follow
Fix wrong particle position when following a sprite with Canvas renderer
2021-02-22 10:29:25 +00:00
samme
3248971411 Fix wrong particle follow position
Fixes #5457
2021-02-21 11:30:32 -08:00
Lukáš Krotovič
f5f3411aac Add @this into CreateSceneFromObjectConfig callbacks 2021-02-19 08:48:16 +01:00
Richard Davey
8a6a4a7219 If TextureSource.destroy has a WebGL Texture it will tell the WebGL Renderer to reset the textures first, before deleting its texture. 2021-02-17 13:11:12 +00:00
Richard Davey
a95c34ce92 WebGLRenderer.deleteTexture will now run resetTextures(true) first, incase the requested texture to be deleted is currently bound. Previously, it would delete the texture and then reset them. 2021-02-17 13:10:10 +00:00
Richard Davey
74fd1531bc Matter.Components.Sleep.setToSleep and setAwake were documented as returning this, however they didn't return anything. Both now return this correctly. Fix #5567 2021-02-17 13:08:24 +00:00
Richard Davey
6761ec92f5 Fixed docs. Fix #5484 2021-02-16 13:32:13 +00:00
Richard Davey
372ca3bd4a Better JSDocs and types 2021-02-16 13:21:31 +00:00
Richard Davey
e96cab1784 Improved documentation. Fix #5554 2021-02-16 13:09:30 +00:00
Richard Davey
7cbf3840af SceneManager.loadComplete will no longer try to unlock the Sound Manager, preventing AudioContext was not allowed to start console warnings after each Scene finishes loading. 2021-02-16 12:59:08 +00:00
Richard Davey
3deb6672aa RenderTarget.resize will now Math.floor the scaled width and height as well as ensure they're not <= 0 which causes Framebuffer status: Incomplete Attachment errors. Fix #5563 2021-02-16 12:32:55 +00:00
Richard Davey
b082ef0967 The Actions.PlayAnimation arguments have been updated to match the new animation system introduced in Phaser 3.50. It will now take either a string-key, or a play animation configuration object, and the startFrame parameter has been replaced with ignoreIfPlaying. The function will also only call play if the Game Object has an animation component, meaning you can now supply this action with a mixed-content array without errors. Fix #5555 2021-02-16 11:53:12 +00:00
Richard Davey
0c05d681e6 Update ParseTilesets.js 2021-02-16 11:44:49 +00:00
Richard Davey
e8fe16c417 Fixed function name and formatting #5292 2021-02-16 11:44:43 +00:00
Richard Davey
be2dad8a70
Merge pull request #5292 from browndragon/tiled
Fix up tiled json parsing.
2021-02-16 11:35:24 +00:00
Richard Davey
6b960464b5
Merge pull request #5504 from endel/patch-1
allow to customize pointerEvents for dom elements
2021-02-16 11:29:26 +00:00
Richard Davey
c5766a68a4
Merge pull request #5540 from samme/feature/shape-setDisplaySize
Add Phaser.GameObjects.Shape#setDisplaySize()
2021-02-16 11:18:23 +00:00
Richard Davey
a73b2b31ac
Merge pull request #5546 from xuxucode/patch-1
Fix PlaceOnRectangle JSDoc
2021-02-16 11:14:50 +00:00
Richard Davey
79d7dadac9
Merge pull request #5551 from samme/fix/line-curve-tangent-out
Fix missing output arg in Phaser.Curves.Line#getTangent
2021-02-16 11:11:49 +00:00
Richard Davey
4b3a0009ee
Merge pull request #5559 from mattjennings/fix-5558
Fixes #5558
2021-02-16 10:56:01 +00:00
Richard Davey
a05da72739 DOMElementCSSRenderer will now return early if src.node doesn't exist or is null, rather than trying to extract the style property from it. Fix #5566 2021-02-16 10:48:35 +00:00
samme
e2384f8961 Add min and max zoom to camera controls 2021-02-14 21:07:37 -08:00
Matt Jennings
72fd48abc4 safely check for renderer in TileSprite 2021-02-11 16:00:24 -06:00
Matt Jennings
a29523de53 safely check for renderer in BitmapMask 2021-02-11 15:57:40 -06:00
Matt Jennings
d30c1682d2 check that renderer exists before accessing renderer.type (fixes #5558) 2021-02-11 15:43:16 -06:00
Richard Davey
3493c4cd7b
Merge pull request #5523 from veleek/veleek/tiledobjectprops
Load Tiled object properties using names.
2021-02-10 09:30:56 +00:00
samme
bdca6f28f3 Fix missing out arg in Curves.Line#getTangent 2021-02-09 09:44:06 -08:00
xuxu
c3d3461a38
Fix PlaceOnRectangle JSDoc
The shift value defaults to 0
2021-02-07 21:43:19 +08:00
Richard Davey
dff17f52e8 The LightPipeline now only calls batchSprite, batchTexture and batchTextureFrame if the Scene Lights Manager is active. Fix #5522 2021-02-04 16:38:09 +00:00
Richard Davey
b40010b86b Fixed JSDocs 2021-02-04 16:27:02 +00:00
Richard Davey
aaf51dc7ce The LightsManager.addPointlight method now has full JSDocs and the attenuation parameter. 2021-02-04 16:19:19 +00:00
Richard Davey
79468de255 ESLint fix 2021-02-04 16:11:09 +00:00
Richard Davey
5176fcfacd The Canvas Renderer will no longer run a fillRect if clearBeforeRender is false in the Game Config. 2021-02-04 16:06:47 +00:00
Richard Davey
c5cbb413d2 You can now set the boolean preserveDrawingBuffer in the Game Config (either directly, or in the Render Config). This is passed to the WebGL context during creation and controls if the buffers are automatically cleared each frame or not. The default is to clear them. Set to true to retain them. 2021-02-04 15:58:41 +00:00
Richard Davey
bfbf665676 Merge branch 'master' of https://github.com/photonstorm/phaser 2021-02-04 15:32:43 +00:00
Richard Davey
d1a08da63d Update RenderConfig.js 2021-02-04 15:28:35 +00:00
Richard Davey
895d684c15
Merge pull request #5521 from edemaine/patch-1
Fix setPolygon documentation
2021-02-04 15:20:02 +00:00
Richard Davey
641a7c5d99
Merge pull request #5533 from veleek/veleek/isometricfix
Fix IsometricWorldToTileXY result
2021-02-04 15:17:54 +00:00
Richard Davey
e5f05fa248
Merge pull request #5541 from samme/feature/scene-prerender-event
Add Phaser.Scenes.Events.PRE_RENDER event
2021-02-04 15:04:07 +00:00
Richard Davey
46f127b0af
Merge pull request #5517 from rexrainbow/input-bug
Fix input bug
2021-02-04 14:59:43 +00:00
Richard Davey
01df296304
Merge pull request #5539 from somechris/from-percent-min-fix
Allow non-zero `min` in `FromPercent`
2021-02-04 14:53:41 +00:00
Richard Davey
f727171717
Merge pull request #5543 from samme/feature/warn-invalid-json
Warn and call onProcessError() for invalid JSON
2021-02-04 14:50:43 +00:00
samme
ff1afb4976 Warn and call onProcessError() for invalid JSON
Then rethrow
2021-02-03 11:58:29 -08:00
Richard Davey
a10919391a type fix 2021-02-01 15:17:59 +00:00
Richard Davey
23987112e1 Update WebAudioSound.js
* The `WebAudioSound.audioBuffer` property is no longer private.
* The `WebAudioSound.source` property is no longer private.
* The `WebAudioSound.loopSource` property is no longer private.
* The `WebAudioSound.muteNode` property is no longer private.
* The `WebAudioSound.volumeNode` property is no longer private.
* The `WebAudioSound.pannerNode` property is no longer private.
* The `WebAudioSound.hasEnded` property is no longer private, but _is_ read only.
* The `WebAudioSound.hasLooped` property is no longer private, but _is_ read only.
2021-02-01 15:17:48 +00:00
Richard Davey
c20b06b259 Made most properties public. Fix #5531
* The `WebAudioSoundManager.createAudioContext` method is no longer private.
* The `WebAudioSoundManager.context` property is no longer private.
* The `WebAudioSoundManager.masterMuteNode` property is no longer private.
* The `WebAudioSoundManager.masterVolumeNode` property is no longer private.
* The `WebAudioSoundManager.destination` property is no longer private.
2021-02-01 15:17:37 +00:00
Christian Aistleitner
cbf3957a33 Allow non-zero min in FromPercent
`FromPercent` silently assumed `min` to be 0. Shifting the result by
`min` makes it work as documented and gives a value between `min` and
`max`.

Our uses of `FromPercent` only have `min` at 0, so there is no
regression in our code. This is merely a fix for 3rd party users.
2021-01-31 21:08:46 +01:00
samme
7ba9d7ea8b Docs: update scene event flow (PRE_RENDER) 2021-01-30 11:02:42 -08:00
samme
1145fd41bb Add Phaser.Scenes.Events#PRE_RENDER event
By Phaser.Scenes.Systems#render
2021-01-30 11:02:42 -08:00
samme
a8e05cec3e Add Phaser.GameObjects.Shape#setDisplaySize() 2021-01-30 09:33:21 -08:00
Rex
ee16c63987 Fix parameter name bug 2021-01-29 09:32:45 +08:00
Ben Randall
40ff85bdc5 Fix IsometricWorldToTileXY result
IsometricWorldToTileXY returns a tile that is offset by (-0.5, 0.5)
tiles from the expected location.  This fixes the function so that
Tile => World => Tile conversion returns the same value.
2021-01-28 12:25:51 -05:00
Ben Randall
fea65988f4 Load Tiled object properties.
Tiled objects have properties as an array of objects like:

  { name: ..., type: ..., value: ...}

Update the parser to load these using the name/value properties instead
of just treating it as an array and loading properties named '0', '1',
etc.  This is the same as how properties are handled in ParseTilesets.js
2021-01-23 14:59:33 -05:00
Erik Demaine
3accf46223
Fix setPolygon documentation
The order of arguments in `Body.setPolygon`'s documentation was the opposite from the actual code.
2021-01-22 20:13:25 -05:00
Rex
7f610eef98 Fix input bug 2021-01-21 11:13:33 +08:00
James Pettit
44fb0e2086
Fix typing of MapData objects.
I believe that objects is going to be an array as the result of calling this function: 7834095789/src/tilemaps/parsers/tiled/ParseObjectLayers.js (L20)

I'm not 100% sure on the type of the array elements (Phaser.Types.Tilemaps.ObjectLayerConfig), but that appears to be what ParseObjectLayers returns.
2021-01-19 15:17:12 -08:00
Richard Davey
c9b68c167a Bail out of Device tests if running inside a Web Worker 2021-01-19 09:40:59 +00:00
Richard Davey
e0d22da461 IE9 polyfills are no longer part of the core build 2021-01-19 09:40:30 +00:00
Richard Davey
5e1da21c4d Created new IE9 specific build 2021-01-19 09:40:09 +00:00
Richard Davey
332d9c85cb BlitterWebGLRenderer was calling an out-dated function setRenderDepth instead of addToRenderList 2021-01-14 17:09:04 +00:00
Endel Dreyer
1919bbdfb8
allow to customize pointerEvents for dom elements 2021-01-14 10:54:29 -03:00
Richard Davey
a7498e5994 Preparing for 3.53.0 dev 2021-01-14 11:35:44 +00:00
Richard Davey
9116eddf99 Some Bitmap Text fonts were not rendering under Canvas due to the way in which the texture offset was calculated. It now uses the __BASE frame to get the texture offset, rather than the first frame in the set. Fix #5462 #5501 2021-01-14 11:06:04 +00:00
Richard Davey
b1697f5e09 Merge branch 'master' of https://github.com/photonstorm/phaser 2021-01-14 10:19:38 +00:00
Richard Davey
357a4fc82d AtlasJSONFile, AtlasXMLFile, BitmapFontFile and UnityAtlasFile will now call File.pendingDestroy, clearing up the resources it used during load and emiting a missing FILE_COMPLETE event. Fix #5495 2021-01-14 10:19:24 +00:00
Richard Davey
b9162847bb
Merge pull request #5498 from lackhand/patch-1
Update Mesh.js documentation around panZ
2021-01-14 10:02:12 +00:00
Richard Davey
a5ffb59eb2
Merge pull request #5503 from kainage/banner-url-color
Transparent background for banner gameURL
2021-01-14 09:57:47 +00:00
Richard Davey
5bae5c5eb6
Merge pull request #5499 from lackhand/patch-2
Fix typo in GenerateVerts.js
2021-01-14 09:54:19 +00:00
Richard Davey
d1ece18c93 The method TilemapLayer.weightedRandomize has changed so that the parameter weightedIndexes is now first in the method and is non-optional. Previously, it was the 5th parameter and incorrectly flagged as optional. This change was made to the docs but not the parameters, but now works according to the docs 2021-01-14 09:48:16 +00:00
kainage
1e0bae4e21 Use transparent background for banner gameURL to support different browser color themes 2021-01-13 22:33:05 -08:00
Andrew Cunningham
36b3de1748
Make GenerateVertsResults verts -> vertices
Update typedefs to match the new spelling.
2021-01-13 18:46:07 -05:00
Andrew Cunningham
56fc62a21a
Fix typo in GenerateVerts.js
The result contains `["verts"]`, but the caller expects [`["vertices"]`](d67c93646c/src/gameobjects/mesh/Mesh.js (L705)). Better to expand the field name (IMO).
2021-01-13 18:36:33 -05:00
Andrew Cunningham
724c2f59d5
Update Mesh.js documentation around panZ
This adds warnings about orthographic and perspective cameras, documents setOrtho & panZ with sane (ish) default values for the default projection matrix, and updates the example code in the file.

These changes could go further; I would love it if the default mechanisms "agreed" (so that feeding it z=0 vertex values "just worked"), but that's probably a difficult backwards facing change.

Inspired by https://github.com/photonstorm/phaser/issues/5380 .
2021-01-12 14:28:52 -05:00
Richard Davey
15908ce271 getPostPipeline will now return an array of them all if there is more than one instance 2021-01-11 17:17:00 +00:00
Richard Davey
9ad922f56d Moved renderList to BaseCamera 2021-01-11 09:46:50 +00:00
Richard Davey
1c8662dc1f Call addToRenderList 2021-01-07 14:52:08 +00:00
Richard Davey
616566c35a Renamed sortGameObjects to sortDropZones and then repurposed the old method for the new render list sorting technique. 2021-01-07 12:32:00 +00:00
Richard Davey
00d8b6a009 Invoke camera.addToRenderList method 2021-01-07 12:31:31 +00:00
Richard Davey
dc925267fc Added the new renderList property and addToRenderList method 2021-01-07 12:31:12 +00:00
Richard Davey
5481a64023 Clear the render list if not destroying the camera 2021-01-07 12:30:46 +00:00
Richard Davey
3db77c7a10 Use Scene Display List if not available 2021-01-07 12:22:09 +00:00
Richard Davey
c6ad8b1306 Better parameter name 2021-01-07 11:03:59 +00:00
Richard Davey
ceac5bdd4a Lint fix. 2021-01-06 11:07:14 +00:00
Richard Davey
22e170e417 Updated documentation. Fix #5488 2021-01-06 11:07:05 +00:00
jdcook
b935c5bf03 added null check for WebAudio pannerNode 2021-01-05 16:37:24 -06:00
Richard Davey
f7a41b7301 Preparing for 3.52 2021-01-05 17:59:00 +00:00
Richard Davey
c124d4c0a6
Merge pull request #5467 from rexrainbow/improve-postfx-pipeline
Remove a type of Post Pipeline instances, not only a single instance
2021-01-04 16:14:48 +00:00
Richard Davey
a19e4770df The Layer Game Object has been given all of the missing properties and methods from Game Object to make the class shapes identical. This includes the properties parentContainer, tabIndex, input and body. You cannot set any of these properties, they are ignored by the Layer itself. It also includes the methods: setInteractive, disableInteractive and removeInteractive. A Layer cannot be enabled for input or have a physics body. Fix #5459 2021-01-04 16:11:33 +00:00
Richard Davey
b71bfcf7ba The error RENDER WARNING: there is no texture bound to the unit ... would be thrown when destroying a Text Game Object, or any Game Object that uses its own custom texture. Destroying such an object will now reset the WebGL Texture cache. Fix #5464 2021-01-04 15:51:14 +00:00
Richard Davey
4fbdbb8a04 The error RENDER WARNING: there is no texture bound to the unit ... would be thrown when trying to restart a Scene. When a Scene is shutdown is will now reset the WebGL Texture cache. Fix #5464 2021-01-04 15:51:02 +00:00
Richard Davey
a765b7edfc WebGLRenderer.isTextureClean is a new boolean property that tracks of all of the multi-textures are in a clean 'default' state, to avoid lots of gl texture binds and activations during a Scene restart or destruction process. 2021-01-04 15:49:39 +00:00
Richard Davey
5457e463b1 Use displayList.getIndex 2021-01-04 12:43:34 +00:00
Richard Davey
2a38e78bb4 Layer.destroy will now call destroy on all of its children as well. Layer.destroy will now emit the DESTROY event at the start of the method. Fix #5466 2021-01-04 11:59:00 +00:00
Richard Davey
cf2c607ac1 Canvas Tilemap Rendering is now working again. Fix #5480 2021-01-04 11:52:35 +00:00
Richard Davey
1b0649ed34 Fixed issue causing Cannot read property 'pipelines' of null to be thrown if using 3.50 with the HEADLESS renderer. Fix #5468 2021-01-04 11:22:00 +00:00
Richard Davey
a3726a9f68
Merge pull request #5472 from cjw6k/master
Check event.type in duplicate event bailout
2020-12-30 14:06:05 +00:00
Richard Davey
e70e3a3a80 Preparing for 3.51 2020-12-29 13:11:03 +00:00
cjw6k
19c2874166
Added prevType to constructor. 2020-12-28 17:37:54 -04:00
cjw6k
8771c81649
Check event.type in duplicate event bailout
Fixes #5471.
2020-12-27 17:24:14 -04:00
Rex
60c42016b6 Remove a type of Post Pipeline instances, not only a single instance 2020-12-25 17:05:50 +08:00
Richard Davey
b3b74a1108 3.50.1 2020-12-21 13:28:38 +00:00
Richard Davey
afda0febcd The new Web Audio Panning feature breaks WebAudio on Safari (OSX and iOS). The stero panner node is now only created if supported. Fix #5460 2020-12-21 13:28:22 +00:00
Richard Davey
ba1570089c Namespace adjustments 2020-12-17 11:40:03 +00:00
Richard Davey
e7aff5d0dc Data type fix 2020-12-16 10:25:27 +00:00
Richard Davey
6912124780 Fixed docs 2020-12-15 16:05:34 +00:00
Richard Davey
7880087fd8 Removing beta status 2020-12-14 14:31:09 +00:00
Richard Davey
3e9350ed05 Added JSDocs 2020-12-14 14:07:57 +00:00
Richard Davey
67b3f812f8 JSDocs 2020-12-14 13:50:50 +00:00
Richard Davey
4fb03907ba Stricter removal 2020-12-14 13:50:44 +00:00
Richard Davey
00ec07d67f JSDoc update 2020-12-14 13:36:51 +00:00
Richard Davey
cbe1a3219a JSDoc improvements 2020-12-14 13:33:42 +00:00
Richard Davey
e08b5386dd Removed follow from render code 2020-12-14 11:51:16 +00:00
Richard Davey
7ff4c5958b Fire particle from follower position. Fix #5437 2020-12-14 11:46:19 +00:00
Richard Davey
675e83e539 Fix inverted RenderTexture snapshot. Fix #5445 2020-12-14 10:52:05 +00:00
Richard Davey
2a49b4aa80 The WebAudioSoundManager will no longer try to unlock itself if the Game hasn't already booted and been added to the DOM. It will now wait for the BOOT event and unlock based on that. Fix #5439 2020-12-14 10:37:00 +00:00
Richard Davey
33253a7469 Fixed version numbers and JSDocs. #5274 2020-12-14 10:11:30 +00:00
Richard Davey
dde5b250e3
Merge pull request #5274 from pi-kei/sound-panning
Add ability to pan sounds
2020-12-14 10:00:33 +00:00
Richard Davey
1d58620e35 Don't render debug if not orthogonal #5447 2020-12-14 09:48:29 +00:00
Richard Davey
f5376b20a4 BitmapText Drop Shadow working. Fix #5446 2020-12-14 09:34:32 +00:00
Richard Davey
5a532da7bf Disable scissor before clearing. 2020-12-14 09:08:28 +00:00
Richard Davey
c83622d349 Always return polygon, even if points <= 2. 2020-12-14 09:03:35 +00:00
Richard Davey
0cd192eec8 Swapped for Color component. Fix #5435 2020-12-11 15:56:21 +00:00
Richard Davey
1a65f50a25 Added new renderDirect hook which RenderTexture can use. Fix #5431 2020-12-11 13:40:53 +00:00
Richard Davey
166c333d13 Should rebind shaders too 2020-12-11 12:41:48 +00:00
Richard Davey
ab1646c2a0 Update BaseCamera.js 2020-12-11 12:41:35 +00:00
Richard Davey
9412a93fdb Remove log 2020-12-11 11:46:28 +00:00
Richard Davey
59e89fa788 All Game Objects will now listen for ADDED_TO_SCENE and REMOVED_FROM_SCENE events and call the handlers. Therefore, removed GO specific implementations. 2020-12-11 11:44:21 +00:00
Richard Davey
519afd031b Fixed Camera Fade Effect check. Fix #5438 2020-12-11 11:29:16 +00:00
Richard Davey
32440cb238 Defaults to renderer aspect ratio to help with issues like #5444 2020-12-11 11:05:47 +00:00
Richard Davey
69f4a6d8fb Added getAspectRatio method 2020-12-11 11:05:20 +00:00
Richard Davey
e4be6dbc90 Fixed JSDocs and removed unused method 2020-12-11 10:33:53 +00:00
Richard Davey
11990bccb4 Added global projection matrix back and removed events 2020-12-11 10:26:15 +00:00
Richard Davey
0d67548343 Compare projection matrix with renderer 2020-12-11 10:24:47 +00:00
Richard Davey
8839007e0f Update the projection matrix on bind 2020-12-11 10:24:27 +00:00
Richard Davey
dbae58368d Removed event as no longer required 2020-12-11 10:24:15 +00:00
Richard Davey
27da1dfa4b Clear just the color buffer 2020-12-11 10:24:05 +00:00
Richard Davey
1857c3f2da Send dimensions and reset scissors 2020-12-10 18:07:41 +00:00
Richard Davey
7acbd816f3 Added new Projection Update event and respond to it 2020-12-10 18:07:25 +00:00
Richard Davey
4f5cedde03 Better method name. Reset once done. 2020-12-10 16:58:34 +00:00
Richard Davey
f1dbea4ead beginCapture can accept dimensions. Reset scissor enables even if same size. Always set drawing height. 2020-12-10 16:55:00 +00:00
Richard Davey
21b968363c Don't resize if already same size. Better binding handling. 2020-12-10 16:53:48 +00:00
Richard Davey
2be3b7aa59 Fixed typos 2020-12-10 16:53:26 +00:00
Patrick Sletvold
d327a4da34
Add Config types for ParticleEmitterManager and Mesh 2020-12-10 11:40:01 +01:00