Commit graph

521 commits

Author SHA1 Message Date
Ithamar R. Adema
44f9b10e8c
Allow XHR status 0 as success too
Normally only status 200 would be accepted as success, but 0 is returned when a file is loaded from the local filesystem (file://). This happens for example when opening the index.html of a (Phaser) game in a browser directly, or, as it turns out, when using Cordova on iOS.

This fixes #3464
2018-07-25 09:54:50 +02:00
Richard Davey
2a008e6713 FileType.HTML is a new file type loader that will load an HTML snippet and store it in the new html cache. Access it via load.html (this method was previously used to load html to textures, please see load.htmlTexture for this feature now) 2018-07-19 13:21:51 +01:00
Bartosz Kalinowski
264c82fbcb
Update AudioFile.js
fix error
2018-07-14 07:50:00 +02:00
Richard Davey
7aa46657c2 Tidying up jsdocs and changing float to number 2018-06-26 23:19:14 +01:00
Richard Davey
28851ff69b Use hyphens instead of underscores. Fix #3751 2018-06-14 13:30:33 +01:00
Richard Davey
52d04ee5f9 The LoaderPlugin didn't emit the filecomplete event if any of files failed to load, causing it to fail to run the Scene create function as well. Fix #3750 2018-06-14 13:23:15 +01:00
Richard Davey
f0348834c6 The Loader now uses an update loop to release new files to the queue, rather than doing it during the async hell-hole that was the inflight iterator. Fix #3705. 2018-06-12 16:20:55 +01:00
Richard Davey
c51742ad9f New mapping property 2018-05-18 18:43:35 +01:00
Richard Davey
350cb037b7 All systems now register themselves with the new PluginCache 2018-05-15 12:51:50 +01:00
Richard Davey
4741ee02b1 Updated docs and lint fixes 2018-05-11 18:55:44 +01:00
Richard Davey
271c0a08b8 Added new ScenePluginFile and updated PluginFile. External and internal plugins now work. 2018-05-11 18:22:12 +01:00
Richard Davey
0937bff044 Spacing 2018-05-11 18:21:50 +01:00
Richard Davey
be330e609e Moved PluginManager to new location 2018-05-10 17:14:33 +01:00
Richard Davey
c9ea4dc117 Testing new PluginFile approach. 2018-05-09 23:55:11 +01:00
Richard Davey
4106f7e899 Fixed File call re: #3650 2018-05-09 13:04:18 +01:00
TadejZupancic
b795fbd97a
Missing loader parameter in File.call 2018-05-09 13:27:51 +02:00
Richard Davey
b1d41e506f Typo fix 2018-05-09 12:11:29 +01:00
Richard Davey
c89728de1d lint fix 2018-05-08 21:16:22 +01:00
Richard Davey
0441e19f2b Updated jsdocs 2018-05-08 15:43:12 +01:00
Richard Davey
ee2c0619d8 Updated jsdocs 2018-05-08 13:30:33 +01:00
Richard Davey
d7dfc1137d Added jsdocs 2018-05-08 13:16:53 +01:00
Richard Davey
ed9dbde7e0 Added jsdocs 2018-05-08 12:48:12 +01:00
Richard Davey
5700e9ac36 jsdocs update 2018-05-08 12:34:18 +01:00
Richard Davey
acc8683de8 Format fix 2018-05-08 01:37:16 +01:00
Richard Davey
199db75a8b lint fix 2018-05-08 01:36:45 +01:00
Richard Davey
560b0ca84b Binary files have a new optional dataType property to cast the data to upon load. 2018-05-08 01:12:41 +01:00
Richard Davey
1cb68a9895 New per file event dispatched. 2018-05-08 01:12:20 +01:00
Richard Davey
977fc930ec Added jsdocs 2018-05-07 23:25:58 +01:00
Richard Davey
1fb96f60ed Added jsdocs 2018-05-07 15:17:33 +01:00
Richard Davey
5042358da0 Typo fix 2018-05-05 17:15:21 +01:00
Richard Davey
90062d46dd Updated jsdocs 2018-05-05 17:10:03 +01:00
Richard Davey
f81fea08fb Added jsdocs 2018-05-05 12:46:51 +01:00
Richard Davey
cfe70866d6 Added jsdocs 2018-05-05 12:37:17 +01:00
Richard Davey
e017777773 Updated jsdocs 2018-05-05 12:31:04 +01:00
Richard Davey
a1ee4e6f24 Added jsdocs 2018-05-05 12:14:16 +01:00
Richard Davey
42cc4acf00 Added jsdocs 2018-05-05 11:56:09 +01:00
Richard Davey
7c53e13e81 Finished jsdocs 2018-05-04 18:50:10 +01:00
Richard Davey
8e7df2a234 You can now set the X-Requested-With header in the XHR requests by specifying it in your XHRSettings config, either in the game, scene or file configs. 2018-05-04 17:33:48 +01:00
Richard Davey
8b574f271f Loader.enableParallel has been removed. If you don't want parallel file loads then set the maximum parallel limit to 1. Related to this, the Game Config loaderEnableParallel property has been removed. 2018-05-04 17:13:27 +01:00
Richard Davey
faef3449f5 Added jsdocs 2018-05-04 16:00:02 +01:00
Richard Davey
0415dfbb7e lint fixes 2018-05-04 15:16:20 +01:00
Richard Davey
5ec482c539 Removed logs 2018-05-04 15:07:07 +01:00
Richard Davey
3b580c3e32 Missing new! 2018-05-04 14:46:58 +01:00
Richard Davey
d28a928663 Added normal map support for multi-atlas parsing 2018-05-04 14:34:19 +01:00
Richard Davey
6e820b3e7f We know the order, so can avoid checking the type 2018-05-04 14:34:06 +01:00
Richard Davey
acf6b94b2f Removed loadArray and fixed addPack return 2018-05-04 14:33:44 +01:00
Richard Davey
b0c853a782 Added in normal map support 2018-05-04 14:32:13 +01:00
Richard Davey
9b7d6d0254 Added linkFile support back in, so images can bind to other data. 2018-05-04 14:31:43 +01:00
Richard Davey
c796332892 Only scan resources if a resourceLoad 2018-05-04 11:34:10 +01:00
Richard Davey
04584ad191 Renamed LinkFile to MultiFile 2018-05-04 11:33:51 +01:00