Merge remote-tracking branch 'origin/Conventions' into Conventions
This commit is contained in:
commit
ddc7f0f55d
1 changed files with 1 additions and 0 deletions
|
@ -9,6 +9,7 @@ Here is a list with some code conventions used by raylib in python:
|
|||
| Global variables | lowerCase | `windowReady = False` |
|
||||
| Constants variables | lowerCase | `maxValue = 8` |
|
||||
| Constants values | ALL_CAPS | `MAX_BUILDINGS = 5` |
|
||||
| string values | always "" | `output = "Hello"`, `"welcome"` |
|
||||
| float values | always x.x | `gravity = 10.0` |
|
||||
| Operators | value1 * value2 | `product = value * 6` |
|
||||
| Operators | value1 / value2 | `division = value / 4` |
|
||||
|
|
Reference in a new issue