Game Design & Development · Setup Quest
Build Your Game-Dev Base
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.
🎒 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.
💻 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.
✅ 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 Serverby Ritwick Dey, and choose Install. - ✓4. Add Prettier. Search for
Prettier - Code formatterand 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.
🚀 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!
<!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>20 to 50. What happens?🔁 The Four-Step Game-Dev Loop
Test after small changes. Then, if something breaks, you only have one tiny mystery to solve.
🐛 Where Is the Best Clue?
Your game suddenly stops moving. Which place should you check first?
⌨️ Five Shortcuts Worth Learning
Start with Save and Undo. The others can wait until they feel useful.
| Action | Windows / Linux | macOS |
|---|---|---|
| Save file | Ctrl + S | ⌘ + S |
| Undo | Ctrl + Z | ⌘ + Z |
| Find in file | Ctrl + F | ⌘ + F |
| Open terminal | Ctrl + ` | ⌃ + ` |
| Command palette | Ctrl + 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.