Game Design & Development · Setup Quest

Build Your Game-Dev Base

Visual Studio Code Live Server Extensions Project Structure Mini Game No Experience Needed

Your mission: turn a blank folder into a tiny playable game. You’ll install a free code editor, unlock instant browser updates, squash one pretend bug, and earn the title Game-Dev Ready.

Mission 1Gear up
Mission 2Build the base
Mission 3Launch a game
Boss battleSquash a bug
Start here · 1 minute

🎒 What You Need

A computer, an internet connection, and permission to install an app. That’s it. If your school device blocks installations, pair up with a classmate or ask your teacher for the pre-installed version.

New coder shield: You are not expected to recognize every button or word. Follow one step at a time. A red error message is a clue—not a grade.
Mission 1 · Gear up

💻 Meet Your Code Cockpit

VS Code is like Google Docs for code—except it predicts what you’re typing, points at mistakes, and connects your files to a live game window.

🕵️
Bug clues Red squiggles point toward mistakes while you type.
🧠
Smart suggestions Autocomplete helps finish names and commands.
⚡
Instant updates Save your code and watch the browser update.
🧰
Power-ups Add extensions when you need new tools.
Mission 2 · Build the base

✅ Seven Quick Checkpoints

Click a checkpoint when it works. Your progress is saved on this device: 0 / 7.

Let's get started!

  • ✓
    1. Get VS Code. Visit code.visualstudio.com, choose your computer type, and run the installer. School device blocked? Ask your teacher.
  • ✓
    2. Make your game folder. Create a folder named my-game. In VS Code choose File → Open Folder, then select it.
  • ✓
    3. Add Live Server. Click the Extensions icon (four squares), search Live Server by Ritwick Dey, and choose Install.
  • ✓
    4. Add Prettier. Search for Prettier - Code formatter and install it. Prettier keeps your code tidy.
  • ✓
    5. Create the launch file. In the Explorer panel, choose New File and name it exactly index.html.
  • ✓
    6. Launch Live Server. Right-click index.html → Open with Live Server. A browser tab should open. A blank page is a win—we haven’t added the game yet!
  • ✓
    7. Find the terminal. Choose Terminal → New Terminal. You don’t need to type anything; just find it, then close it with the trash-can icon.

Tip: You can click a completed checkpoint again to undo it.

Mission 3 · Launch a game

🚀 Make Something Move

Replace everything inside index.html with the code below. Save it, click the game, then use the arrow keys. You just built a one-file game!

Paste into index.html
<!doctype html>
<title>My Tiny Game</title>
<style>
  body { margin: 0; background: #101827; overflow: hidden; }
  #hero { position: absolute; font-size: 48px; left: 40px; top: 80px; }
  p { color: white; font: 20px sans-serif; text-align: center; }
</style>
<p>Click here, then use ← and →</p>
<div id="hero">🛸</div>
<script>
  let x = 40;
  const hero = document.querySelector("#hero");
  addEventListener("keydown", event => {
    if (event.key === "ArrowRight") x += 20;
    if (event.key === "ArrowLeft") x -= 20;
    hero.style.left = x + "px";
  });
</script>
Remix challenge: Swap 🛸 for 🐸, 🐉, 🏎️, or your favorite emoji. Change 20 to 50. What happens?
Core move · Repeat forever

🔁 The Four-Step Game-Dev Loop

1 · ChangeEdit one small thing
2 · SavePress Ctrl/⌘ + S
3 · TestTry it in the browser
4 · NoticeKeep it or fix it

Test after small changes. Then, if something breaks, you only have one tiny mystery to solve.

Boss battle · Bug hunt

🐛 Where Is the Best Clue?

Your game suddenly stops moving. Which place should you check first?

How to open it: In your browser, press F12 or right-click the page → Inspect → Console. Read the first red message slowly; it often includes the file and line number.
Bonus power-ups

⌨️ Five Shortcuts Worth Learning

Start with Save and Undo. The others can wait until they feel useful.

ActionWindows / LinuxmacOS
Save fileCtrl + S⌘ + S
UndoCtrl + Z⌘ + Z
Find in fileCtrl + F⌘ + F
Open terminalCtrl + `⌃ + `
Command paletteCtrl + Shift + P⌘ + Shift + P
🏆

Quest Complete: Game-Dev Ready

You can open a project, edit a file, launch Live Server, test a game, and find bug clues. That is a real development workflow.

Exit ticket: Show a classmate your moving emoji and tell them where you would look for a red error.

Keep AI coding manageable as your project grows

Use Code Bridge to prepare one small request with current source, review the AI's complete-file answer, and keep test checkpoints alongside VS Code. Continue using your teacher-approved Google AI chat; the site makes no AI API calls.

Next: Code with AI: Small Tasks, Current Files & Real Tests walks through a jump-bug practice project, dependency selection, and a fresh-chat handoff.