Project: make a simple browser game
Design a one-screen game on a card, build it with one clear prompt, playtest and tune it, then share a link with your friends.
What you'll build
A small game that runs in any browser, like 'catch the falling stars', a quick quiz race or a reaction-time test. Games are a great first build: you see every change straight away, and they teach the same ideas as 'serious' apps: state (the score), a loop (the game updating many times a second), input (keys or taps) and testing with real people.
Step 1: Design it on a card
- Goal: what is the player trying to do?
- Controls: arrow keys, mouse, or tap (make it work on phones too).
- Win or lose: for example, miss three stars and it's game over.
- Score: what earns points, and is the best score remembered?
- One screen, one main idea. Extra levels come later.
Step 2: Build it with one clear prompt
Prompt your app builder or coding agent: 'Build a one-screen browser game using an HTML canvas and JavaScript. Stars fall from the top; the player moves a basket with the arrow keys or by dragging on a phone. Catching a star scores a point; missing three ends the game. Show the score and the best score (saved in the browser), a start screen, a pause button and a Play again button. Keep all the numbers for speed and spawn rate at the top of the code so I can tune them.'
Step 3: Playtest, tune, then share
Watch a friend play without helping. Too hard or too easy? Change one number at a time (fall speed, how often stars appear) and test again. Add a pause, avoid fast flashing, and don't rely on colour alone, so more people can play. Use art and sound you made or that's licensed for your use, and credit the creators. Deploy it to get a link and share it. For bigger games, frameworks like Phaser handle sprites, sound and physics for you.
Key terms
- Game loop
- The code that updates and redraws a game many times a second: move things, check hits, draw.
- Sprite
- A small image or character that moves around in a game, like the player or a falling star.
- State
- Data a component or app remembers and updates, like what's in a cart.
- JavaScript
- The programming language that makes web pages interactive.
- Deploy
- Publish a version of your app to a host.
- Licence (software license)
- The rules for what others may do with code, images or fonts: use, change, share or sell.
- Accessibility (a11y)
- Making apps usable by everyone, including people using screen readers or keyboards.
Try it
Ship a game this afternoon
- Fill in the five design questions for your own game idea.
- Build it with the Step 2 prompt, changed to match your idea.
- Watch two people play and tune one number after each playtest.
- Deploy it, share the link, and mark the Mini browser game Build Challenge as built.
Ask an AI tutor about this guide
Copy a prompt into ChatGPT, Claude or Gemini to go deeper. Check what it tells you against the guide.
- Explain it like I'm 12
- Quiz me (5 questions, one at a time)
- Show me a real example for my situation
- What do beginners get wrong?
Knowledge check
Five questions. Get 4 right to earn the Game Maker badge. You can retake it as often as you like.
Question 1 of 5
Finished the Build projects guides? Take the Build projects track test for ten mixed questions.
My notes
Write what clicked, what confused you, and what you want to try. Saved in this browser only.
Learn it live
Digital Builders University runs small live workshops where you build something real with an instructor beside you, starting with Vibe Coding 101.
See workshopsPractise it
- Build Challenge: Mini browser game (Warm-up, 1 to 2 hours)
- Code playground: A game loop: the bouncing ball (edit and run it in your browser)
Official sites
Last reviewed November 25, 2026. AI tools change fast; check each tool’s own site for current features, plans and prices.
