Repository navigation
fix(ui): eliminate settings toggle clipping, smooth jelly directional arrows, and optimize frame pacing - #8
Open
Shahidzbi4213 wants to merge 1 commit into
Open
Shahidzbi4213 wants to merge 1 commit into
Shahidzbi4213 wants to merge 1 commit into
Conversation
… arrows, and optimize frame pacing - Decouple GummyToggleSwitch track pill clipping from knob and shadow bounds to eliminate edge clipping - Make jelly touch anticipation squish direction-aware and lock pupil glance toward travel corridor when pressed - Align trajectory beam with anchorLead to prevent diagonal/misaligned rays on multi-cell jellies - Prevent launching direction snap-back to NORTH on final segment and rotate deflected jellies smoothly - Eliminate 60 FPS coroutine StateFlow allocation loops in GameViewModel via timestamp-based draw interpolation
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.
Overview
This PR resolves the UI, animation consistency, and frame performance issues from the follow-up review:
Settings Screen Toggle Cropping (
GummyToggleSwitch.kt&SettingsModal.kt):.clip(trackShape)) from the knob container.squishX = 1.22f), spring overshoot, and drop shadow now float unclipped with clean margins.ArcadeSettingRowfor generous clearance.Jelly Click Direction Arrow & Eye Glance Consistency (
SkiaBoardView.kt&JellyRenderer.kt):direction.dx * 0.45f), eliminating conflicting glances toward touch coordinates.drawAnticipationTrajectorystarting waypoint by anchoring toanchorLeadrather than arbitrary head position to eliminate crooked/diagonal raycast starts on multi-cell jellies.dx=0, dy=0toDirection.NORTH.directedJelly) so their body and snout face the true corridor direction.Frame Jank & Animation Performance Elimination (
GameViewModel.kt&AnimationState.kt):startTimeMillis,durationMillis,easedProgressAt(now)) toLaunchAnimation.delay(16)loop that re-allocatedList<LaunchAnimation>and forced full Composable recompositions on every frame.animateWobble.Verification
./gradlew :core-engine:allTests :shared:allTests: All 84 tasks passed cleanly.