Controls on screen
Show arrows/WASD, Space and P before play. Don’t make players guess.
Lesson 10 · 65 minutes · Release layer
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.
Where this comes from
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.
Game states
Lesson 08’s state machine works for whole screens too. The game only updates physics in play; every other state waits for a key.
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
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
}Package it
art.js with yours.index.html in a browser. Your courier, tiles and level run with no server and no install.game.js. It is the same engine in about 300 commented lines, ready for new enemies, levels and rules.Show arrows/WASD, Space and P before play. Don’t make players guess.
List every sound, font or image you didn’t make, with its creator and licence.
“Collect every parcel, then reach the mailbox.” If you can’t say it in one sentence, simplify.
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.
Final definition of done
0/4 checked
Evidence: Submit your starter-pack folder plus one playtester’s notes on a computer that isn’t yours.
You drew, animated, built, tuned, and shipped a complete 2D game.