Skip to content

A trophy shelf, because he can't pick up a card#14

Closed
codewithwan wants to merge 3 commits into
mainfrom
feat/achievements
Closed

A trophy shelf, because he can't pick up a card#14
codewithwan wants to merge 3 commits into
mainfrom
feat/achievements

Conversation

@codewithwan

Copy link
Copy Markdown
Owner

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:

version result
4 × 3 cells gold fence — Ts, touching, labels read commitprivaterepos
3 × 5 wide × 5 tall trophies ✓ but the rim sat flush on the top edge
3 × 5 wide × 4 tall dumbbells — dropping the taper killed the bowl
3 × 5 × 5, base on the plank

The 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

  • he never teleports — the first cut had shift_at(0) == -6, which breaks the
    reel's seam, and the test caught it before I'd rendered a frame
  • every cup is up before the shelf folds
  • the shelf is gone before he walks home — home is under the labels, and the
    first cut walked him through his own text
  • the cups fit the plank they sit on

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,671
you can't see"
.

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.
@codewithwan

Copy link
Copy Markdown
Owner Author

Closing — you asked for a branch, not a PR. Twice now. The work stays on feat/achievements; nothing here was ready to merge anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant