vs Code Battler
Turn coding into a lightweight battle inside the Visual Studio Code panel.
Current prototype
- Opens a
vs Code Battler battle view beside Terminal and Output.
- Converts each text-document change event into one attack.
- Continues a combo when the next edit arrives within three seconds.
- Triggers stronger attacks at 10, 30, 50, and 100 combo.
- Mixes eight attack patterns into the combo: energy shots, dash slashes,
rising slashes, sword waves, lightning, fireballs, meteors, and FEVER.
- Tracks enemy HP, defeats, total damage, EXP, and level.
- Shows elapsed play time and resets it with battle progress.
- Spawns a mid boss every five enemies and a major boss every ten.
- Rotates every three enemies between neon, shrine, castle, and after-school venues.
- Queues rapid inputs so physical attacks finish instead of snapping the hero
back to the starting position.
- Layers long beams, explosions, sword movement, impact particles, glow, hit
stop, enemy launch/squash reactions, stage rumble, support characters,
spotlights, crowd motion, screen cracks, defeat animation, and diagonal cut-ins.
- Generates attack-specific sound effects with Web Audio, including shots,
sword hits, lightning, explosions, FEVER chords, and defeat sounds.
- Turns sustained typing into a musical scale, adds attack-specific chords and
arpeggios, and plays milestone jingles every ten combos.
- Synchronizes meteor and lightning impacts with full-display vibration,
multi-layer flashes, sub-bass, debris, and electrical crack sounds.
- Provides a persistent
SOUND ON/OFF control in the battle HUD.
- Provides the
vs Code Battler: Reset Progress command.
Progress persistence, expanded settings, and final pixel-art assets are
intentionally left for later phases.
Development
npm run compile
Press F5 in Visual Studio Code to launch an Extension Development Host, then open
the vs Code Battler view from the bottom panel. Type in any text document to attack.
Click SOUND START once after opening the panel to enable audio; the explicit
click is required by the webview audio policy.
Privacy
vs Code Battler reacts to text-document change events but does not store, inspect, or
transmit source-code contents. Battle state remains inside the extension process.
Test
npm run pretest
npm test
| |