GameMaker: project structure¶
Version control, asset naming and the Asset Browser, release channels and versions, configurations, command-line builds, and sharing code between projects. Version control for large binary assets in any engine is in Game development, and keeping secrets out of repositories is in Security.
Entries are sorted by score from 1 to 10 (criteria): 9โ10 start here or strongly recommended, 6โ8 recommended, 1โ5 further reading or conditional.
Adopted references¶
- 7 Project Format and Source Control (GameMaker Manual): the
.yypand.yyfiles, the.gitignoreand.gitattributesfiles GameMaker adds, and the built-in Git plugin. - 7 Setting Up And Using Source Control (GameMaker Help Centre): using Git with the plugin or an external client, committing, pulling and resolving conflicts.
- 7 Building & Testing via Command Line (GameMaker Manual): building, running and testing projects with Igor, licences and access keys, and setting up continuous integration.
- 6 GameMaker CLI (YoYo Games):
gm-cli, the official command-line tool that downloads the runtime, compiles, runs and packages projects, and can generate a GitHub Actions workflow.
Key rules¶
Version control¶
- 9
GAMEMAKER-STRUCT-1Keep every project in source control from the first day, and keep the.gitignoreand.gitattributesfiles that GameMaker adds to new and imported projects. YoYo Games strongly recommends source control for every project. The default files ignore the user-specific.resource_orderfile and force LF line endings for project metadata, so that merges work across Windows, macOS and Linux. This is how GameMaker projects applyGAMEDEV-22; choosing Git LFS or Perforce for large assets isGAMEDEV-15. (GameMaker, Setting Up And Using Source Control, GameMaker Manual, Project Format, Plugin Preferences) - 7
GAMEMAKER-STRUCT-2Save and close the project in GameMaker before you pull, merge, switch branches or revert with an external Git client, and if GameMaker reports changed files while the project is open, choose Reload, not Save. External Git operations can change the main.yypfile under the open IDE, and Save writes the IDE's copy over them. Change.yyand.yypfiles through the IDE orgm-cli resourcetool, not by hand: YoYo Games' own guidance for AI agents calls them very hard to edit correctly. (GameMaker, Setting Up And Using Source Control, GameMaker Manual, The File Watcher, Conflicts, YoYo Games, gm-cli agent guidance)
Assets and naming¶
- 6
GAMEMAKER-STRUCT-3Name every asset with a prefix for its type, such asspr_,obj_,snd_andts_, agree on one way to group the Asset Browser, by asset type or by level, and set matching Feather naming rules. An asset's name is the identifier your code uses for it, and may contain only letters, digits and underscores. Feather checks names against the naming rules once you turn on itsGM2017message, which is off by default. (GameMaker Manual, Creating Sprites, Objects And Instances, The Asset Browser, Feather Preferences: naming rules, YoYo Games, gm-cli agent guidance)
Versions and builds¶
- 7
GAMEMAKER-STRUCT-4Develop on the LTS release, use one IDE and runtime version across the team and the build machines, and upgrade everyone together, after committing, when you choose to. Opening a project in a newer release can raise its project format, after which older versions open it only read-only, and the change can't be reverted. Beta releases can corrupt or lock project files, and YoYo Games asks you to back up or commit before bringing a project into a new LTS release. (GameMaker, What To Do If GameMaker Says Your Project Is Read-Only, Download GameMaker, GameMaker LTS 2026.0, GameMaker Manual, Installation Guide, Runtime Feeds Preferences) - 6
GAMEMAKER-STRUCT-5Compile every pull request in CI, withgm-cli compileor with Igor on your own build machine, and pin both thegm-cliversion and the runtime version, whichgm-options.jsonrecords in itstoolchainfield.gm-cli initcan generate the GitHub Actions workflow; keep the GameMaker access key it uses in a CI secret (SEC-2). Without a pinned runtime,gm-clidownloads the newest one: its 2.0 release moved every unpinned project to LTS 2026. (YoYo Games, gm-cli README, gm-cli compile workflow template, gm-cli changelog, GameMaker Manual, Building & Testing via Command Line) - 5
GAMEMAKER-STRUCT-6Use configurations for what differs between builds of the same game, such as platforms, stores or a demo, and select the configuration in every build. Each configuration can have its own game options, texture and audio group exports, included files and macro values; Igor takes it as/configandgm-clias--config. (GameMaker Manual, Configurations, Constants: configuration override, Building & Testing via Command Line, gm-cli changelog)
Sharing code¶
- 4
GAMEMAKER-STRUCT-7Share scripts and assets that several projects use as a Local Asset Package (.yymps) with a Package ID and version number, and update a project by importing the new version. Importing copies the assets into the project. The Prefab Library, which references assets from a collection instead, currently offers only YoYo Games' asset bundles; a Prefab Builder for your own collections is on the LTS 2026 roadmap. (GameMaker Manual, Local Asset Packages, Prefab Library, GameMaker Update Spring 2026)
How to enforce¶
Tools that check the key rules above automatically, in CI, the IDE or a commit hook. "Partly" means the tool covers only some of what the rule asks.
- 7 Feather naming rules: with the
GM2017message turned on, Feather flags asset, variable, function, macro and enum names that break the naming style, prefix or suffix you set, and new assets get names that follow the rules. Partly checksGAMEMAKER-STRUCT-3. - 6 gm-cli compile workflow: the GitHub Actions workflow that
gm-cli initgenerates test-compiles the game on every pull request and every push tomain. Partly checksGAMEMAKER-STRUCT-5.