Feat/fishing - #74
Open
tusharmalpani20 wants to merge 3 commits into
Open
Conversation
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
Adds a new
fishingeffect where concurrent fishing hooks catch scattered, swimming input characters and place them into theircorrect final positions.
Animation
Jhooks from the top?,#, and*symbolsArchitecture
Each hook owns an independent state machine:
WAITING → CASTING → BITING → REELING → TRANSPORTING → LOWERING → RELEASING → RETURNING → FINISHEDFishing lines, hooks, ripples, and junk catches are preallocated and reused. Target assignments are balanced into spatially
coherent column regions, allowing several hooks to progress concurrently.
Small canvases degrade to shortened routes without placing characters outside the canvas or preventing iterator termination.
Configuration
--hook-count— maximum concurrent hooks--line-color— fishing line and hook color--water-colors— temporary swimming colors--cast-speed— casting speed--reel-speed— reeling and transport speed--cast-delay— delay between casts--wrong-catch-chance— one-time junk-catch probability per hookWrong catches default to a 5% chance, are limited to one per hook, and can be disabled with
--wrong-catch-chance 0.Additional fix
Whitespace-only library input now follows the established empty-input placeholder behavior instead of failing during canvas
anchoring.
Documentation
Testing
Demo
tte \ -i ~/.config/omarchy/branding/screensaver.txt \ --canvas-width 0 \ --canvas-height 0 \ --anchor-canvas c \ --anchor-text c \ --frame-rate 60 \ fishing \ --hook-count 6 \ --cast-speed 2.5 \ --reel-speed 3 \ --cast-delay 0 \ --wrong-catch-chance 0