Repository navigation
指で運ぶ隕石が境目で隣と行ったり来たりしてちらついていたので、戻す向きに 0.12 マスのあそびを足し、入れ替わった隣は元の位置から 0.1 秒滑らせて、運ぶ手ざわりを滑らかにする - #10
Merged
Merged
Conversation
…1 秒滑らせて、運ぶ手ざわりを滑らかにする - 入れ替わった直後は offset が反対側の境目(∓0.5)に来るので、指が 1〜2px 震えるだけで入れ替え直し、絵がちらついて音も連打になっていた(`DRAG_HYSTERESIS_ROWS`) - 入れ替わって 1 マスずれた隣は、絵だけ `Effects.slide` で元の位置から寄せる。盤面の上では一瞬で入れ替わる。120Hz の画面で tick の無い rAF に新しい位置が映らないよう、`dragBy` が返す入れ替えを指のイベントの場で渡す Co-Authored-By: Claude Fable 5.1 <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.
何を変えたか
DRAG_HYSTERESIS_ROWS)。入れ替わった直後は offset がちょうど反対側の境目にいるので、指が 1〜2px 震えるだけで隣と行ったり来たりし、絵がちらついて音も連打になっていたEffects.slide)。盤面の上では一瞬で入れ替わる。120Hz の画面で tick の無い rAF に新しい位置が映ってしまわないよう、Game.dragByが返す入れ替えを pointermove の場でfx.slideに渡すNEWSに 1 件足した確かめたこと
pnpm typecheck/pnpm test(あそびとmoves.swappedのテストを足し、修正前に落ちることを確認)/pnpm check:namespnpm e2e e2e/play.spec.ts e2e/audio.spec.ts e2e/news.spec.ts🤖 Generated with Claude Code