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
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
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
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
samme
e7130fb546
eslint-disable no-console
2021-10-10 12:56:11 -07: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
Richard Davey
31836eaf3c
Update CompressedTextureFile.js
2021-10-06 21:14:18 +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
686e32b8d0
Now parses KTX and PVR textures
2021-10-05 18:33:50 +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
1c64f44dab
Fixed eslint, added documentation
2021-09-21 12:01:48 +01:00
Jm
28f58f4e5e
Merge branch 'photonstorm:master' into loader-type
2021-06-23 13:09:15 +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
c7418bd1c3
Lint fix
2021-05-24 17:58:30 +01: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
Matt Jennings
33014d8d6a
fix key not being correct when loading video via config object
2021-04-02 15:18:40 -05:00
samme
ff1afb4976
Warn and call onProcessError() for invalid JSON
...
Then rethrow
2021-02-03 11:58:29 -08: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
62c03f6dad
AsepriteFile
is a new File Type for the Loader that allows you to load Aseprite images and animation data for use with the new Aseprite animation features. You can call this via this.load.asesprite(png, json)
.
2020-11-26 10:59:49 +00:00
Richard Davey
02c34cd64e
Replace integer with number
2020-11-23 10:22:13 +00:00
Richard Davey
0ea9f24cd0
Update SceneFile.js
2020-11-17 17:15:40 +00:00
Richard Davey
8f688cd9a5
Update SceneFileConfig.js
2020-11-17 17:15:36 +00:00
Richard Davey
c0ab4d4ae9
OBJFile can now optionally load a material file along with the model data
2020-10-08 10:44:49 +01:00
Richard Davey
727383d4f3
Loader.MultiFile
will now parse the given files array and only add valid entries into the file list, allowing multifiles to now have optional file entries.
2020-10-08 10:44:02 +01:00
Richard Davey
5bb73b5c95
In the Loader.FileTypes.TextFile
config you can now override the type and cache destination for the file.
2020-10-08 10:43:13 +01:00
Richard Davey
bbaa5c3eae
Added OBJFileConfig defs
2020-10-06 10:42:22 +01:00
Richard Davey
6c5a83b862
Added the OBJFile type
2020-10-05 16:52:23 +01:00
Richard Davey
270c2f425d
Create OBJFile.js
2020-10-05 16:52:15 +01:00
Richard Davey
6bc858e332
Moved out OBJFile and updated PipelineManager
2020-10-01 18:00:02 +01:00
Richard Davey
780e1d9adb
Texture parsed files no longer store their data in the data caches as well.
...
You can now use `TextureManager.remove` to remove a texture and not have to worry about clearing the corresponding JSON or XML cache entry as well in order to reload a new texture using the same key. Fix #5323
2020-09-29 10:38:44 +01:00
Richard Davey
113ae646e2
Updated path ref
2020-09-16 13:50:44 +01:00
Richard Davey
dd28a11c93
Loader.OBJFile
is a new File Loader type that can load Wavefront OBJ files, which are then parsed and stored in the OBJ Cache.
2020-09-15 18:06:31 +01:00
Richard Davey
bd2c56e306
Typo fix
2020-09-15 18:04:26 +01:00
Richard Davey
17ed707acb
The Loader.path
was being added to the File URL even if the URL was absolute. This is now checked for and the path is not applied unless the URL is relative #5301
2020-09-14 09:23:59 +01:00
Richard Davey
d844402d4d
Merge pull request #5298 from samme/feature/audio-config-default
...
Add default value for Phaser.Core.Config#audio
2020-09-11 16:25:50 +01:00
Richard Davey
6c8191f7c5
Fixed Audio and Video type defs. Fix #5295
2020-09-11 15:29:01 +01:00
samme
ae5182be7d
Default Phaser.Core.Config#audio; and refactor
2020-09-10 09:22:44 -07:00
Richard Davey
96a64eae4e
ParseXMLBitmapFont
has a new optional parameter texture
. If defined, this Texture is populated with Frame data, one frame per glyph. This happens automatically when loading Bitmap Text data in Phaser.
2020-08-05 12:46:28 +01:00
Richard Davey
e195aac919
ParseXMLBitmapFont
will now calculate the WebGL uv data for the glyphs during parsing. This avoids it having to be done during rendering, saving CPU cycles on an operation that never changes.
2020-07-31 11:32:37 +01:00