Scratch for Java

Sharing your game

Your game is done, and others should play it. They do not need Studio or Java for that.

An app for your computer

In Studio, choose File → Export… → App folder (this computer). You get a folder with your game and the Java it needs. Copy the whole folder to a USB stick, or zip it and send it. To start the game, open the file with the game's name in it.

An app for another computer

File → Export… → App for another computer makes the same folder for Windows, macOS or Linux. The first time, Studio downloads Java for that system (about 50 MB).

Version and icon… in the same dialog sets the version number and the picture shown in the taskbar. The app's name is the project's name.

An exported game

  • shows its name and icon in the title bar and taskbar,
  • writes what it prints into a log file in the player's data folder (<game>/logs/latest.log),
  • shows a message with the log's place when it crashes, instead of just closing.

When a player tells you that the game crashed, ask for that log file.

A web page

File → Export… → Web page… makes a folder with your game as a web page, and a ZIP of it. Upload the ZIP to itch.io, or the folder to any website or GitHub Pages. Players start the game in their browser.

A web page has to come from a web server. Opening the file directly does not work. Open in browser in Studio starts one on your computer to try it.

Exported games can use actions and menus. Controllers work in browsers that expose them with a standard layout. Plug in the controller, click the game, and press a controller button so the browser can detect it.

Sell it on Steam?

Yes, a game made with Scratch for Java can go to Steam. The exported folders already have the shape Steam wants: one folder per system, with a file that starts the game.

Players on Steam expect:

Saves and chosen keys are stored in the player's data folder. Steam Cloud can copy that folder between computers without changes to your game.

Publishing is not only about code:

  • Steam needs a contract with an adult: a parent, the teacher or the school.
  • Each game costs a fee, and Valve checks the store page and the game.
  • Every picture, sound and font must allow commercial use. The built-in ones are CC0, which allows it.

Read Valve's current Steamworks documentation before you start.

Next

Sharing your game

Create Shareable URL

Select Sections