This repository has been archived by the owner on Aug 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 241
jsilConfig
kevingadd edited this page Sep 11, 2012
·
20 revisions
The JSIL script loader (contained in JSIL.js) is responsible for loading the scripts necessary to run a JSIL game or application. The script loader (and other parts of JSIL) read configuration settings from a global variable named jsilConfig.
The jsilConfig object is a JSON-style dictionary. The following keys can be provided:
Search Paths | |||
---|---|---|---|
Key | Type | Default Value | Description |
libraryRoot | String | "../Libraries/" | Where JSIL looks for libraries (like JSIL.Bootstrap). |
manifestRoot | String | "" | Where JSIL looks for manifests (like MyApp.manifest.js). |
scriptRoot | String | "" | Where JSIL looks for application scripts. |
fileRoot | String | "" | Where JSIL looks for raw files included with your application. |
assetRoot | String | "" | |
contentRoot | String | "Content/" | Where JSIL looks for XNA content (.xnb files and the like) |
fileVirtualRoot | String | fileRoot or "" | |
Optional Features | |||
Key | Type | Default Value | Description |
printStackTrace | Boolean | false | If true, printStackTrace.js will be loaded to provide more detailed stack traces for errors in your application. This can be useful for debugging but comes with a performance penalty. |
webgl2d | Boolean | false | If true, webgl-2d will be loaded and used if available to accelerate graphics rendering (instead of HTML5 Canvas). WebGL-2D provides superior performance for games that use lots of color multiplication. |