Godot 代码风格指南


GDScript style guide — Godot Engine (stable) documentation in English

建议代码顺序

01. tool
02. class_name
03. extends

04. # docstring

05. signals
06. enums
07. constants
08. exported variables
09. public variables
10. private variables
11. onready variables

12. optional built-in virtual _init method 
13. built-in virtual _ready method 
14. remaining built-in virtual methods 
15. public methods 
16. private methods

文件命名

Comments

Popular posts from this blog

活在当下-从尾巴摇狗的荒谬中解放自我

Metroidvania银河恶魔城游戏开发指南(一)

折衷主义建筑