Repository navigation
refactor: modularize codebase, integrate clap cli, and optimize release build - #1
Open
Jacob-Dayan wants to merge 9 commits into
Open
Jacob-Dayan wants to merge 9 commits into
Jacob-Dayan wants to merge 9 commits into
Conversation
…, add clap to dependencies for CLI parsing, and fix cargo-clippy package name warning
Begin modularizing main.rs by offloading core game state, color, and dot definitions to `simple_menu`. Introduce `clap` for command-line argument parsing and clean up inline formatting. This commit lays the groundwork; remaining module integrations and cleanup will follow in subsequent commits.
Jacob-Dayan
force-pushed
the
main
branch
4 times, most recently
from
October 3, 2026 10:27
888a09c to
9cd024d
Compare
…as an unedited template (Mine is no less than PEAK).
Swapped spaghetti boundary checks for proper Rect methods, taught dots how to update themselves, and cleaned up the UI logic. Still completely unnecessary for bouncing 20 circles, but at least the code looks like someone with a plan wrote it.
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 did I just do?
Took a completely innocent, 2001-looking bouncing dot toy and treated it like a AAA engine that desperately needed an enterprise architecture overhaul.
The Damage
src/main.rsintosrc/lib.rsbecause obviouslyCuteDotand an enum that cycles through 5 colors needed their own crate boundaries. Also gaveCuteDotaDefaultimplementation and a.draw()method so it feels like real software.clap: You can now pass--dev-modefrom your terminal. Why click a toggle in the settings menu like a peasant when you can launch straight into the FPS counter frombash?lto = "fat",codegen-units = 1,panic = "abort", andstrip = trueintoCargo.toml. Those 20 bouncing circles are now running on bare metal with zero mercy.CARGO_PKG_VERSIONinstead of hardcoding"0.2.3"like an amateur. Bumped to0.2.4.LICENSEand completely rewrote theREADME.mdto document our revolutionary "I click button, I happy" gameplay loop.How to verify this madness
Smash the dots + button until your fans spin up.