Commit graph

742 commits

Author SHA1 Message Date
Richard Davey
f0ad396974
type errors fixed 2024-11-14 23:06:27 +00:00
Richard Davey
04694e369b Removes Set and moved to using JS native Set. Updated functions accordingly. 2024-11-14 16:51:10 +00:00
Richard Davey
e550202b28
v4.0.0 Alpha 1 merge 2024-11-14 11:40:26 +00:00
Richard Davey
1749b38932
Added new FontFile file loader 2024-11-13 23:48:11 +00:00
Richard Davey
7988f4dc5d jsdoc link fix 2024-10-08 17:46:51 +01:00
Richard Davey
7bd23db219 Fixed incorrect version numbers 2024-09-05 09:50:39 +01:00
Richard Davey
7fd6b6fdf8 LoaderPlugin.maxRetries is a new property that holds the number of times to retry loading a single file before it fails. 2024-08-07 15:43:43 +01:00
Richard Davey
4021fa50fa FileConfig.maxRetries is a new File Config option to set the number of retries a file will attempt to load. If not specified in the config, the value is read from the LoaderPlugin.maxRetries property. 2024-08-07 15:43:11 +01:00
Richard Davey
0a7df76c3f Loader.File.retryAttempts is the internal property holding the counter for the number of times to retry loading this file before it fails. This value is decreased after each attempt. When it reaches zero, the file is considered as failed. 2024-08-07 15:42:57 +01:00
Zeke Chan
340f90a627
Merge pull request #6793 from samme/feature/remove-asset-pack
Add Phaser.Loader.LoaderPlugin#removePack
2024-07-16 16:17:53 +08:00
Richard Davey
722dfb79ed
Merge pull request #6771 from samme/patch-21
Docs: correct TilemapJSONFile superclass
2024-06-06 15:29:51 +01:00
Richard Davey
ca8102ab30
Merge pull request #6781 from samme/feature/audio-warnings
Improve the audio warnings
2024-06-06 15:29:01 +01:00
Richard Davey
946e82b058 Removed .js from require paths (not needed) 2024-05-15 15:02:31 +01:00
samme
252cb41517 Add Phaser.Loader.LoaderPlugin#removePack() 2024-04-26 09:15:55 -07:00
Richard Davey
c1c1a0ffa4 If GetURL returns false File.load will now throw a helpful error instead of crashing 2024-04-21 18:41:17 +01:00
samme
f7e029ca2d Improve the audio warnings 2024-04-04 08:40:06 -07:00
samme
e988861f5d
Docs: correct TilemapJSONFile superclass 2024-03-17 18:06:12 -07:00
Richard Davey
1f8276ac76 Updated copyright year, company and author 2024-02-19 17:12:24 +00:00
Richard Davey
9a175caa39
Merge pull request #6734 from yaustar/master
File creation checks if URL is a string before seeing if its Base64
2024-02-19 14:29:57 +00:00
Ben Richards
747c961632 Remove documentation requiring linear color space in ASTC textures.
This is no longer true.
2024-02-19 15:09:39 +13:00
Ben Richards
89543c9880 Change S3TCRGB to S3TCSRGB. 2024-02-17 20:59:00 +13:00
Ben Richards
f8ebbf38ef Verify compressed texture compatibility with WebGL and improve warnings. 2024-02-17 20:43:43 +13:00
Steven Yau
a25d61068e File creation checks if URL is a string before seeing if its Base64
Fixes #6733
2024-02-09 21:42:22 +00:00
Richard Davey
221eb1ae5d Added base64 property and onBase64Load method and removed data URI warnings 2024-02-01 19:23:26 +00:00
Richard Davey
324dcfba97 The XHRLoader will now return a fake XHR result object containing the decoded base64 data if a base64 file is detected, skipping the creation of a real XML Http Request object. 2024-02-01 19:23:26 +00:00
Richard Davey
aa0d60786f Update XMLFile.js 2024-02-01 19:23:26 +00:00
Richard Davey
8e4ea336c0 The ImageFile will now default to using the Image Load Element if a base64 file is detected, instead of throwing a console warning about unsupported types. 2024-02-01 19:23:26 +00:00
Richard Davey
5bda070c98 The XHRLoader will now listen for ontimeout and if triggered it will hand over to the File.onError handler. This prevents the Loader from stalling if a file times out. Fix #6472 2024-02-01 17:30:10 +00:00
Richard Davey
cda0c04afd There was an issue when loading Normal Maps with Sprite Sheets. Often, if the normal map image completed loading before the sprite sheet, it would cause it to be incorrectly added to the Texture Manager, resulting in broken frames. Now, regardless of the load order, the sprite sheet is added with its normal map correctly together. Fix #6491 2023-11-08 18:40:08 +00:00
Richard Davey
f49a8ee897 The MultiAtlas File Loader didn't prepend the Loader.prefix if set. This now forms part of the key, leading to the correct keys used for the Texture Manager. Fix #6614 2023-11-08 18:05:15 +00:00
Richard Davey
d07d756760 The LoaderPlugin will now call removeAllListeners() as part of its shutdown method, which will clear any event listeners bound to a Loader instance of the Scene, during the Scene shutdown. Fix #6633 2023-09-27 18:15:12 +01:00
samme
f7571462a0 Docs: explain FileConfig.type values 2023-09-13 08:28:57 -07:00
Julius Diaz Panoriñgan
a902fe05da fix JSDoc fired event: Phaser.Loader.LoaderPlugin#ADD -> Phaser.Loader.Events#ADD 2023-07-26 09:51:49 -07:00
Richard Davey
a1e77e9e6b You can now correctly loading a Sprite Sheet with a Normal Map. The TextureManager.addSpriteSheet method has been updated to take an optional dataSource parameter and the SpriteSheetFile.addToCache method has been rewritten to handle normal maps as well. 2023-04-12 06:49:54 +01:00
Richard Davey
ec8dda5d17 Removed all mention of 'loadEvent' and 'asBlob' 2023-04-11 18:26:35 +01:00
Richard Davey
1384ff8cf5 Now just adds a dictionary entry into the cache, doesn't create a DOM element, doesn't hang the browser. 2023-04-11 17:02:46 +01:00
Richard Davey
113430f70e Added all of the various missing FileConfig properties. Fix #6455 2023-04-07 13:45:30 +01:00
Richard Davey
49511838f4 Update CSSFileConfig.js 2023-04-07 13:45:14 +01:00
samme
1e527c4636 Docs: PackFile url argument type
Can be an object
2023-03-19 09:03:10 -07:00
samme
24197dd09a Warn if no audio URLs are matched 2023-01-20 11:46:04 -08:00
Richard Davey
468bf7821d Updated copyright year 2023-01-02 17:36:27 +00:00
Richard Davey
8b6b398b68 When ImageFile loads with a linked Normal Map and the map completes first, but the Image is still in a pending state, it would incorrectly add itself to the cache instead of waiting. It now checks this process more carefully. Fix #5886 2022-11-29 18:11:29 +00:00
Richard Davey
5ae9cf7f09 Using a dataKey to specify a part of a JSON file when using load.pack would fail as it wouldn't correctly assign the right part of the pack file to the Loader. You can now use this parameter properly. Fix #6001 2022-11-29 17:47:58 +00:00
Richard Davey
2b4332a404 Update JSONFile.js 2022-11-29 17:47:52 +00:00
Richard Davey
993562d803 Update LoaderPlugin.js 2022-11-29 17:47:44 +00:00
Richard Davey
ffa54fe1c1 Fixed loader reference. Fix #6295 2022-11-29 15:45:02 +00:00
samme
0ba6261eff
Docs: correct example code in FILE_KEY_COMPLETE
AtlasJSONFile type is `atlasjson`
2022-11-01 20:16:10 -07:00
Richard Davey
023343c789 All events have a type of string. Fix #6136 2022-09-21 22:01:03 +01:00
Richard Davey
21a695d070 Removed log 2022-08-19 16:44:51 +01:00
samme
1a9fe0ccb6 Add AudioFileURLConfig and VideoFileURLConfig types 2022-06-28 11:12:30 -07:00