A VS Code companion that keeps you focused with a playful pixel world, responsive character, and gentle nudges as you code.
— Keep momentum while you work: Code Sensei reacts to your typing, pauses, and context switches with charming animations and subtle audio cues.
Install Code Sensei directly from the VS Code Marketplace:
- Marketplace: https://marketplace.visualstudio.com/items?itemName=CodeSensei.code-sensei
- Or in VS Code, open the Extensions view → search for "Code Sensei" → Install.
- Open the Code Sensei view from the Activity Bar.
- Character reacts to coding activity:
- Idle → Walks while you type
- Paused typing → Quick hop/jump animation
- Switching away from VS Code → Character goes idle; on return, playful reminders
- One-hour session timer that starts on first activity
- Minute marks trigger a celebratory “item use” animation and SFX
- Background music with smart ducking during sound effects
- Gentle “away too long” nudge or dramatic “death + restart” if you’ve been gone for a bit
- Infinite-scrolling parallax forest scene with pixel-art crispness
Audio behavior is handled automatically:
- Background music volume: lowered during SFX, restored afterward
- Audio unlocks on your first click if autoplay is blocked
- The webview renders layered PNGs as an infinitely scrolling scene with per-layer parallax and alternating mirror tiling.
- A sprite-sheet–driven character animates (idle, walk, jump/fall, item use, multi-step death).
- Editor activity events drive state:
- Typing starts walking; pauses trigger a hop.
- Window focus loss marks you as away; returning within a minute triggers a playful “attack,” longer away triggers the death sequence and a restart prompt.
- A session timer is visible only after you click Start; it pauses when the tab loses visibility.
- The ground line is auto-detected from the front layer, with manual calibration controls and persistence via webview state.
- Open the Code Sensei view and click START.
- Start coding. The character will walk as you type and the timer will begin.
- If you step away, come back to a playful nudge—or a dramatic pixel demise if you took too long. You can restart the session anytime via the on-screen button.
- No background visible: ensure assets are present under
assets/forest/Free Pixel Art Forest/PNG/Background layers/. - Audio not playing on start: click the START button to unlock audio and re-attempt autoplay.
- Forest art: "Free Pixel Art Forest" pack
- Character sprite sheet: Jotem
- Background and SFX: included under
music/
Train with Code Sensei! 🥋
