Hi,
Some time ago I’ve posted a few tips & tricks when dealing with Corona SDK, and finally I got my hands on posting another portion of useful things in there! Below you can read about code style, saving persistent data, and getting community help.
Code style and work environment
- Keep all in module manageable functions
- Use camel-case style for functions and variables
- Keep in mind 200 max variables limit per module
- Always add one blank line to separate nested blocks, for example before the if block above (more than one line is unnecessary)
- Keep game settings as a separate class, so it’s not mixed with screen’s lifecycles
- Sublime 3 Beta is recommended for the development and for Sublime Corona plugin
Further info
Best Practices for Organizing Projects
Tutorial: The value of well-formatted code
Continue reading Best Practices in Corona SDK