Repository navigation
pieces: add basketball, a spinning and bouncing ball - #83
Merged
Merged
Conversation
|
@lizijing98 is attempting to deploy a commit to the Shubham Team on Vercel. A member of the Team first needs to authorize it. |
|
Make sure you do the changes Sensei
[Medium impact] The PR appears safe to merge, with the previous SVG timing issue fixed. SummaryAdds a configurable, 64×32 basketball animation and registers it in the library and catalog.
Reviews (4) · Last reviewed commit: "pieces: honor basketball SVG loop overri..." · Reviewed by Greptile |
lizijing98
force-pushed
the
codex/basketball-piece
branch
from
November 13, 2026 08:55
5a3e716 to
25a4fe1
Compare
The seams turn as the ball spins. It squashes on impact, bounces lower each time, and rests briefly before the loop starts again. The radius, bounce, squash, and shading ramp can be configured.
lizijing98
force-pushed
the
codex/basketball-piece
branch
from
November 13, 2026 08:57
25a4fe1 to
279864d
Compare
Apply later option overrides on top of the configured defaults. Reject bounce and rest schedules longer than 30 seconds before SVG sampling.
Compute the export duration from the same options used to render frames. Preserve explicit SVG durations and test loop timing.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Summary
Add
basketball, a 64×32 monochrome piece in theobjectscategory. It shows a close-up basketball with rotating seams, progressively lower bounces, and a brief pause before the next loop.The basketball animation can be seen on the What is NCAA homepage.
Closes #82.
What changed
basketballpiece that draws the rotating seams and landing deformation directly into the character frames.createBasketball(options)so SVG exports use the loop duration calculated for the configured piece.createBasketball().basketballto the README.How this was tested
npm run check -- basketballandnpm run check. All 242 pieces passed.npm run typecheckandnpm run build.Risk and rollback
The change adds one piece and its catalog entries. It can be rolled back by removing
src/pieces/basketball.ts, rerunningnpm run gen, and removing the README entry.