Pavle Goloskokovic
|
4160d738bc
|
Passing loader reference to load method
|
2018-01-21 15:10:08 +01:00 |
|
Richard Davey
|
864fa638af
|
Added LoadArray back in and sorted out callback passing.
|
2018-01-19 19:13:27 +00:00 |
|
Richard Davey
|
1d22f5a59a
|
File has a reference to its Loader, will also now emit progress events on itself.
|
2018-01-19 19:13:02 +00:00 |
|
Richard Davey
|
7577f470ae
|
You can now pass in a JS object to the JSON Loader instead of a URL. It will use the object to populate the data with. This impacts any loader type that uses json, so atlas, tilemap, audio sprite, etc. Closes #3147.
|
2018-01-19 17:53:07 +00:00 |
|
Richard Davey
|
76c7639b20
|
If a file load 404s then handle this case, as it'll return the 404 page as the response type which will then try to be parsed.
|
2018-01-19 17:29:14 +00:00 |
|
Richard Davey
|
f3d9f145a6
|
Fixed flow error when the Loader would never complete if every single file failed.
|
2018-01-19 17:28:48 +00:00 |
|
Richard Davey
|
8c3422f2b4
|
BaseURL adds trailing slash if missing.
|
2018-01-19 17:10:23 +00:00 |
|
Richard Davey
|
7c7336dd30
|
Loader.reset gets path and baseURL again.
|
2018-01-19 17:07:38 +00:00 |
|
Richard Davey
|
7e0b04df70
|
You can now specify Loader settings (baseURL, path, xhr settings, etc) in either the Game Config, the Scene Config or a File Config. Game config is used as the defaults. Scene config overrides those, and a File config overrides the Scene config. This fixes #3168.
|
2018-01-19 16:56:41 +00:00 |
|
Richard Davey
|
57444596e5
|
Loader now emits a progress event which can be used for progress bar loaders, etc. Also added setBasePath and removed console logs.
|
2018-01-19 16:30:04 +00:00 |
|
Pavle Goloskokovic
|
d50c04e9f8
|
Merge remote-tracking branch 'origin/master'
# Conflicts:
# src/loader/filetypes/AudioFile.js
|
2018-01-19 16:30:43 +01:00 |
|
Richard Davey
|
e2d71e2c6d
|
BaseLoader renamed LoaderPlugin, const updated, index updated.
|
2018-01-19 14:54:50 +00:00 |
|
Richard Davey
|
4aa6e931f1
|
Merging Loader into BaseLoader
|
2018-01-19 14:47:25 +00:00 |
|
Richard Davey
|
e18858010c
|
Tidying up before merging with BaseLoader.
|
2018-01-19 13:52:03 +00:00 |
|
Richard Davey
|
f5462146e2
|
Added MultiAtlas loader.
|
2018-01-19 13:51:53 +00:00 |
|
Richard Davey
|
8983c93fc6
|
Added AudioSprite loader.
|
2018-01-19 13:51:12 +00:00 |
|
Richard Davey
|
db515d8724
|
All FileTypes now register themselves with the FileTypesManager, allowing devs to specify which loaders are included in their builds.
|
2018-01-19 13:29:26 +00:00 |
|
Richard Davey
|
676c5be1da
|
Added global FileTypes manager.
|
2018-01-19 13:29:25 +00:00 |
|
Pavle Goloskokovic
|
f019b8ad75
|
Merge remote-tracking branch 'origin/master'
|
2018-01-19 12:08:40 +01:00 |
|
Pavle Goloskokovic
|
4bb8557081
|
Updated reference to the game object
|
2018-01-19 12:06:11 +01:00 |
|
Richard Davey
|
fb7cdbf29b
|
Added ability to load plugins from external files and have them register with the PluginManager.
|
2018-01-18 16:48:25 +00:00 |
|
Pavle Goloskokovic
|
e889de2c20
|
Merge remote-tracking branch 'origin/master'
|
2018-01-18 16:09:29 +01:00 |
|
Richard Davey
|
2deb9edc9e
|
Plugins now check to see if the Scene is already booted and adapt accordingly.
|
2018-01-18 14:00:31 +00:00 |
|
Pavle Goloskokovic
|
345f112ff8
|
Renamed touchLocked to locked
|
2018-01-18 14:05:20 +01:00 |
|
Pavle Goloskokovic
|
b61a4dec66
|
Passing sound manager locked property value instead of touchLocked to HTML5AudioFile constructor
|
2018-01-18 14:04:41 +01:00 |
|
Richard Davey
|
5a333bc2fd
|
Updated to new Plugin format, removed injection and mapping
|
2018-01-18 05:18:09 +00:00 |
|
Michael Hadley
|
2e68f2507d
|
Added Weltmeister support to Loader & Tilemap API
|
2018-01-17 18:34:00 -06:00 |
|
Michael Hadley
|
72a14df466
|
Shortened Tilemap format names
|
2018-01-17 18:34:00 -06:00 |
|
Pavle Goloskokovic
|
c4f4fbc79d
|
Passing sound manager touchLocked value to HTML5AudioFile constructor
|
2018-01-17 17:04:55 +01:00 |
|
Pavle Goloskokovic
|
541cd83688
|
Using object property instead of local var
|
2018-01-17 17:04:06 +01:00 |
|
Pavle Goloskokovic
|
81f3b56b0a
|
Added touchLocked argument to HTML5AudioFile class constructor
|
2018-01-17 17:01:50 +01:00 |
|
Pavle Goloskokovic
|
5c118a3a94
|
audio tag does not support name attribute so setting that value to dataset
|
2018-01-17 14:10:03 +01:00 |
|
Pavle Goloskokovic
|
196018d04a
|
Updating load progress properties when sound is locked
|
2018-01-17 14:09:20 +01:00 |
|
Pavle Goloskokovic
|
5720dff5dc
|
onLoad needs to be called from timeout callback in order to not cause issues
|
2018-01-17 14:08:38 +01:00 |
|
Pavle Goloskokovic
|
e75731df87
|
Calling onLoad directly if device sound is locked since we are skipping actual loading
|
2018-01-17 14:07:50 +01:00 |
|
Pavle Goloskokovic
|
ae36cf5729
|
Skipping calling load method on an audio tag on mobile devices
|
2018-01-17 14:06:46 +01:00 |
|
Pavle Goloskokovic
|
402aa27ff3
|
Skipping setting preload attribute and events on an audio tag on mobile devices
|
2018-01-17 14:05:35 +01:00 |
|
Richard Davey
|
f9a7939812
|
Lots of work migrating to the new plugin system, fixing references and exposing on the namespace
|
2018-01-16 22:28:29 +00:00 |
|
Richard Davey
|
8e07320596
|
Migrating to plugins
|
2018-01-16 19:49:13 +00:00 |
|
Richard Davey
|
674c1b5ba8
|
Moving plugins to their own locations
|
2018-01-16 18:34:37 +00:00 |
|
Pavle Goloskokovic
|
4be42c3edc
|
Merge remote-tracking branch 'origin/master'
# Conflicts:
# src/sound/BaseSound.js
# src/sound/webaudio/WebAudioSound.js
|
2018-01-14 15:50:55 +01:00 |
|
Richard Davey
|
f9a1e27334
|
Removed un-used event files and references.
|
2018-01-12 17:20:16 +00:00 |
|
Richard Davey
|
c625b8735b
|
Updated to using Event Emitter for all key managers and game objects. Events are now dispatched directly using arguments instead of Event objects, all managers updated to emit directly.
|
2018-01-12 17:09:21 +00:00 |
|
Pavle Goloskokovic
|
aa820b08ea
|
Setting audio tag name to contain index number, useful for debugging
|
2018-01-12 17:49:25 +01:00 |
|
Pavle Goloskokovic
|
ef60c16551
|
Marking audio tags as unused when creating them
|
2018-01-11 17:25:27 +01:00 |
|
Pavle Goloskokovic
|
0a10240c61
|
Moved HTML5AudioFile
|
2018-01-10 16:49:56 +01:00 |
|
Pavle Goloskokovic
|
d0d3a6473d
|
Merge remote-tracking branch 'origin/master'
|
2018-01-10 16:20:13 +01:00 |
|
Richard Davey
|
d8f1ba03e9
|
Moved repository location
|
2018-01-09 21:43:56 +00:00 |
|
Richard Davey
|
0d90f75b5f
|
Splitting the dev branch up into versions.
|
2016-11-22 01:36:56 +00:00 |
|
Richard Davey
|
d568d2bede
|
Moved _sys to a StateSystems class to keep things much cleaner, and avoid setter inheritance mess.
|
2016-11-06 12:18:08 +00:00 |
|