Repository navigation
feat(vibenet): make Base Runner share the only game-over action - #227
Merged
Merged
Conversation
Share on X is now the primary game-over action, with the BDS x-twitter icon, sized and placed in game space so it stays in proportion to the game-over card. Removes the onchain leaderboard (posting, board, scores contract and deploy script): the contract no longer exists on vibenet, so every read failed and every post would have failed.
Collaborator
✅ Heimdall Review Status
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
0x00101010
approved these changes
Nov 9, 2026
0x00101010
approved these changes
Nov 9, 2026
This branch was successfully deployed
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
Makes Share on X the only action on the Base Runner (
/vibenet/demos/200) game-over screen, and removes the onchain leaderboard.Share button (following BDS,
base/bds)tone="brand") with the BDSx-twittericon. The icon is copied intoapp/components/ui/icons.tsx(this repo hand-writes its icons).ResizeObservermeasures where the canvas draws (it letterboxes withobject-contain), so the button keeps the same proportion to the card at any screen size. It is 36 px tall with a 13 px label on phones and in the 800 px inline layout, and up to 64 px with a 22 px label on large screens.Onchain leaderboard removed
lib/leaderboard.ts(+ test) andcontract/(BlockRunnerScores source, ABI, deploy script); nothing else imported them.0x2441…e07dno longer exists on vibenet (eth_getCodereturns0x, likely a devnet regenesis), so every board read failed, every run showed the Post prompt, and every post would have failed.The local "Best" score (stored in the browser) is unchanged.
Screenshots
Game over at 1920×1000 (immersive): the button scales with the game.
Inline layout at 1280 px, with the high-scores section gone below the game:
Phone, 390×844:
Test plan
npx vitest run app/vibenet/demos: 227/227 pass.npx eslint app/vibenet/demos/200 app/components/ui/icons.tsx: clean.tsc --noEmit: no new errors (only the existing missingnext-env.d.tsPNG-type error in this checkout).next dev: forced a game over at 1920×1000, 390×844 and the inline 1280 layout; checked the button size and position, that Share on X is the only game-over button, that the high-scores section is gone, and no page errors.