Jump to content

Additional config file?


Recommended Posts

I guess I could simply create a subsystem.config.js and load it up as a <script> in my index.html though this sounds a bit off. Though I guess it could work if I would just add : pandaConfig.subsystem = {};. Isn't there a more logical way of adding additional config files? I would preferably load up other js files with only a object with config values with addAsset() or something like that, this prevents the need to load up config files that might not be needed in the first place and could be loaded when needed. 

Link to comment
Share on other sites

Well, config might not be exactly the right term for this issue. I would like to add additional data files. For example, I've got a application which consists of a few different elements:


- Main menu

- - Game

- - Information about project

- - Trailer

- - A map of the project


I won't go into details about what these consist of, but the most important part is that the Game scene uses a lot of other assets then the rest of the scenes. What I'd also like to add as asset is a JSON file with the information about the level composition. This is something I would not like to include in the global config.js but I do like to add that as a separate pure JSON file for readability for my colleagues. 


Does that make any sense?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...