Skip to content

redhatsam09/code-sensei

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Sensei

A VS Code companion that keeps you focused with a playful pixel world, responsive character, and gentle nudges as you code.

Extension Badge Pixel Art License

— Keep momentum while you work: Code Sensei reacts to your typing, pauses, and context switches with charming animations and subtle audio cues.

Captures

Untitled-2 (1)

Installation

Install Code Sensei directly from the VS Code Marketplace:

Features

  • 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

Configuration

Audio behavior is handled automatically:

  • Background music volume: lowered during SFX, restored afterward
  • Audio unlocks on your first click if autoplay is blocked

How It Works

  1. The webview renders layered PNGs as an infinitely scrolling scene with per-layer parallax and alternating mirror tiling.
  2. A sprite-sheet–driven character animates (idle, walk, jump/fall, item use, multi-step death).
  3. 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.
  4. A session timer is visible only after you click Start; it pauses when the tab loses visibility.
  5. The ground line is auto-detected from the front layer, with manual calibration controls and persistence via webview state.

Usage

  1. Open the Code Sensei view and click START.
  2. Start coding. The character will walk as you type and the timer will begin.
  3. 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.

Troubleshooting

  • 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.

Acknowledgements

  • Forest art: "Free Pixel Art Forest" pack
  • Character sprite sheet: Jotem
  • Background and SFX: included under music/

Train with Code Sensei! 🥋

About

Code Sensei reacts to your typing, pauses, and dedication towards code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors