Pavle Goloskokovic
db5002fa87
Updated BaseSoundManager playAudioSprite method to return value from sound play method call
2018-01-20 19:53:09 +01:00
Pavle Goloskokovic
7a259da22c
Updated BaseSoundManager play method to return value from sound play method call
2018-01-20 19:51:54 +01:00
Richard Davey
a8c0ee8839
Allow to pass a Frame object directly to a Bob
2018-01-20 17:45:01 +00:00
Richard Davey
c7dc7fc240
Checks strings and numbers
2018-01-20 17:44:45 +00:00
Richard Davey
d7611afaab
Fixed issue with setting Bob frame
2018-01-20 17:05:53 +00:00
Richard Davey
2fb3641824
Should be a string, not a Frame object
2018-01-20 16:35:47 +00:00
Richard Davey
af613201f7
Strengthen the frame name check
2018-01-20 16:35:29 +00:00
Richard Davey
f9cc2a9714
Scene now sets a status flag for every state it goes through, allowing the manager to know when to allow updating and rendering
2018-01-20 16:22:40 +00:00
Richard Davey
a5a112114b
Added blitter coordinates to bob output
2018-01-20 16:21:59 +00:00
Richard Davey
d220634fb6
Added helper methods for flip, visible and alpha
2018-01-20 16:21:42 +00:00
Richard Davey
b951809791
Fixed children reference
2018-01-20 16:21:28 +00:00
Richard Davey
134c67a51b
Split into base class and plugin extension so other classes can use them too
2018-01-20 16:21:12 +00:00
Richard Davey
e1609fc866
Allowed dist folder to npm and removed wip folder
2018-01-20 14:33:30 +00:00
Richard Davey
d9da905230
Added XBox360 Controller config ( closes #3175 )
2018-01-20 14:25:28 +00:00
Richard Davey
05b45f1f9c
Added keycodes ( closes #3174 )
2018-01-20 14:22:41 +00:00
Richard Davey
f676fc2bbd
Recoded the SceneManage
...
The Scene Manager no longer tries to maintain an 'active' list and instead just iterates the scenes in order, skipping those that aren't awake. Scene array changing events like moveUp etc are queued if the list is being processed and the ScenePlugin has been vastly updated to take care of this. You can now happily move scenes around the list, block scene input, consume input events, switch scenes around and more.
2018-01-20 04:47:03 +00:00
Richard Davey
2b4d6f17c8
Removed unused consts
2018-01-20 04:45:27 +00:00
Richard Davey
39b1f35a20
Removed call to render and tidied up a little
2018-01-20 04:45:14 +00:00
Richard Davey
4e05ad0655
The Input system will now order input based on the scenes from top to bottom
...
If the global top only flag is on and a scene consumes an input event then they won't flow any further down the scene list. This is optional (but on by default), allowing you to now correctly create a UI Scene above a game scene without the input events polluting one to the other.
2018-01-20 04:44:54 +00:00
Felipe Alfonso
31be6fa51d
WebGLRenderer cleanup
2018-01-20 01:05:56 -03:00
Felipe Alfonso
1da31fb2a5
WebGLRenderer resource creation
2018-01-19 21:37:52 -03:00
Felipe Alfonso
e98c6b336a
Merge branch 'master' into rendering-cleanup
2018-01-19 18:22:48 -03:00
Richard Davey
864fa638af
Added LoadArray back in and sorted out callback passing.
2018-01-19 19:13:27 +00:00
Richard Davey
2f1ee57505
Fixed event handler.
2018-01-19 19:13:11 +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
4473af243b
Frames can now have customData
stored in them, as well as the Textures. This is populated by all of the atlas data by default and can be added to, either in the JJSON source files or at run-time. Closes #3165 .
2018-01-19 18:23:25 +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
faf89ea78a
getTextureKeys method added to return all loaded textures.
2018-01-19 16:30:05 +00:00
Richard Davey
25089f66fd
Scene will now be made active as soon as it has init'd, not after the load is complete. This allows a scene to render while loading assets.
2018-01-19 16:30:05 +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
Richard Davey
13ed054d79
Removed display of checksum.
2018-01-19 16:30:03 +00:00
Pavle Goloskokovic
ac7be301f1
Reverting previous commit since it did not fix the issue
2018-01-19 17:12:49 +01:00
Pavle Goloskokovic
d50c04e9f8
Merge remote-tracking branch 'origin/master'
...
# Conflicts:
# src/loader/filetypes/AudioFile.js
2018-01-19 16:30:43 +01:00
Pavle Goloskokovic
999b7d96df
skipping looping and ending logic if current time is 0 since some HTML5 Audio implementations set currentTime value to 0 when changing playback rate or performing any other operation on an audio tag object
2018-01-19 16:24:26 +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
b58814e8d7
Merge pull request #3172 from Antriel/master
...
Added missing require for Point.
2018-01-19 14:05:55 +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
Richard Davey
fd4cae12fc
Removed un-used file.
2018-01-19 13:29:24 +00:00
Antriel
df7bc2e841
Added missing require for Point.
2018-01-19 14:20:45 +01:00
Michael Hadley
a6365c5339
Removing es6 'let' from AP vs tilemap
2018-01-19 06:56:52 -06:00