@@ -620,7 +620,29 @@ Naming conventions
620620
621621These naming conventions follow the Godot Engine style. Breaking these will make
622622your code clash with the built-in naming conventions, leading to inconsistent
623- code.
623+ code. As a summary table:
624+
625+ +---------------+----------------+----------------------------------------------------+
626+ | Type | Convention | Example |
627+ +===============+================+====================================================+
628+ | File names | snake_case | ``yaml_parser.gd `` |
629+ +---------------+----------------+----------------------------------------------------+
630+ | Class names | PascalCase | ``class_name YAMLParser `` |
631+ +---------------+----------------+----------------------------------------------------+
632+ | Node names | PascalCase | ``Camera3D ``, ``Player `` |
633+ +---------------+----------------+----------------------------------------------------+
634+ | Functions | snake_case | ``func load_level(): `` |
635+ +---------------+----------------+----------------------------------------------------+
636+ | Variables | snake_case | ``var particle_effect `` |
637+ +---------------+----------------+----------------------------------------------------+
638+ | Signals | snake_case | ``signal door_opened `` |
639+ +---------------+----------------+----------------------------------------------------+
640+ | Constants | CONSTANT_CASE | ``const MAX_SPEED = 200 `` |
641+ +---------------+----------------+----------------------------------------------------+
642+ | Enum names | PascalCase | ``enum Element `` |
643+ +---------------+----------------+----------------------------------------------------+
644+ | Enum members | CONSTANT_CASE | ``{EARTH, WATER, AIR, FIRE} `` |
645+ +---------------+----------------+----------------------------------------------------+
624646
625647File names
626648~~~~~~~~~~
0 commit comments