Meet SwiftGodot

    SwiftGodot allows developers to take new and existing Swift packages and use them as extensions for the Godot game engine.

    SwiftGodot Tutorials.tutorial
    A MacBook Pro with Xcode and Godot 4 editor.

    SwiftGodot Essentials

    Learn the fundamentals of the SwiftGodot package and create an infinite runner game using Swift and Godot.

    Write node scripts using Swift, integrate dynamic libraries with Godot using GDExtension, and use custom nodes in the editor.

    A pixel art sprite of a person wearing a bird costume similar to the Swift logo.
    • Your First Extension

      This tutorial will guide you through making your first Godot extension to create a player character. You’ll start by building off the Simple Runner game project and create a player character to move the character along the horizontal axis.

      Read More
    • Writing Multiple Scripts

      This tutorial builds off the Simple Runner game introduced in Your First Extension and will introduce you to working with multiple scripts and interacting with Godot’s existing signals to teleport the player, creating an infinite runner.

      Read More

    Embedding Godot in Swift

    If rather than embedding Swift into Godot, you want to embed Godot into your Swift application or, if you prefer to prototype your code with a code-first approach, you can use the companion SwiftGodotKit.

    A pixel art sprite of a person wearing a bird costume similar to the Swift logo.
    • Using SwiftGodotKit

      SwiftGodotKit lets you drive Godot entirely from Swift, and treat Godot as just another Swift framework you can call into.

      Read More

    See also