Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Keeping your work safe

The Source Control tab, beside Files, keeps the history of your project with git: every version you choose to keep, with what changed and why, so you can always go back. The number on the tab says how many files have changed since the last version you kept.

Getting started

On your computer, the IDE uses the git on your computer. If the project isn’t kept with git yet, the tab says so, with Make it a repository. To connect it to somewhere online, like GitHub, add a remote with git itself, in the Terminal.

In a browser, the IDE talks to GitHub. Click Sign in with GitHub, and it shows a code. Click Open GitHub’s page, type the code in there, and you’re signed in. Then make a New repository for the project, or pick one you already have. The project goes in the repository’s src folder.

Keeping a version

The tab lists what’s changed under Changes:

  • + stages a file: it’ll be part of the next version,
  • − unstages it again,
  • × throws its changes away (carefully!).

Write what this version does in the message box, like “the hero can jump”, and click Commit (or Commit all, to keep everything that changed). History lists every version kept, and clicking a file shows what changed in it.

Online

Push sends your new versions to GitHub (the first time, it’s Publish), and Pull brings in what’s there, from another computer or someone you’re making the game with. Fetch looks without bringing anything in.

Branches

The branch menu, with the branch’s name, has New branch… for trying something out without touching the game that works. If you like it, Merge into this one brings it back into the branch you’re on. When two changes clash, they’re listed under Conflicts for you to choose, and Abort merge puts things back as they were.

Crash-tan’s Tip: Commit whenever something works. Then however badly the next idea goes, the last working game is one click away.