Is c2runtime.js is different for each project?

0 favourites
  • 4 posts
From the Asset Store
Adjusting the game screen for different resolutions (Letterbox scale)
  • Hi,

    Can anybody please clarify that is c2runtime.js is same or different for each project.

    The idea is that if c2runtime is same for all project, then we can put it into a common folder and all project take this js from that folder.

    This is to reduce the size of the project.

    Also which files are common in any exported html5 project (like jquery-2.1.1.min)?

    Thanks

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • size doesn't really matter (except for the apk size, but nothing else).

    it's not the same for each project, but it can be.

    why? when you add to an object for example - behaviour "bullet" and "turret" - you get 20 lines of code in c2runtime, 10lines for each.

    in other project you have bullet and no turret behaviours - you are spared 10 lines of code.

    therefore you save.. well.. big massive max 1KB

  • It's different for every project, because only the plugins, behaviors and effects that your project actually uses are compiled in. This means it can be a pretty small script for small projects.

  • Thank you for your reply. My follow-up question is that if let say 10 projects are using the same number of plugins, behaviours and effects; shouldn't be a good idea that they are compiled separately as a common file and a separate additional file for non-common objects (objects that changes per task).

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)