获取源代码
下载 Godot 源代码
进入SCons 构建系统 并编译 Godot 之前, 你需要将 Godot 的源代码下载到本地.
GitHub 上, 虽然你可以通过网站手动下载它, 但是通常你希望通过 git 版本控制系统来下载.
拉动请求工作流 的说明.
git, 在各种网站上都有大量的 Git 教程 .
git 和/或其他带有 git 的图形界面客户端.
master 分支), 可以使用 git clone.
git 命令行, 可以通过在终端输入下列命令来完成:
git clone https://github.com/godotengine/godot.git# You can add the --depth 1 argument to omit the commit history.# Faster, but not all Git operations (like blame) will work.
源代码发布页面 然后单击所需发行版的链接. 然后, 你可以从页面上的下载链接下载并解压源代码.
git 时你还可以通过在 --branch (或者 -b )参数后指定分支或者标签,来克隆稳定版本:
# Clone the continuously maintained stable branch (`3.x` as of writing).git clone https://github.com/godotengine/godot.git -b 3.x# Clone the `3.2.3-stable` tag. This is a fixed revision that will never change.git clone https://github.com/godotengine/godot.git -b 3.2.3-stable
git 在各个主要版本的分支间进行切换.
编译 Godot 了.
