Commit graph

695 commits

Author SHA1 Message Date
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
Rex
7615d3c731 Fix pack-loader bug
'packKey' could be undefined, an object, or a string. So test if packKey is a string type first.
2022-05-11 07:58:50 +08:00
Richard Davey
b1f03649bb LoaderPlugin.localSchemes is a new array of scheme strings that the Loader considers as being local files. This is populated by the new Phaser.Core.Config#loaderLocalScheme game / scene config property. It defaults to [ 'file://', 'capacitor://' ] but additional schemes can be defined or pushed onto this array. Based on #6010 2022-05-09 18:34:56 +01:00
Richard Davey
21bdac8a29
Merge pull request #6010 from Azim-Palmer/bugfix/cordova-webaudio-fix
Fix WebAudio for Crodova based apps
2022-05-09 16:56:37 +01:00
Richard Davey
d33035cf2d
Merge pull request #6094 from VanaMartin/imagefile-bugfix-1
FIX: ImageFile addCache pending destruction status
2022-05-09 16:39:26 +01:00
Martin Vana
28b801840c FIX: ImageFile addCache pending destruction status 2022-04-28 18:46:10 +02:00
Rex
42a127832a Fix lint error 2022-04-25 15:59:31 +08:00
Richard Davey
d53d8f3ea5
Merge pull request #6002 from rexrainbow/pack-loader-dotnotation-datakey
Can use dot notation as datakey
2022-04-14 15:49:36 +01:00
Krzysztof Głogocki
726c874c10 Merge remote-tracking branch 'origin/master' into bugfix/cordova-webaudio-fix 2022-04-07 14:08:05 +02:00
Richard Davey
59fbcc5ca3 Updated copyright year 2022-02-28 14:29:51 +00:00
Krzysztof Głogocki
897d2444f5 Fixing WebAudio for Cordova by introducing localScheme configuration 2022-02-15 12:07:48 +01:00
Rex
14c1bd0d13 Can use dot notation as datakey 2022-02-12 17:25:36 +08:00
samme
fb7ea70610 Fix missing script type
Fixes #5994
2022-02-07 11:27:48 -08:00
samme
905167a5f0 Clarify the invalid file key/type errors 2022-02-07 11:27:14 -08:00
Richard Davey
4f0232e8c8 Restored the 3.55.2 sound system + fixes for iOS 2022-02-04 16:59:13 +00:00
J.C
271ce6932a polyfill for audio.dataset if it's missing on some browser. 2021-12-21 17:17:32 +08:00
Richard Davey
3f237d6e1e Tidying up this class. Better name, lock handling and onload 2021-11-22 23:53:20 +00:00
Richard Davey
9705ea5b70 Debugging audio 2021-11-22 18:35:36 +00:00
Emil Schnedler Vad
98ea9e681e fixes a bug in Phaser.Loader.LoaderPlugin#texture 2021-11-15 16:43:42 +01:00
Richard Davey
1bf6ec2712 Removed un-used code 2021-11-08 17:58:53 +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
4d6c67c22e Working through removing audio decoding from the loader 2021-11-04 17:54:43 +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
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