Castle Project File Reference
A Castle project file (for example, my-project.castle
) is text file with a special format that you can write to describe your game. To learn more about Castle project files, why they are useful, and how to add one to your game, check out the full guide: Describe your game with a Castle project file
Castle project files have the file extension .castle
and are written in YAML
List of .castle keys
This section provides a reference of all possible keys you can add to a Castle project file. The only required key is main.
- main: Relative path to a the lua entry point file that Castle should use to load this game. For example, main.lua.
- title: The title of this game.
- description: A brief description of this game.
- owner: The Castle username of the owner of this game. Required in order to add this game to a Castle profile.
- coverImage: A url or relative path to an image containing some artwork for this game. Castle will use this image when showing a preview of this game on profiles, in search results, and elsewhere.
- primaryColor: A hex string (without the `#`) for a color that represents this game. For example, C0C0C0. Castle may use this when rendering previews of the game.
- unlisted: A boolean. If true, Castle will not show this game in Search results, even if you added it to your profile. Default is false.
These keys are deprecated, but you might see them in older Castle project files. It is not recommended to add these to your game, because they might stop being supported.
- name: Alias for title
- username: Alias for owner.
- coverImageUrl: Alias for coverImage.
Example projects with project files
Here are some working examples of Castle games and their respective .castle files.