Skip to content

目線のある盤面の下で塔の伸びに気づけるよう、9 段を越えた列の発射台を高さに応じて光らせ、予兆が出た瞬間に短く振動させる - #5

Merged
uphy merged 1 commit into
mainfrom
tower-warning
Sep 27, 2026

Conversation

@uphy

@uphy uphy commented Sep 27, 2026

Copy link
Copy Markdown
Owner

何を変えたか

  • 塔の高さに応じて、その列の発射台(盤面のすぐ下)を光らせる(View.drawTowerLamps)
    • 9 段(WATCH_ROWS)で薄い橙、10 段で橙、11 段(予兆)で橙に脈打つ、12 段(数え上げ)で上端の警告と同じ赤で明滅
    • 燃えカスを含む列と空中のカタマリが覆う列は光らせない(予兆と同じ決まり。Game.towers が 0)
    • 灯は色ごとに焼いて貼り、光の玉を lighter で重ねる
  • 予兆が出た瞬間に 20ms 振動させる(警告は 30ms のまま)
  • docs/decisions.md に「塔を発射台で知らせる」、お知らせを 1 件足した

なぜ

予兆と警告は盤面の上端に出るが、遊んでいるあいだの目線は盤面の下にあるので、1 本だけ伸びた塔を見落として滅亡していた。

CPU に 30 回遊ばせた中央値で、滅亡した列がその高さに居た時間:

高さ 滅亡の何秒前から 試合中に出ている割合
9 段以上 9.8 秒 12%
10 段以上 6.5 秒 6%
11 段以上(今の予兆) 3.0 秒 3%

9 段から灯せば気づける時間が 3 倍ほどに延び、出っぱなしにもならない。

確かめたこと

  • pnpm typecheck / pnpm test / pnpm check:names
  • pnpm e2e e2e/play.spec.ts e2e/effects.spec.ts
  • スクリーンショットで 9〜12 段の灯の見え方

@github-actions

Copy link
Copy Markdown

@uphy
uphy merged commit dbe0f1d into main Sep 27, 2026
5 checks passed
@uphy
uphy deleted the tower-warning branch September 27, 2026 06:08
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.

1 participant