-
Use full function/variable names ie. "PlayerControls", not "PlrCon".
-
Use proper formatting, more about that in the later section.
-
Use comments whenever it’s necessary for understanding the code.
-
Each sub-module of the game, should have it’s source code stored in a separated file.
-
Any github commit should have a proper description, i.e. - “fix for a bug causing character to freeze when all arrows are pressed”.
-
???
-
PROFIT
Make spaces between the special characters (with an exceptions for parenthesis and semicolon), also when using block of code, place opening and closing brackets (“{“, “}”) in the separate lines, i.e.
for(int i = 0; i < 5; i++)
{
//some.code
}