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
Richard Davey
d5296287b1
Fixed url type
2020-07-14 09:03:07 +01:00
Richard Davey
6fddce1ef8
Merge pull request #5137 from samme/fix/decode-audio-error-msg
...
Fix 'Error decoding audio' message
2020-07-13 12:06:17 +01:00
Richard Davey
feaaf04c40
Merge pull request #5131 from samme/fix/loader-file-state
...
Set file states FILE_LOADING and FILE_LOADED
2020-07-13 12:00:55 +01:00
Richard Davey
4dfe40fa9a
Merge pull request #5126 from samme/fix/file-url
...
Fix TypeError when loading JSON objects in `url` argument
2020-07-13 11:49:37 +01:00
samme
d89b09f181
Fix undefined key in error message
2020-05-06 18:07:23 -07:00
samme
ee957757bf
Docs: correct type for Phaser.Loader.File#url
2020-05-06 08:53:47 -07:00
samme
1f21a7d3be
Fix url type check
...
Fixes #5125
2020-05-02 12:36:19 -07:00
samme
9965c81c66
Set states FILE_LOADING and FILE_LOADED
2020-05-02 10:01:38 -07:00
Richard Davey
ee0a04ec19
Fixed data type
2020-04-27 16:15:05 +01:00
Richard Davey
20ae4e3806
Merge pull request #4618 from jorbascrumps/feat-multiple-loader-headers
...
Adds support for multiple custom Loader headers
2020-04-27 13:54:26 +01:00
Richard Davey
fd4ac6dfdf
Merge pull request #5052 from aucguy/contribute
...
Fix loading audio and video with blob urls
2020-04-27 13:12:17 +01:00
Richard Davey
3df2b2eac4
Merge pull request #5041 from samme/fix/audiofile-state
...
Fix undefined state during processing of AudioFile and VideoFile
2020-04-27 12:54:27 +01:00
Richard Davey
598356dfef
Merge pull request #5048 from samme/docs/PackFileSection
...
Add Phaser.Types.Loader.FileTypes.PackFileSection
2020-04-27 12:16:34 +01:00
Richard Davey
db882e82dd
Merge pull request #5060 from jjcapellan/fix5059
...
fix #5059
2020-04-27 12:13:51 +01:00
Richard Davey
70a4b9843e
Merge pull request #5038 from halilcakar/master
...
Update JSDocs for events
2020-04-27 11:51:40 +01:00
samme
c472a50367
Use native dataset if available
...
Fixes TypeError in strict mode (`dataset` is readonly)
2020-04-22 17:52:51 -07:00
jjcapellan
4e4b1359de
fix #5059
2020-03-28 19:20:07 +01:00
aucguy
ff886b001e
Fix loading audio and video with blob urls
...
Passing a blob url as the second parameter to `this.load.audio` or
`this.load.video` would cause Phaser to load a different url.
Additionally, `this.load.path` would incorrectly be prepended to the
url.
`AudioFile.getAudioURL` and `VideoFile.getVideoURL`, are expected to
return an object with two properties; url and type. However when passed
a blob url they return a string. The return value's
`url` property is inspected to get the url. For strings' the property is
`undefined`. If the url property is undefined then a url derived from
the asset key is used instead.
2020-03-22 22:21:27 -05:00
samme
f39e3d8f10
Add Phaser.Types.Loader.FileTypes.PackFileSection
...
Correct types in Scenes.SettingsConfig, Scenes.SettingsObject
Fixes #5046
2020-03-17 17:25:42 -07:00
samme
ed83c6adc0
Fix undefined state during processing
2020-03-11 13:52:54 -07:00
halilcakar
43f26ad31f
Update JSDocs for events
2020-03-10 11:11:43 +03:00
Jason Kwok
f970afb34c
Fixed this
return type for Phaser.Loader.LoaderPlugin
2020-01-26 00:31:56 +08:00
Richard Davey
0d263be52a
Config.loaderWithCredentials
is the new global setting for XHRSettings.withCredentials
.
2020-01-22 16:30:11 +00:00
Richard Davey
af85f9451d
XHRLoader
will now use the XHRSettings.withCredentials
as set in the file or global loader config.
2020-01-22 16:29:58 +00:00
Richard Davey
bf0feee498
XHRSettings.withCredentials
is a new boolean property that controls the withCredentials
setting of the XHR Request made by the Loader. It indicates whether or not cross-site Access-Control requests should be made using credentials such as cookies, authorization headers or TLS client certificates. You can set this on a per-file basis, or global in the Game Config.
2020-01-22 16:29:47 +00:00
Richard Davey
ff65e69cd1
Changed copyright date to 2020
2020-01-15 12:07:09 +00:00
Richard Davey
d5644cf977
If a config object was passed to MultiAtlasFile
it expected the atlas URL to be in the url
property, however the docs and file config expected it in atlasURL
. You can now use either of these properties to declare the url. Fix #4815
2020-01-15 11:36:11 +00:00
Richard Davey
d636189cf7
Fixed JSDoc param type. Fix #4815
2020-01-15 11:30:08 +00:00
Richard Davey
72cbc89817
Fixes Rollup freaking out over an eval
2019-11-20 17:19:20 +00:00
Josh Soref
4670619f6c
spelling: dependencies
2019-10-29 01:51:28 -04:00
Josh Soref
22fb1f785f
spelling: delimiter
2019-10-29 01:51:13 -04:00
Ilya Apasov
abe3247e47
Enable loading video file as data URI ( fixes #4830 )
2019-10-29 19:02:56 +02:00
Richard Davey
1df9b9655a
Shouldn't remove the blob data, or videos too large for memory cannot replay
2019-10-17 13:25:32 +01:00
Richard Davey
91c0b1c8a4
Create VideoFileConfig.js
2019-10-11 18:31:58 +01:00
Richard Davey
29b9801c5d
Load as blob works and finished documentation.
2019-10-10 14:26:03 +01:00
Richard Davey
06047b6d68
Only autoplay if muted, plus some debugging handlers
2019-10-09 10:17:29 +01:00
Richard Davey
35dfd2fb30
Fixed noAudio
2019-10-09 00:40:09 +01:00
Richard Davey
7fb8718c80
Added new noAudio
parameter, because it's a load setting, not an instance one
2019-10-08 17:15:06 +01:00
Richard Davey
5ac4afb1f8
Getting autoplay working
2019-10-07 17:08:45 +01:00
Richard Davey
7ef1b06d4c
Supports blob and url loading
2019-10-03 17:50:54 +01:00
Richard Davey
c860d1b46c
Expose the VideoFile file type
2019-10-03 17:50:30 +01:00
Richard Davey
3dd82c4e02
Working through the Video loader
2019-10-03 14:14:07 +01:00
Richard Davey
237d13ec27
Create VideoFile.js
2019-10-03 02:29:24 +01:00
Richard Davey
9616e8187a
MultiAtlasFiles
would incorrectly add the atlas JSON into the JSON cache, causing you to not be able to destroy and reload the texture using the same atlas key as before. Fix #4720
2019-09-30 14:24:16 +01:00
Richard Davey
2f976acb13
If more than one MultiAtlasFile
used the same internal file name for its images, subsequent multi-atlases would fail to load. Fix #4330
2019-09-30 14:11:29 +01:00
Richard Davey
973bf76b14
MultiAtlasFiles
that loaded their own external images would obtain incorrect path and URL values if the path had been changed by another file in the queue. They now retain the loader state and apply it to all child files during load.
2019-09-27 16:11:30 +01:00
Richard Davey
999967c772
MultiFile
has three new internal properties: baseURL
, path
and prefix
which allow them to retain the state of the loader at the time of creation, to be passed on to all child-files. Fix #4679 .
2019-09-27 16:06:51 +01:00
jorbascrumps
32925001db
Added docs to XHRSettingsObject
2019-06-25 19:30:05 -04:00
jorbascrumps
f77e0ccbc1
Added default value
2019-06-25 19:29:24 -04:00
jorbascrumps
d88201604c
Added support for multiple Loader headers
2019-06-25 19:26:16 -04:00
Richard Davey
c91ed91ce3
License link update
2019-05-10 16:15:04 +01:00
Richard Davey
a6341a97a8
Fixed Types references
2019-05-09 15:32:53 +01:00
Richard Davey
9fe265121a
FileType Defs update
2019-05-09 12:32:00 +01:00
Richard Davey
9a28946069
FileType Types
2019-05-09 12:20:21 +01:00
Richard Davey
ae1b5a664f
Loader Types
2019-05-09 12:04:54 +01:00
Richard Davey
8536049b65
Fixed shaderType reference
2019-05-01 14:12:06 +01:00
Richard Davey
8ef5e9789c
Renamed from Shader to BaseShader to avoid confusion with the Shader Game Object
2019-05-01 12:58:52 +01:00
Richard Davey
3759714703
Try catch the uniform json parse
2019-05-01 11:12:42 +01:00
Richard Davey
b1de52009d
Now extracts uniforms
2019-05-01 00:05:13 +01:00
Richard Davey
0c84853524
Expanding GLSL File Loader
2019-04-30 17:11:18 +01:00
Richard Davey
24bc670424
Merge branch 'master' of https://github.com/photonstorm/phaser
2019-04-23 22:48:24 +01:00
Richard Davey
349a5a1028
Added MultiScriptFile file type
2019-04-23 22:48:20 +01:00
Richard Davey
e2e5c76b8c
Added new CSS File Loader FileType.
2019-04-23 11:21:13 +01:00
Richard Davey
0f7eb028c0
Merge pull request #4400 from SirLink/master
...
Declared dataset as object for internet explorer 10
2019-04-08 16:44:08 +01:00
Richard Davey
c85648e06a
The PluginManager.installScenePlugin
method has a new optional boolean parameter fromLoader
which controls if the plugin is coming in from the result of a Loader operation or not. If it is, it no longer throws a console warning if the plugin already exists. This fixes an issue where if you return to a Scene that loads a Scene Plugin it would throw a warning and then not install the plugin to the Scene.
2019-02-28 12:24:41 +00:00
Wilmer Marchan
378665b912
Declared dataset as object for internet explorer 10
...
Internet explorer 10 crashed when trying to access the dataset property of the audio object.
2019-02-26 14:39:38 -05:00
Richard Davey
c9bdb83941
GameObject and Loader typedefs
2019-02-13 13:57:59 +00:00
Richard Davey
56dfdb7a74
More jsdoc global fixes
2019-02-12 12:14:26 +00:00
Richard Davey
ccaae460a4
Added jsdoc version numbers to each event
2019-02-12 11:37:58 +00:00
Richard Davey
eb9ed3463f
Lots of namespace and jsdoc fixes
2019-02-01 18:02:58 +00:00
Richard Davey
4f6f6ee72f
Lots of jsdoc and type fixes
2019-01-31 12:19:01 +00:00
Richard Davey
dc1756bbc8
Pass xhr to onerror
2019-01-24 13:55:36 +00:00
Richard Davey
facd0d0ca4
Better handling of responseURL
re #4309
2019-01-24 13:55:27 +00:00
Richard Davey
2a108339f0
Lint fix
2019-01-23 23:17:33 +00:00
Richard Davey
50e292e363
Merge pull request #3864 from Ithamar/patch-1
...
Allow XHR status 0 as success too
2019-01-23 23:04:27 +00:00