๐ŸŽฎ Starter Templates

Three tiny, complete browser games. Each is <200 lines, single file, no build tools. Open, read, modify, learn.

โ† back to Academy

๐ŸŽฏ The point of these templates

The Monster Truck game is overwhelming if you've never coded before. These three are not. Each one is a complete working game in a single HTML file (no separate CSS, no separate JS, no build process). You can open one in Notepad, change a number, refresh the browser, and see what changed.

Recommended workflow for beginners:

  1. Click Play to make sure it works for you
  2. Click Download to get the zip with HTML + README
  3. Open index.html in your favorite text editor (VS Code is free at code.visualstudio.com)
  4. Change one thing โ€” a color, a number, a word. Refresh the browser. See what happened.
  5. Read the README for "extend it" ideas
  6. Open an AI chat (Claude, ChatGPT) and paste the file with "add feature X" โ€” you've just done what the founder of this academy did

๐Ÿช Cookie Clicker

Click the cookie, score goes up. Buy upgrades that auto-click for you. The simplest "idle game" pattern in <120 lines.
No canvas DOM only setInterval loop ~120 lines

โŒจ๏ธ Typing Speed Test

60-second typing race. Tracks WPM and accuracy in real time, with color-coded feedback per character. ~170 lines.
Text comparison Live stats Color states ~170 lines

โšก Reaction Time

Click when the screen turns green. Tracks your last 10 attempts in localStorage. Demonstrates state machines & precise timing. ~120 lines.
State machine performance.now() localStorage ~120 lines

๐ŸŽ“ Suggested learning order

  1. Cookie Clicker โ€” simplest. Understand DOM events, intervals, simple state.
  2. Reaction Time โ€” state machines, precise timing, persistence.
  3. Typing Test โ€” string manipulation, live UI updates, more complex logic.
  4. Then graduate โ€” read the Monster Truck game source. Canvas, parallax, physics, AI competitors. You'll recognize the same patterns scaled up.

๐Ÿ’ฌ How to use these with an AI assistant

Open Claude (or ChatGPT). Paste the entire HTML file. Then say:

That's the whole skill. You name what you want; the AI rewrites the file; you save and refresh.