In erisgame.js there are two kind of load functions used:
preloadSmthing(...)
loadSmthing(...)
We should decide which one to use.
LoadSmthing: Will wait until it is loaded
PreloadSmthing: Will continue executing when loading
Because this is init phase, load might be better because game can't start without everything loaded. However we should test both and check how does it affect performance
In erisgame.js there are two kind of load functions used:
preloadSmthing(...) loadSmthing(...)
We should decide which one to use.
LoadSmthing: Will wait until it is loaded PreloadSmthing: Will continue executing when loading
Because this is init phase, load might be better because game can't start without everything loaded. However we should test both and check how does it affect performance