-
Notifications
You must be signed in to change notification settings - Fork 0
Coding Standards
Theo Ruefli edited this page May 21, 2026
·
41 revisions
No numbers in names except for files!!!
Variables:
- camelCase
var exampleVariableConstants:
- ALL_CAPS
const EXAMPLE_CONSTANTEnums:
- Names: PascalCase
- Members: ALL_CAPS
enum ExampleEnum {
WALKING,
IDLE,
JUMPING
}Functions:
- snake_case
func example_function_name():Classes:
- PascalCase
class BaseEnemyClassFiles/Scenes/Scripts:
- PascalCase
res://LevelFolder
TutorialLevel.tscn
PlayerScript.gd
Always include a single space between the start of a comment and the first word, additionally always capitalise the first letter.
Functions:
- 2 Hashtags
- Summary of the functions
- Descriptions of the fields
- Return value
- Comments in code blocks where necessary describing complex sections
- Include any references/resources used
## Adds two numbers together
## x: First number
## y: Second number
## Returns the sum of both numbers
## https://stackoverflow.com/questions
func add_nums(x: int, y: int) -> int:
# Adds both numbers together
return x + yResources
Known Issues
Future Work
Globals
Managers
- Main Menu Manager
- Master Manager
- Camera Manager
- Hotkey Manager
- Import Export Manager
- Audio Manager
- Animation Manager
- PopUp Manager
UI
Managers
- Editor Manager
- Tile Manager
- Entity Manager
- Icon Manager
- Preview Manager
- Tool Manager
- Asset Manager
- Custom Cursor Manager
Tiles & Entities
- Grid Lines
- Preview Line
- Tiles & Entities
- Enemies
- Patrolling Enemy
- Flying Enemy
- Shooting Enemy
- Stationary Enemy
- Moving Platform
- Property Editing
Asset Swapping
UI
Managers
Player