Commit graph

11171 commits

Author SHA1 Message Date
Richard Davey
06afcf7903
Merge pull request #5928 from samme/docs/ArcadePhysicsCallback
Docs: namespace ArcadePhysicsCallback type
2021-11-22 16:48:41 +00:00
samme
2ebbb970a5 Shorten the 'Valid tilelayer' warning 2021-11-22 08:47:56 -08:00
samme
6dc89a4596 Docs: namespace ArcadePhysicsCallback 2021-11-21 20:23:31 -08:00
Emil Schnedler Vad
98ea9e681e fixes a bug in Phaser.Loader.LoaderPlugin#texture 2021-11-15 16:43:42 +01:00
Richard Davey
e65b77a2f7 Only emit unlocked if actually unlocking 2021-11-09 18:38:37 +00:00
Richard Davey
93c182f8f9 Renamed method to decodeAudioQueue 2021-11-09 00:05:30 +00:00
Richard Davey
b538f77b26 Added decodeOnDemand boolean 2021-11-08 22:17:34 +00:00
Richard Davey
ef711f1444 Drop the iife 2021-11-08 21:55:08 +00:00
Richard Davey
b4a7dab08b Drop the iife 2021-11-08 21:51:33 +00:00
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