Neon Stack: auto-shift stops after tapping the opposite direction

オープン 初心者向け
#9 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
85/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
game-dev

調査の方向性

保持されている方向とDAS/ARRのリピートタイマーを処理している games/stack/scenes/GameScene.ts:225-243 を読みます。Leftを押したままRightをタップして問題を再現し、held と dasDir がリピートをどのように決定するかを調べます。押し続けられている方向に対してオートシフトが継続するように、方向の処理を更新します。npm run typecheck と npm run build で確認します。

索引モデルが issue の本文から書いたものです。

説明

bug good first issue severity: low

Summary

Holding Left, tapping Right once and continuing to hold Left stops the piece from sliding until the key is released and pressed again.

Where

  • games/stack/scenes/GameScene.ts:225-243

Details

held gives Left priority, and dasDir is only set on justPressed. After hold-left then tap-right, dasDir is 1 while held is -1, so neither the repeat branch (held === this.dasDir) nor the reset branch (held === 0) runs again.

Steps to reproduce

  1. Hold Left until the piece auto-repeats.
  2. Tap Right once while still holding Left.
  3. The piece no longer moves left.

Suggested fix

When held !== 0 && held !== this.dasDir, set dasDir = held and reset the DAS and ARR timers. Better: track the most recently pressed direction that is still down.

Acceptance criteria

  • Auto-shift continues for whichever direction is still held

Getting started

  • Relevant files: games/stack/scenes/GameScene.ts
  • Run locally: npm install, then npm run dev
  • Checks: npm run typecheck and npm run build (there is no test suite yet)
  • Related docs: README.md

Filed by repo-audit/full-audit at b001f5d. Severity: low. Effort: S. audit-key: bug|games/stack/scenes/GameScene.ts|handleInput-das

主要言語
TypeScript
スター
3
フォーク
3
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

TMHSDigital/GH-Arcade のほかの issue

TMHSDigital/GH-Arcade の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。