Repository navigation
Add Block Stack app - #181
Open
jondkinney wants to merge 17 commits into
Open
jondkinney wants to merge 17 commits into
jondkinney wants to merge 17 commits into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The controls mishandle inverted drop directions, map pause to HOME—which exits to the launcher—and suppress simultaneous independent inputs, causing unintended hard drops and lost rotations.
3 open issues
What changed in this PR
Adds Block Stack, a falling-block puzzle app for the Universe 2026 badge.
Changes:
- Implements a 10×20 board with rotation, wall kicks, line clearing, scoring, and increasing speed.
- Adds ghost and NEXT previews, saved best scores, and title, pause, and game-over screens.
- Documents gameplay controls.
| File | Description |
|---|---|
badge/apps/block_stack/README.md |
Describes the app and its controls. |
badge/apps/block_stack/__init__.py |
Implements gameplay, input handling, rendering, and score persistence. |
Review effort: Balanced
…lignment Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…er screenshot Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
jondkinney
force-pushed
the
add-block-stack
branch
from
December 3, 2026 21:10
0259163 to
840306f
Compare
This branch has not been 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.

What does this PR do?
Adds Block Stack, an original falling-block puzzle app: fit shapes into a 10x20 well, clear rows, and the pace picks up every 10 lines. It has a ghost piece, wall kicks, a NEXT preview (toggleable), a saved best score, and a dimmed game-over overlay.
Type of change
Badge app checklist
badge/apps/<name>/with__init__.pyand a 24x24icon.pngREADME.mdstarts with a one-sentence description, followed by usage and any hardware or network requirementsbadge,screen,image, ...) and logical buttons such asBUTTON_SELECTbadge.ticks_delta)assets/, are PNG where possible, and are as small as practicalbadge/secrets.pystays empty)Screenshots
How to use it
Licensing and intellectual property
Additional notes
Code, art and name are original. The game is in the classic falling-block genre (10x20 well, seven four-cell shapes), so reviewers should confirm that is acceptable under the IP guidance. I'm happy to change the palette, board size or piece set if needed. The screenshots are cropped from the browser simulator.
Badge mode
Press DOWN on the title (or while paused) for a self-playing, conversation-piece mode: the game plays at a human pace, restarts after each loss, and shows your name, title, company and @handle beside the well. LEFT/RIGHT toggles a LinkedIn QR code; either pill exits. It reads
CONTACT_NAME,CONTACT_TITLE,CONTACT_COMPANY,CONTACT_LINKEDINandGITHUB_USERNAMEfrom the optionalsecrets.py(falling back to the cached GitHub profile). It never changes the saved best score. The same variables sit blank at the top of__init__.pyfor simulator testing.