← PathwayLesson 10 · Menus, Saving & ShippingGame Jam →

Lesson 10 · 65 minutes · Release layer

Finished means someone else can play it.

Wrap the game in a title screen, pause and win state, save the best time, credit your assets, and package it. Then take your art into the starter pack and keep building on your own.

GAME STATESPAUSESAVE DATACREDITSEXPORTSTARTER PACK
01 / WHY

Where this comes from

Publishing used to need a factory.

2000s

Shipping a game once meant manufacturing cartridges or discs. In the 2000s, browser-game portals let anyone publish a game that ran from a link. Today a folder with index.html is a complete game — the same way this pathway’s starter pack works.

02 / STATES

Game states

Title → play ⇄ pause → win.

Lesson 08’s state machine works for whole screens too. The game only updates physics in play; every other state waits for a key.

2D Game Shipping Architecture Diagram showing game lifecycle states, localStorage persistence, and standalone distribution bundle
Release Architecture & Lifecycle: Top-level states govern input and execution: title waits for start, play drives physics, paused freezes time, and win records high scores in localStorage. The standalone distribution bundles everything into zero-dependency client files.

Pixel Courier · release buildSpace to start · P to pause · best time saves on this device

game states · JavaScript
let mode = "title";
function update(dt) {
  if (mode !== "play") { if (pressed.start) mode = "play"; return; }
  if (pressed.pause) { mode = "paused"; return; }
  stepPhysics(dt);
  if (allParcelsDelivered()) { mode = "win"; saveBest(time); }
}
function saveBest(t) {
  const best = Number(localStorage.getItem("best")) || Infinity;
  if (t < best) localStorage.setItem("best", String(t));  // durable fact, not live state
}
What belongs in save data?

03 / PACK

Package it

Take your art with you.

  1. Download your art.js using the button above. It holds your palette, every frame, your tiles and your level.
  2. Download the starter pack and unzip it. Replace its art.js with yours.
  3. Open index.html in a browser. Your courier, tiles and level run with no server and no install.
  4. Read game.js. It is the same engine in about 300 commented lines, ready for new enemies, levels and rules.

Controls on screen

Show arrows/WASD, Space and P before play. Don’t make players guess.

Credits

List every sound, font or image you didn’t make, with its creator and licence.

One-sentence goal

“Collect every parcel, then reach the mailbox.” If you can’t say it in one sentence, simplify.

Fresh-computer test

Open the zip on another device. Missing files only show up away from your own machine.

Ready for 3D? The Godot pathway uses the same ideas — loop, collision, camera, states, juice, shipping — in three dimensions. Ready to make your own game in a week? Head to Game Jam Week.

04 / SHIP

Final definition of done

Pixel Courier is shipped when…

0/4 checked

Evidence: Submit your starter-pack folder plus one playtester’s notes on a computer that isn’t yours.

2D pathway complete

You drew, animated, built, tuned, and shipped a complete 2D game.