ScriptsApr 12, 2026·1 min read

Godot Engine — Multi-Platform 2D and 3D Game Engine

Godot is a free and open-source 2D and 3D game engine with a fully integrated editor, GDScript scripting language, C# support, visual scripting, and export to all major platforms. The community-driven alternative to Unity and Unreal.

SC
Script Depot · Community
Quick Use

Use it first, then decide how deep to go

This block should tell both the user and the agent what to copy, install, and apply first.

Download from https://godotengine.org/download or:

brew install --cask godot                   # macOS
scoop install godot                         # Windows
flatpak install flathub org.godotengine.Godot  # Linux

GDScript example (attached to a node):

extends CharacterBody2D

const SPEED = 300.0
const JUMP_VELOCITY = -400.0

func _physics_process(delta: float) -> void:
    if not is_on_floor():
        velocity += get_gravity() * delta

    if Input.is_action_just_pressed("jump") and is_on_floor():
        velocity.y = JUMP_VELOCITY

    var direction := Input.get_axis("move_left", "move_right")
    velocity.x = direction * SPEED if direction else move_toward(velocity.x, 0, SPEED)

    move_and_slide()

Export:

  • File -> Export -> Add preset (Android, iOS, Web, Windows, macOS, Linux)
  • One-click build for all platforms
Intro

Godot is a free and open-source game engine under the MIT license, developed by Juan Linietsky and Ariel Manzur since 2001, open-sourced in 2014. Godot 4.x brought a new Vulkan renderer, GDScript 2.0, improved 3D physics, and a modernized editor. After the Unity pricing controversy in 2023, Godot saw massive adoption growth and is now the go-to open-source alternative.

What Godot Does

  • 2D engine — sprites, tilemaps, physics, particles, animation
  • 3D engine — PBR rendering, GI, CSG, GridMap, animation trees
  • GDScript — Python-like language designed for games
  • C# support — Mono/.NET runtime
  • Visual scripting — node-based (3.x, deprecated in 4.x)
  • Scene system — composable, reusable scenes as nodes
  • Physics — built-in 2D and 3D physics engines
  • Networking — multiplayer API, ENet, WebSocket
  • Export — Windows, macOS, Linux, Android, iOS, Web (HTML5)
  • Editor — fully integrated, runs on all platforms

Architecture

Scene tree: everything is a node. Nodes compose scenes, scenes compose other scenes. Root node types: Node2D, Node3D, Control (UI). Signals connect events between nodes. Main loop drives _process() and _physics_process() callbacks.

Self-Hosting

Editor is a single self-contained binary. Export templates for each platform are downloadable from the editor.

Key Features

  • Fully open source (MIT)
  • No royalties, no strings
  • 2D and 3D in one editor
  • GDScript + C# + GDExtension (C++, Rust)
  • Scene/node composition
  • Built-in animation system
  • Export to 7+ platforms
  • Vulkan + OpenGL renderers
  • Lightweight editor (<100MB)
  • Active community and asset library

Comparison

Engine License 2D 3D Scripting
Godot MIT (free) Excellent Good GDScript, C#
Unity Proprietary Good Excellent C#
Unreal Royalty Fair Best C++, Blueprints
Phaser MIT Excellent No JS
Bevy Apache 2.0 Good Growing Rust

常见问题 FAQ

Q: 3D 能和 Unity 比吗? A: Godot 4 的 3D 已经大幅进步(Vulkan、GI、GPU 粒子),但 AAA 级渲染和工具链还有差距。独立游戏和中等规模 3D 完全够用。

Q: 为什么不用 C#? A: GDScript 更轻量、和编辑器集成更深、热重载更快。C# 适合已有 .NET 经验的团队。两者可以混用。

Q: 商用免费吗? A: 完全免费。MIT 许可证无任何限制、无 royalty、无 splash screen 要求。

来源与致谢 Sources

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets