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

Hello, IDE!

Hi again! I’m Crash-tan. In the other books I showed you how to make games by writing them. This one is about the place you write them in: the Crash IDE.

The IDE is everything for making a game in one window. You write your code in it, run it, and stop it to see what’s going wrong. It also has editors for the rest of a game: pictures and sprites, tiles, maps, scenes, instruments and songs. And when the game’s done, it builds it for players to play.

Two places, one IDE

The IDE runs on your computer and in a web browser. It’s the same IDE in both, with the same buttons in the same places, so everything in this book works in either one. Where they’re different, I’ll say so.

On your computer, the IDE comes with CrashPlayer. Start CrashPlayer and click Open IDE at the top right of the launcher, or start it from a terminal with the game’s folder:

crashplayer --ide my_game

Without a folder, it asks you which one to open first. Your game runs in a window of its own beside the IDE.

In a browser, open the IDE’s page and it loads right there, with nothing to install. Your projects are kept in the browser, and your game runs in a panel at the top right of the page. Drag the panel’s bottom-left corner to make it bigger.

Crash-tan’s Tip: A browser keeps a project’s files for you, but a browser’s storage can be cleared. Connect the project to a folder on your computer, or to GitHub, and it’s safe. Projects and files and Keeping your work safe show you how.

Around the window

The IDE in a browser: the files on the left, the code in the middle, and the game running at the top right.

  • The toolbar along the top: your project’s name, Save, the Project menu, and the buttons that run your game (Run, Restart, Stop, Push). Then Help and the Interactive Reference Guide, which opens this library. At the far right is the version (click it to read what’s new), the Theme menu, and a dot that says whether your game is running, paused, stopped or ended.
  • The file list on the left, with its Files and Source Control tabs.
  • The editor in the middle. Each file you open gets a tab, and a dot before a tab’s name (• main.crash) means it has changes you haven’t saved yet.
  • The bottom panel: Console, Problems, Debug, and on your computer Terminal.
  • The help panel on the right, when you press F1.

Panels can be resized by dragging their edges, and the IDE remembers how you left each project: which files were open, where the cursor was, and your breakpoints. That’s kept in a file called .crashide in the project.

The look

The Theme menu at the right end of the toolbar picks the IDE’s colors: Monaco Dark, Crash-tan (mine!), Dr. Brane, Victor Hardline and One Dark. Your theme is yours, not the project’s, so it stays the same whichever project you open.

Let’s make something!