おみくじのピタゴラスイッチに新パターン2種を追加(レジストリ化+毎回ランダム選択) (#200) - #210
Draft
ShinoharaTa wants to merge 7 commits into
Draft
Conversation
共通フレーム(外壁・鈴と鈴の緒・狐・ビン)を omikujiPatterns/frame.js に、 既存装置v3の中間からくりを pattern01Karakuri.js に移設。 buildMachineWorld はパターン未指定なら毎回ランダムに選ぶ (現時点では1パターンのため挙動は従来と同一)。 検証スクリプトは全パターンを掃引するよう拡張。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015NjEjZtmCpVdJtCeFumYzG
左右につづら折りの坂を渡り、吊り風鈴を鳴らしながら回転バーを抜けて 狐へ届く1玉完結の構成。ヘッドレス掃引(儀式0〜30秒×1801点)失敗0、 最遅到達10.4s。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015NjEjZtmCpVdJtCeFumYzG
斜面で加速した玉1が台の玉2をビリヤードの要領で弾き飛ばし、 弾かれた玉2が先行・玉1が後続の二玉行列で狐へ向かう構成。 ヘッドレス掃引(儀式0〜30秒×1801点)失敗0、玉2先着16/16、 最遅到達5.2s。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015NjEjZtmCpVdJtCeFumYzG
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015NjEjZtmCpVdJtCeFumYzG
node scripts/preview-omikuji.js で自己完結型のプレビューHTMLを書き出す。 全パターンを並べて自動再生(18秒ごとにリプレイ)し、パターン追加・ 調整時の目視確認に使う(掃引テストと併用)。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015NjEjZtmCpVdJtCeFumYzG
新パターン(sekisho): 玉A(大)が跳ね戸の関所で縦穴へ落ち、カタパルトの 錘となって小玉Bを打ち上げる。Bは空中の風鈴を鳴らしながら放物線で本道に 着地し「二周目」を走り、閉じ直った関所を渡って左端からピンボールゾーン (赤十字スピナー+高反発ピン)へ。大坂を疾走して狐に到達する。 設計上の要点: - 関所の跳ね戸は演出制御の静的ボディ(最初の玉で一度だけ開く)。物理の 吊り橋はソフト拘束のファントム振動が儀式時間依存の挙動を生むため不採用 - 打ち上げは「カップ搭乗拘束」+射出正規化(位置・速度・スピンを規定値に 揃える)。腕の振りの見た目は物理のまま、放物線を毎回同一にする - 風鈴・跳ね戸は建設時凍結(ドミノと同じ流儀)で位相依存を排除 検証: 儀式0〜30秒×301点の掃引で失敗0(最遅到達14.8s)、微振動全項目0。 つづら折りの風鈴坂(zigzag)・玉突きリレー(billiard)は「元装置の劣化版」 評価のため廃棄(方針: 作れるだけ作って良いものだけ残す)。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015NjEjZtmCpVdJtCeFumYzG
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015NjEjZtmCpVdJtCeFumYzG
Member
Author
パターン刷新(フィードバック反映)「zigzag・billiard は元装置の劣化版」とのフィードバックを受け、両パターンを廃棄し、新パターン 「吊り橋の関所と二周目の道」(sekisho) に置き換えました。 演出の流れ
検証
|
ShinoharaTa
marked this pull request as draft
July 24, 2026 13:31
Member
Author
|
新パターン(sekisho)が期待と異なるため一旦保留(ドラフト化)。イメージ合わせのスケッチをもらってから作り直す。 |
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.



Closes #200
概要
おみくじのピタゴラスイッチ装置をパターンレジストリ構成に分離し、新パターンを2種追加した。選択は方針決定どおり毎回ランダム。
構成(1修正=1コミット)
omikujiPatterns/frame.jsへ、既存装置v3をpattern01Karakuri.jsへ移設。buildMachineWorldはパターン未指定なら毎回ランダムに選ぶ(シーン側は変更不要)。検証スクリプトは全パターン掃引に対応。新パターンの追加手順は
omikujiPatterns/index.js冒頭にコメントで明文化(ヘッドレス検証必須)。検証(全パターン)
yarn generate(node:18)成功、yarn.lock差分なしレンダリング確認(Chrome実描画)
つづら折りの風鈴坂(連鎖中 / 完走後):
玉突きリレー(玉突き直前 / 玉2到達・玉1後続中):
再現手順(レビュー用)
🤖 Generated with Claude Code
https://claude.ai/code/session_015NjEjZtmCpVdJtCeFumYzG