Springroll Code Styleguide
yanshcherbakovatredspace edited this page Oct 11, 2016
·
1 revision
Springroll's code style follows minimal conventions so that it is flexible to suit most developers' coding styles. However the following code conventions should be followed when contributing to the Springroll library:
- Curly braces should be on their own lines
- Limit lines to 100 characters
- Use hard tab indentation
- Private variables should have a leading underscore
- Use camel case for all variables and function names
- Use pascal case for classes
- Use all caps for constants
- Core Module (required)
- Container Client Module
- Captions Module
- Debug Module
- EaselJS Animation Module
- EaselJS Cutscene Module
- EaselJS Display Module
- EaselJS Learning Module
- EaselJS States Module
- EaselJS UI Module
- Hints Module
- Languages Module
- Learning Module
- Learning Media Module
- Native Display Module
- Pixi.js Animation Module
- Pixi.js Display Module
- Pixi.js Spine Module
- Pixi.js UI Module
- Sound Module
- States Module
- UI Module