Files
tldr/pages.zh/common/godot.md

24 lines
622 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Godot
> 一个开源的2D和3D游戏引擎。
> 更多信息:<https://godotengine.org/>
- 如果当前目录包含 `project.godot` 文件,则运行项目;否则打开项目管理器:
`godot`
- 编辑项目(当前目录必须包含 `project.godot` 文件):
`godot -e`
- 即使当前目录包含 `project.godot` 文件,也打开项目管理器:
`godot -p`
- 为给定的导出预设导出项目(预设必须在项目中定义):
`godot --export {{preset}} {{output_path}}`
- 执行独立的 GDScript 文件(脚本必须继承自 `SceneTree``MainLoop`
`godot -s {{script.gd}}`