Skip to content

Directional Processing: separate drift speed tiers from display time - #236

Merged
acrosman merged 2 commits into
mainfrom
feat/201-directional-speed-tiers
Oct 19, 2026
Merged

acrosman merged 2 commits into
mainfrom
feat/201-directional-speed-tiers

Conversation

@acrosman

Copy link
Copy Markdown
Owner

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: LEVELS is built from two tables. DISPLAY_BANDS is the original 10 display/contrast steps (500 → 40 ms). DRIFT_SPEED_MULTIPLIERS is [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 at gabor.PHASE_SPEED_RAD_PER_MS × the level's driftSpeedMultiplier. gabor.js is unchanged and stays standalone.
  • Tutorial "levels" slide: says higher levels move the stripes faster. The screenshot slide shows level 1, which is unchanged, so no retake is needed.
  • The game's CLAUDE.md describes the new level structure.
  • The first commit is a separate one-line change to .claude/skills/fix-issue/SKILL.md: disable-model-invocation: false.

Testing

  • New game.test.js tests 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.
  • New index.test.js test checks that the grating phase advances at base speed × multiplier.
  • npm run lint and npm run test:coverage pass (2153 tests). I did not play it in the running app.

Worth a close look

  • Saved level meaning 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.
  • Reaching the hardest level now takes at least 60 correct trials (it was 30).

🤖 Generated with Claude Code

acrosman and others added 2 commits October 18, 2026 21:16
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>
@acrosman
acrosman merged commit a46e8a3 into main Oct 19, 2026
7 checks passed
@acrosman
acrosman deleted the feat/201-directional-speed-tiers branch October 19, 2026 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Directional Processing: Speed of movement and length of display both increase

1 participant