Skip to content
Tech Atlas, home
Search
Esc
  • All roadmapsBrowse every learning path
  • ExploreFind a technology area
  • ProjectsGuided projects and builds
  • My AtlasYour learning dashboard
Practice build · Frontend and the browser

Build your own Browser Game

A classic arcade game (Snake or Breakout) in plain JavaScript: a game loop, input, collisions, a score and an accessible pause.

  • Intro
  • About 4–10 h
  • 4 checkpoints
  • 3 tutorials · JavaScript, Python

Pick a tutorial, then check yourself at each checkpoint. Work in any language you like.

Choose a tutorial

Why build it

A game is a friendly way to practise the DOM, events and timing: every bug is visible, and the game loop teaches requestAnimationFrame and state updates.

You will be able to

  • Run a game loop with requestAnimationFrame and a fixed time step.
  • Handle keyboard and touch input.
  • Keep game state separate from drawing and detect collisions.
  • Support pausing, keyboard-only play and reduced motion.

Skills it exercises

Recommended on Frontend Engineer.

Checkpoints

How you know you are there

Work in any language. Each checkpoint ends with something you can run or observe, so you can check it yourself.

  1. Checkpoint 1Self-check

    Loop

    Done when: The game draws at a steady frame rate and pauses when the tab is hidden.

  2. Checkpoint 2Self-check

    Input

    Done when: Arrow keys, and swipes on a touch screen, move the player smoothly.

  3. Checkpoint 3Self-check

    Rules

    Done when: Collisions, scoring and game over work, and the high score survives a reload.

  4. Checkpoint 4Self-check

    Polish and accessibility

    Done when: Space pauses, a start screen explains the controls, and animation is reduced when prefers-reduced-motion is set.

Stretch goals

  • Sound effects with the Web Audio API.
  • Installable offline play as a PWA.
Follow a tutorial

Step-by-step guides

Pick one in a language you know (tutorial languages: JavaScript, Python). They open on the author’s site.

Practice builds are self-paced: Tech Atlas does not track them or count them as evidence. To show a skill, take its knowledge check from the skill page.

Tutorials come from codecrafters-io/build-your-own-x (CC0, snapshot of 2026-07-14, commit aa17439; links checked on 2026-10-19). Each tutorial belongs to its author and keeps its own licence; Tech Atlas links to it and does not host it. Briefs, checkpoints and the mapping to skills are Tech Atlas editorial drafts.