Skip to content

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 .yyp and .yy files, the .gitignore and .gitattributes files 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-1 Keep every project in source control from the first day, and keep the .gitignore and .gitattributes files 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_order file and force LF line endings for project metadata, so that merges work across Windows, macOS and Linux. This is how GameMaker projects apply GAMEDEV-22; choosing Git LFS or Perforce for large assets is GAMEDEV-15. (GameMaker, Setting Up And Using Source Control, GameMaker Manual, Project Format, Plugin Preferences)
  • 7 GAMEMAKER-STRUCT-2 Save 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 .yyp file under the open IDE, and Save writes the IDE's copy over them. Change .yy and .yyp files through the IDE or gm-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

Versions and builds

Sharing code

  • 4 GAMEMAKER-STRUCT-7 Share 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 GM2017 message 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 checks GAMEMAKER-STRUCT-3.
  • 6 gm-cli compile workflow: the GitHub Actions workflow that gm-cli init generates test-compiles the game on every pull request and every push to main. Partly checks GAMEMAKER-STRUCT-5.