@urso/core 0.7.7 → 0.7.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/js/index.js +1 -1
- package/package.json +1 -1
- package/src/js/config/main.js +2 -1
- package/src/js/lib/loader.js +2 -2
package/package.json
CHANGED
package/src/js/config/main.js
CHANGED
|
@@ -5,7 +5,8 @@ let ConfigMain = {
|
|
|
5
5
|
defaultLogLevel: 'ERROR,WARNING,INFO,LOG', //setup custom log level with: ?logLevel=1,2,3,4 OR ?logLevel=ERROR,WARNING,INFO,LOG
|
|
6
6
|
extendingChain: ['Urso.Core'], //chain that will be set as Urso.Game
|
|
7
7
|
defaultScene: 'play', //default scene to display
|
|
8
|
-
|
|
8
|
+
gamePath: '', //use assets from some gamePath directory, not from page was loaded
|
|
9
|
+
useBinPath: false, // use assets from bin directory,
|
|
9
10
|
useTransport: false, // use transport module for connetcting with server
|
|
10
11
|
fps: {
|
|
11
12
|
limit: 60, //max fps limit
|
package/src/js/lib/loader.js
CHANGED
|
@@ -28,7 +28,7 @@ class LibLoader {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
if (!Urso.config.useBinPath) {
|
|
31
|
-
return
|
|
31
|
+
return `${Urso.config.gamePath}assets/${path}`;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
const quality = Urso.getInstance('Modules.Assets.Service').getQuality();
|
|
@@ -38,7 +38,7 @@ class LibLoader {
|
|
|
38
38
|
splitted.splice(1, 0, quality);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
return
|
|
41
|
+
return `${Urso.config.gamePath}/bin/${splitted.join('/')}`;
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
/**
|