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

Building and sharing

A game is for playing, and the IDE can hand yours over in several ways:

  • as a cart, one file that CrashPlayer plays,
  • on the Crash BASIC Arcade, for anyone to play in a browser,
  • as a game of its own for Windows, macOS or Linux, which people double-click with nothing else installed,
  • as an app for iPhone, iPad, Apple TV or Android, to put in the stores,
  • as a web page, for itch.io or your own website.

This chapter is the part they all share: your game’s details, its icon, a cart, the Build window and the Arcade. The three chapters after it take computers, phones and the web in turn.

Your game’s details

Project info… in the Project menu is where your game says what it is: its Game name, its Game id (the one name that’s its own, everywhere), its Version, who made it, a Description, and how it starts: Orientation on a phone or tablet (Landscape, Portrait, or All), its Window size, and whether it starts fullscreen. It’s kept in the project as .crashbasic.json.

Two more matter once you build:

  • Bundle id is your game’s name to Apple and Google, written backwards like a web address: com.yourstudio.yourgame. iOS, tvOS and Android builds need one, and once your game is in a store it can never change, so choose it carefully.
  • Game secret seals your game. Every build of your game is sealed with a secret, so its files can’t be taken out and used in someone else’s. Leave it empty and each build gets a new one, or Generate one for the project to keep. (Why you might want to keep one is in the next chapters.)

The file also remembers which version of Crash BASIC your code was written for, and a cart made from the project carries that too. When Crash BASIC changes a word, an older game still plays as it was written, and when you open an older project I bring its code up to date for you. I say in the console what I changed. A project that doesn’t say which version it was written for is taken to be older than this one.

Its icon

Put a square picture called icon.png in the project’s top folder, and every build uses it: the program’s icon on Windows and macOS, and the app icon on phones, tablets and Apple TV. Make it big, 1024 by 1024 pixels, and the build makes every smaller size from it.

A cart

A .crashcart is your whole game in one file: the code and everything it loads. CrashPlayer plays one, on a computer or a phone.

  • Export .crashcart… makes one of the project.
  • Import .crashcart… opens one, into a new project or over this one.

A cart is also how you move a project from one place to another, from a browser to your computer and back.

The Build window

On your computer, Build… in the Project menu makes your game into something to give people.

Tick the Platforms you want:

Into is the folder it all goes in: a folder named after your game in your Downloads, unless you Choose… another. Under the ticks, the window shows what it took from Project info, and in red anything that stops it building yet, like a missing bundle id.

Click Build. The build fetches what it needs from the internet the first time (a player for each platform, and the app templates) and keeps it for next time. What you install first, and what it installs for you, is in What you need to build. Each platform says what it’s doing as it goes, and when they’re all done there’s a ✔ for each, with where it went. Show in folder opens the folder.

Two more ticks, which you’ll rarely need:

  • Use this player for this computer’s platform builds your computer’s own platform from the CrashPlayer you’re running now, instead of one it downloads.
  • Download players and templates again forgets what it fetched before and fetches it all again, if something seems out of date.

In a browser, there’s no Build window: the browser can only make the web version, so the Project menu has Export for the web (itch.io)… instead.

The Crash BASIC Arcade

Crash BASIC Arcade… in the Project menu puts your game on the Arcade, for everyone to play. Sign in with Discord or with your email (it opens your browser to do it), then Upload this project… with a title and a description. Your games lists what you’ve put there, to open, update or manage.

Crash-tan’s Tip: Tick Stamp my licence into what I export and everything you export, upload or build carries your Crash licence, which says what your game may do (selling it, say).