Add Target Practice game (tilt-to-aim timed challenge)#7
Open
steemandavid wants to merge 5 commits into
Open
Conversation
Extract the 1643-line main.c into separate compilation units: - display.c/h (WS2812 LED driver, pixel drawing, HSV conversion) - accel.c/h (I2C, ADXL345 driver, calibration) - game_common.h (shared types, macros, game enum) - game_*.c (one file per game, 9 files) No behavior changes. All 9 original games work identically. CLAUDE.md and README.md updated to reflect new file structure. Co-Authored-By: Claude Opus 4.7 <[email protected]>
Classic 1-player Pong against an AI opponent. Tilt left/right to move your paddle. Score counts volleys; game resets after 3 misses. Co-Authored-By: Claude Opus 4.7 <[email protected]>
Keep a ball centered against random wind forces. Target zone shrinks over time, increasing difficulty. Game over when ball drifts off the 8x8 grid. Co-Authored-By: Claude Opus 4.7 <[email protected]>
Catch falling green items for points while avoiding red ones. Tilt to move a basket. 3 lives, increasing speed. Co-Authored-By: Claude Opus 4.7 <[email protected]>
Tilt a cursor to hit randomly appearing targets. 30-second timer with visual countdown. Score displayed at end of round. Co-Authored-By: Claude Opus 4.7 <[email protected]>
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
Files Changed
main/game_target.c— new game implementationmain/main.c— add to dispatch tablemain/game_common.h— add GAME_TARGET to enummain/CMakeLists.txt— add to SRCSNote: This PR builds on top of PR #3 (refactor). Please review/merge that first.
Testing