Skip to content

Latest commit

 

History

History
47 lines (40 loc) · 2.9 KB

DESIGN.md

File metadata and controls

47 lines (40 loc) · 2.9 KB

Learning GitHub: Commit Rush (design)

A 3D endless runner in the browser. You are Commi, a little glowing robot running along a neon "repository highway". Every action in the run is a real Git command, printed in a terminal on screen and drawn on a live commit graph, so playing the game is doing Git.

Syllabus follows the W3Schools Git tutorial (intro → setup → staging → commit → branch → merge → GitHub remotes → pull requests → undo → pro moves).

Core loop (10 seconds)

  • 3 lanes. Left/Right to switch lanes, Up/Space to jump, Down to slide. That's all (voice- and one-hand-friendly; swipes on phones).
  • Red file cards = changed files. Grab them.
  • git add . gate (full-width arch) turns your carried red files green: they are staged.
  • git commit gate saves them as a commit: a dot appears on the commit graph and you get a big bonus.
  • Crash into a bug, a conflict bar or a block = lose a heart AND every uncommitted file. The lesson is felt, not read: commit early, commit often.
  • Quiz doors: a question appears, the game goes into slow motion, three doors show three answers. Run through the right one: +points, a speed boost and a short invincibility (smash through obstacles). Wrong door: combo lost, and the answer + why is shown and read out. Missed questions come back later (spaced repetition).

Hooks

  • Combo multiplier up to x8, rising pitch on every pickup, near-miss bonuses, screen shake, bloom glow.
  • GitHub stars as coins → skins for Commi in the shop.
  • XP + rank (Intern → … → Core Maintainer), daily streak, 3-star rating per chapter, best score.
  • Command Codex: every new command you run unlocks a card ("NEW COMMAND: git stash"): collect them all; doubles as a cheat sheet.
  • Instant retry (Space). End screen shows how close you were to your best.

Chapters (10 + Endless)

  1. What is Git? · 2. Setup & init · 3. Staging · 4. Commits & history · 5. Branches · 6. Merging & conflicts · 7. GitHub & remotes (push/pull/fetch/clone) · 8. Pull requests & GitHub flow (fork, PR, review) · 9. Undo (revert, reset, amend, stash, reflog) · 10. Pro moves (.gitignore, tags, cherry-pick, rebase, LFS, hooks). Each: a 3-bullet briefing card, ~2-3 minutes of running, 6 quiz doors, chapter-specific gates (branch gates recolour the road; push gates launch you into the air toward "origin"). Endless mode mixes everything you have unlocked plus your review queue.

Accessibility

  • Keys only: arrows/WASD, Space, Enter, Esc. N toggles narration (reads briefings, questions, answers, feedback with the system voice). M mutes sound. Large high-contrast text.
  • ?mute URL flag for silent testing.

Tech

Static site: index.html, js/main.js (Three.js r170 from CDN + bloom), js/content.js (chapters, questions, commands), js/audio.js (WebAudio synth, no audio files). Progress in localStorage. No build step; hosted on GitHub Pages.