Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

Godot 简介

本文可帮助你了解 Godot 是否适合你。我们将介绍该引擎的一些广泛的功能,让你感受到它能实现什么,并回答“入门需要知道什么?”等问题。

这绝不是一个详尽的概述。我们将在这个入门系列中介绍更多的功能。

Godot 是什么?

Godot 是一个通用的 2D 和 3D 游戏引擎,旨在支持各种项目。你可以用它来创建游戏或应用程序,然后在桌面、手机以及 Web 平台上发布。

你也可以用它来创建主机平台的游戏,尽管你需要很强的编程技能,或者需要一个开发者为你移植游戏。

备注

The Godot team can't provide an open source console export due to the licensing terms imposed by console manufacturers. Regardless of the engine you use, though, releasing games on consoles is always a lot of work. You can read more on that here: Godot 的游戏主机支持.

这个引擎能干什么?

Godot was initially developed in-house by an Argentinian game studio. Its development started in 2001, and the engine was rewritten and improved tremendously since its open source release in 2014.

使用 Godot 创建的游戏的一些例子包括《Ex-Zodiac》和《Helms of Fury》。

../../_images/introduction_ex_zodiac.png ../../_images/introduction_helms_of_fury.jpg

As for applications, the open source pixel art drawing program Pixelorama is powered by Godot, and so is the voxel RPG creator RPG in a box.

../../_images/introduction_rpg_in_a_box.png

您可以在官方展示视频中找到更多示例。

它的工作原理是怎样的,看起来又是怎样的?

Godot 配备了成熟的游戏编辑器,其集成工具可以满足最常见的需求。它包括代码编辑器、动画编辑器、图块地图编辑器、着色器编辑器、调试器、性能分析器等等。

../../_images/introduction_editor.webp

开发团队致力于提供功能丰富的游戏编辑器,并提供一致的用户体验。虽然总是有改进的余地,但用户界面不断得到完善。

当然,如果你愿意,你可以用外部程序工作。我们官方支持导入在 Blender 中设计的3D场景,并维护在 VSCodeEmacs 中编写 GDScript 和 C# 的插件。我们还支持 Windows 上的 Visual Studio for C#。

../../_images/introduction_vscode.png

编程语言

我们来看看现有的编程语言。

您可以使用 GDScript 编写游戏,它是一门专属于 Godot、紧密集成、语法轻量的语言,也可以使用 C#,在游戏工业中很流行。这两者是我们支持的主要脚本语言。

With the GDExtension technology, you can also write gameplay or high-performance algorithms in C or C++ without recompiling the engine. You can use this technology to integrate third-party libraries and other Software Development Kits (SDK) in the engine.

Of course, you can also directly add modules and features to the engine, as it's completely free and open source.

使用 Godot 我需要知道什么?

Godot 是一个功能丰富的游戏引擎。它有成千上万的功能,有很多东西需要学习。为了充分利用它,你需要良好的编程基础。虽然我们试图让引擎变得简单易懂,但如果你首先知道如何像程序员一样思考,你会受益匪浅的。

Godot relies on the object-oriented programming paradigm. Being comfortable with concepts such as classes and objects will help you code efficiently in it.

If you are entirely new to programming, we recommend following the CS50 open courseware from Harvard University. It's a great free course that will teach you everything you need to know to be off to a good start. It will save you countless hours and hurdles learning any game engine afterward.

备注

In CS50, you will learn multiple programming languages. Don't be afraid of that: programming languages have many similarities. The skills you learn with one language transfer well to others.

We will provide you with more Godot-specific learning resources in 学习新特性.

在下一部分中,您将大致了解引擎的基本概念。