Repository navigation
Directional Processing: separate drift speed tiers from display time - #236
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each display band is now played at a slow (1x) and a fast (2x) drift speed before the display time drops, so motion speed rises separately from display time and display time falls half as fast per level. LEVELS grows from 10 to 20 entries, built from DISPLAY_BANDS and DRIFT_SPEED_MULTIPLIERS, and the stimulus phase scales gabor.PHASE_SPEED_RAD_PER_MS by the level's multiplier. Fixes #201 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Fixes #201. In Directional Processing, movement speed now rises as its own difficulty step, and display time drops half as fast per level.
What changed
game.js:LEVELSis built from two tables.DISPLAY_BANDSis the original 10 display/contrast steps (500 → 40 ms).DRIFT_SPEED_MULTIPLIERSis[1, 2]. Each band is played slow and then fast before the display time drops, so there are now 20 levels.index.js: the stimulus phase drifts atgabor.PHASE_SPEED_RAD_PER_MS× the level'sdriftSpeedMultiplier.gabor.jsis unchanged and stays standalone.CLAUDE.mddescribes the new level structure..claude/skills/fix-issue/SKILL.md:disable-model-invocation: false.Testing
game.test.jstests check that the table is the band × tier product and that each level either speeds up the drift or shortens the display, never both. They also check that the practice trial uses the slowest tier.index.test.jstest checks that the grating phase advances at base speed × multiplier.npm run lintandnpm run test:coveragepass (2153 tests). I did not play it in the running app.Worth a close look
levelmeaning changes. Old saves index the 10-entry table (top = 10). New saves index the 20-entry table (top = 20). As a result, history and highest-level numbers from before and after this change don't compare directly.🤖 Generated with Claude Code