For those who don’t know where to find it or what it is: http://cocos2d-x.org/projects/cocos2d-x/wiki/Cocos2d\_c**\_coding\_styleThis Style Guide seems based on Google’s C** one: http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml
As our’s is still work in progress I’d like to add some comments
Variable-Names 99% of the variables of the framework are not OK if we need to follow this. I’d take something on mid terms, like
const char* m_exampleVariableName instead of
const char *m_pszExampleVariableName. (What does sz means? String Zero?)
Class-FormatThe proposed spacing is going to be a PITA in a lot of IDE’s and editors. Even the web’s code syntax highlight isn’t handling well, check Google’s oneto see how it looks like (it looks awful to me ). I’d put zero spaces on
private: and 4 spaces on the rest, like Xcode, Visual Studio and Eclipse do.