Skip to content

feat: redraw the mascot as a 12×6 sprite - #26

Merged
GuiMoraesDev merged 1 commit into
mainfrom
feat/mascot-sprite-12x6
Oct 21, 2026
Merged

GuiMoraesDev merged 1 commit into
mainfrom
feat/mascot-sprite-12x6

Conversation

@GuiMoraesDev

Copy link
Copy Markdown
Owner

Replaces the pane mascot's 15×10 sprite with a 12×6 sprite (3 terminal rows) across all six animations: idle, working, blocked, asking, done and loading. The palette, the frame picker and the mood rules are unchanged.

Acceptance criteria

  • Every mood at every step, and the loading spinner, draws 3 rows × 12 cells. Test: every mood frame and the spinner draw 3 rows of 12 cells at every step
  • The spinner's yellow head is at pixel 2:6 on step 0 and 3:7 on step 1, and step 8 draws the same frame as step 0. Test: the spinner arc moves one pixel per step and wraps after a full turn of 8
  • Each mood draws a frame different from step 0 at some step within 0–46. Test: each mood animates: some later step draws a different frame
  • Each animation's loop length is idle 47, working 8, blocked 8, asking 24, done 16 and loading 8 steps. Test: each animation loops for its agreed number of steps

Agreed behaviour

  • The mascot is 3 terminal rows × 12 columns.
  • Each mood plays the new frames at their drawn timing: idle 4.7 s, working 0.8 s, blocked 0.8 s, asking 2.4 s, done 1.6 s, loading 0.8 s.

Size

600 changed lines against the 400-line budget. 525 of them delete the old frame data, and only 75 are added. The change isn't split, because swapping some moods without the others would leave a failing commit.

Verification

  • The grid, spinner and loop-length tests were updated first and failed against the old frames (5 rows, head at 4:7, idle loop 44).
  • The new frames make all 30 tests pass with claude plugin test ..
  • npm run lint, npm run format:check and npm run typecheck pass.

Replace the 15×10 frames with a 12×6 sprite (3 terminal rows) across
idle, working, blocked, asking, done and loading, and pin the new grid,
spinner path and loop lengths in the mascot tests.
@GuiMoraesDev GuiMoraesDev added the enhancement New feature or request label Oct 21, 2026
@GuiMoraesDev GuiMoraesDev self-assigned this Oct 21, 2026
@GuiMoraesDev
GuiMoraesDev merged commit af79982 into main Oct 21, 2026
1 check passed
@GuiMoraesDev
GuiMoraesDev deleted the feat/mascot-sprite-12x6 branch October 21, 2026 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant