Fix #9: Make a DOOM-style face that gets bloodied as you type - #11
Open
github-actions[bot] wants to merge 1 commit into
Open
Fix #9: Make a DOOM-style face that gets bloodied as you type#11github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
Co-Authored-By: Claude <claude@anthropic.com>
Owner
|
@claude nice, but can you make it look like a real 8-bit action hero? Also can you make the demo run a bit faster, so we can see it go all the way to super-dead in a reasonable amount of time? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #9
Demo
Demo
Summary
Implemented a DOOM-style ASCII art face indicator that appears in the bottom right corner of the editor and progressively takes damage as word count increases. The face starts healthy (green) at 0-100 words, becomes scratched and bruised (orange) at 200-400 words, transitions to dead/skull states (red/gray) at 600-800+ words, with increasingly elaborate damage states beyond 800 words. The component displays the current health status and word count, providing a fun visual feedback mechanism for tracking writing progress.
Before & After
Files Changed
src/components/DoomFace.tsx: Created new component with 10 ASCII art face states (healthy → scratched → bruised → bloodied → beaten → dead → skull variants → exploded) that change based on word count thresholdssrc/components/DoomFace.css: Added styling with color-coded health states (green/orange/red/gray), fixed positioning in bottom right, hover effects, and theme supportsrc/App.tsx: Integrated DoomFace component into main app, passing content signal for real-time word count trackinge2e/issues/9/verify.spec.ts: Verification test with before/after assertionse2e/issues/9/demo.spec.ts: Demo recording showing face damage progressionTests
e2e/issues/9/verify.spec.ts- Verification test with before/after assertionse2e/issues/9/demo.spec.ts- Demo recording🤖 Generated with Claude Code