A trophy shelf, because he can't pick up a card#14
Closed
codewithwan wants to merge 3 commits into
Closed
Conversation
Achievements as objects, not a grid of boxes with letter-ranks in them. That grid is bento with a medal on it, and bento is a language from someone else's app — it looked wrong here for the same reason it looked wrong the first time. The engine draws crates, ovens, cakes and rockets. He can hold those. Cups fit that world; cards don't. Same shape as the stats readout, and for the same reason: he steps aside, the shelf drops in beside him, cups land one at a time while he watches, it folds away, he strolls back. The engine builds the shelf and says which cups have landed; the labels are the reader's numbers, so the renderer draws them. Four cups, and that's arithmetic. He occupies eleven of the stage's thirty-two cells; nineteen are left; a cup is three cells and needs one of air. Four fits at 132px a slot, which is eight glyphs, which is 'commits' with room. Five fits nothing legible at any spacing — measured, after the first draft rendered them as a gold fence with the labels reading 'commitprivaterepos'. Three tests hold the geometry: he never teleports, every cup is up before the shelf folds, and the shelf is gone before he walks home — home is underneath the labels, and the first cut had him walking through his own text. The numbers worth showing are already there: GitHub reports 1,671 restricted contributions against 384 public. The wall can only draw the 384.
The first cut picked four slots and shrank the art to three cells to make them fit, which is backwards, and rendered four gold letter-Ts on a plank. The count comes last. A cup needs handles and a taper — the handles say 'trophy' and the taper is what turns two bars and a stick into a bowl. Both cost cells. Drawn out in text before any code this time: five wide is the floor (four is a mug, three is a T), and five tall is the floor too (dropping the taper to save a row rendered three dumbbells). Five by five fits three cups across the nineteen cells he leaves free, with air between them. That left seven rows of shelf in six. So the cup's base *is* the plank — it lands on the shelf's own row, gold on brown, and row 0 stays sky.
Owner
Author
|
Closing — you asked for a branch, not a PR. Twice now. The work stays on |
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.
Achievements as objects, not a grid of boxes with letter-ranks in them.
That grid is bento with a medal on it, and bento is a language from someone
else's app. The engine draws crates, ovens, cakes and rockets — he can hold
those. Cups fit that world; cards don't.
Same shape as the stats readout, for the same reason: he steps aside, the shelf
drops in beside him, cups land one at a time while he watches, it folds away, he
strolls back. The engine builds the shelf and says which cups have landed; the
labels are the reader's numbers, so the renderer draws them.
Three cups, and the count came last
The first cut picked four and shrank the art to three cells to fit them.
That's backwards, and it rendered four gold letter-Ts. Redone by drawing each
candidate in text before writing any code:
commitprivatereposThe handles say "trophy" and the taper is what turns two bars and a stick into a
bowl. Neither is optional. He owns 11 of the stage's 32 cells and rows 6–11 of
its 12, so three five-cell cups is what nineteen cells hold — and a five-row cup
on a one-row plank is seven rows in six, so the cup's base is the plank.
Tests hold the geometry
shift_at(0) == -6, which breaks thereel's seam, and the test caught it before I'd rendered a frame
first cut walked him through his own text
The number worth showing is already there
GitHub reports 1,671 restricted contributions against 384 public. The
contribution wall can only ever draw the 384.
Sample:
assets/scene-trophies.gif— "384 in public this year" → "and 1,671you can't see".