cocos2d / cocos2d-js__old__

cocos2d in JavaScript central repository
14 stars 9 forks source link

Cocos2d-x - plist-file for initial configuration #6

Open vlidholt opened 11 years ago

vlidholt commented 11 years ago

The plist-file could be used to configure resource paths, resolutions, etc at startup time.

rohankuruvilla commented 11 years ago

This issue is related to https://github.com/cocos2d/cocos2d-js/issues/61

Will be implemented in the next release

ricardoquesada commented 11 years ago

More info:

The configuration file could be used not only for the player, but also for other components in cocos2d-x. It could be used to enable/disable features as well. Currently it is using a compile-time macro, but it could be useful to have certain features enabled/disabled in runtime.

cocos2d already has a CCConfiguration object, but doesn't support reading info from a file. So, instead of having 2 config objects, CCConfiguration should support parsing json files.

Format details are being discussed in issue #61

ricardoquesada commented 11 years ago

Support for CConfiguration is finished. It is working OK. cocos2d-frame is already using for some stuff. The scaling needs to be part of the config.plist file