Game SDK quickstart
Build a C++ gameplay module, see it run in Crescent Player, and package the first macOS app from the downloadable SDK.
Install and extract
Use macOS 26.1 or newer on Apple silicon, Python 3.10+, CMake 3.24+, and Xcode Command Line Tools. Download Game SDK + Player. The commands below assume the extracted CrescentSDK folder is in Downloads.
How the game pieces fit together
- Editor
- Use World to author scenes and assets, Source to work on C++ project files, and Build & Bake to assemble the app.
- Game SDK
- Use the public headers, CMake targets and CLI to generate a project, compile its gameplay module and package it from a terminal.
- Player
- Runs a project with its compiled gameplay. A packaged app includes the Player runtime plus the selected scenes, cooked assets and compiled modules.
Use the bundled Player to run the starter below. The SDK package contains the tools and headers for this workflow. To author a scene or bake lighting visually, open the same project in the Editor.
Create and build a project
sdk="$HOME/Downloads/CrescentSDK"
project="$HOME/Projects/CrescentQuickstart"
python3 "$sdk/tools/crescent.py" new-project "$project" --id CrescentQuickstart
python3 "$sdk/tools/crescent.py" build "$project" --configuration Release
A successful build writes the game module under Binaries/macOS/Modules/. The starter scene has a camera and a cube whose C++ behavior is registered in Source/GameLogic/Module.cpp.
Run in Crescent Player
open -n "$sdk/Runtime/CrescentPlayer.app" --args --project "$project/Project.cproj"
Look for the starter cube rotating. For a project with gameplay, the Player resolves the published module build from the project.
Change gameplay
Open Source/GameLogic/Gameplay/ShowcaseMotion.cpp. The generated component reads its entity's local transform, adds degreesPerSecond * dt to the Y rotation, then writes back the transform. To make a visible code change, multiply that increment by 2.0f, rebuild the module, and reopen the project in Player.
To tune a single scene instance, select the cube in World and change the registered Rotation speed field in its component Inspector. Save the scene. The authored value takes precedence over the C++ default for existing components.
- Module.cpp
- Registers gameplay component descriptors. A module is a compiled
.dylibthat Player can load for the project. - Public SDK headers
- Give gameplay code typed handles to engine services. Use
include/Crescent/Game.hppas the C++ entry point. - Persistent component and field IDs
- Connect scene data to the registered component. Keep IDs stable when renaming C++ members. Use a schema migration for serialized changes.
- Project data
Project.cprojselects build scenes and modules. Authorable content lives in Assets, Scenes and Settings. Build intermediates live under Library.
To add a new behavior, add its source to the game's CMake target, register the descriptor in the module and attach the component to an entity in World. See the complete registration example and the engine execution phases.
Package the app
python3 "$sdk/tools/crescent.py" package "$project" \
--configuration Release --output "$HOME/Builds"
Open the .app in the output path printed by the CLI and verify it opens independently. This example uses the starter scene; for a scene that uses baked lighting, keep the saved bake with its scene when packaging. The packager includes the saved Cycles lightmaps and probes so Player can load them at startup.
Troubleshoot builds
- The module builds but behavior stays the same
- Reopen Play or the Player after rebuilding. Check the module manifest under
Library/GameModules/and confirm that your entity uses the registered component. - Player opens a blank scene
- Check the startup scene and active camera. Open
Project.cprojwhen testing a source project and launch the packaged.appwhen testing a delivery build. - The game opens locally and a downloaded copy is blocked
- Check the application signature and distribution requirements. The downloadable previews have no Apple notarization.
- Audio is silent
- The current public preview packages have audio playback disabled. See the audio backend notes for the engine contract.