Godot游戏引擎在国外与unity,Unreal几乎并列。而且完全开源,没有license fee。
个人最关注其editor自身也是使用引擎的ui 编写(可以看作引擎的一个开源应用),本身也完全开源(cocos creator 的editor代码不开源)。
初步浏览了开源游戏引擎godot,准备对其源码进行深入学习。
下面首先从其官方文档中提取了代码架构及主要代码的类继承图,方便对引擎代码的整体了解。
Godot Architecture diagram(Godot架构图)
The following diagram describes the architecture used by Godot, from the core components down to the abstracted drivers, via the scene structure and the servers.
源码顶级目录 (tree -d -L 1)
├── core (1)
├── doc
├── drivers (4)
├── editor
├── main
├── misc
├── modules
├── platform
├── scene (2)
├── servers (3)
└── thirdparty
Object
Reference
Control
Node2D
Spatial