【VRC】みんなで花札(こいこい)【CPU対戦4段階・手札は本人だけ・全員同期・Quest向け設定済・Blenderデータ付】
- ダウンロード商品¥ 1,000










VRChat のワールドに、赤い毛氈の花札台を置けるギミックです。遊べるのは 2 人対戦の「こいこい」。 操作盤で席について「スタート」を押せば、札が配られて対局開始。空いている席には CPU が入るので、ひとりでも遊べます。 札の絵は、昭和前期の八八花札の写真から 48 枚を切り出した本物の絵柄。ルールは、こいこいの AI 研究で公開されている対局プログラム「KoiKoi-AI」をそのまま移植しました。 役ができたら、光る大きなボタンで「こいこい」か「勝負」。役の名前と文はテーブルの上に大きく出ます。 ■ このギミックでできること ◯ 花札台 1 台の一式:テーブル、赤い毛氈と札 48 枚、両側の手札立て、操作盤 2 つ、得点ボード、役の一覧ボード。 ◯ クリックで出すだけ:手札立ての札をクリックすると場へ。同じ月の札があれば取り、山札も自動でめくります。取れる手札は金色の枠で光ります。 ◯ 場に同じ月が 2 枚ある時は、2 枚が左右に開いて光るので、取りたい方をクリック。 ◯ 手札は本人だけ:自分の手札は自分の画面にだけ表向き。相手や見ている人には裏向きに見えます。配った札の並びはネットワークに流れません。 ◯ ひとりでも CPU と対戦:よわい・ふつう・つよい・さいきょう の 4 段階。つよい・さいきょう は、まだ見えていない札を並べ直した残りの月を何十回も打ってみて手を選びます(モンテカルロ法)。 ◯ CPU は自分と同じ情報だけで打ちます:相手の手札や山札の並びはのぞきません。考える時間は 1 手 最大 6 秒で、ワールドが重くならないよう少しずつ計算します。 ◯ こいこい・勝負・流れ・持ち点を自動で計算:役は 五光・四光・雨四光・三光・猪鹿蝶・赤短・青短・花見で一杯・月見で一杯・タネ・タン・カス。こいこいの回数も文に入ります。 ◯ 1・3・6・12 ヶ月から選べる月数。持ち点 30 文ずつから始めて、決めた月数を遊ぶか、どちらかの持ち点がなくなったら終局。 ◯ 得点ボード:両面に 2 人の名前と持ち点、いまの手番、各月の記録(上がった人・役・こいこいの回数・文)。 ◯ 役の一覧ボード:両面に すべての役と その札の絵。初めての人も 見ながら遊べます。 ◯ 全員同期:札の動き・光る枠・役の表示・得点ボード・効果音はワールドにいる全員で同じように見えます。途中から入った人にも今の場が見えます。対局中にプレイヤーが抜けた時や、自分の番にヘッドセットを外したままの時は CPU が代わりに打ちます。 ◯ 効果音 12 種:配る・札を打つ・取る・めくる・役・こいこい・上がり・流れなど(拍子木や琴の音色)。 ■ 付属するデータ ◯ VRChat ワールド向け unitypackage(プレハブ・サンプルシーン・スクリプト・札の絵・効果音 12 種) → 新規ワールドプロジェクトにインポートし、サンプルシーンを開くとすぐに遊べます。 ※ TextMesh Pro の Essential Resources を事前にインポートしてください(Window > TextMeshPro)。 ◯ Blender データ(全モデルの .blend と FBX、パレット) → テーブル・手札立て・操作盤・ボードの形と色を自由に改変できます。色は 16×16 のパレット画像 1 枚で管理しています。 ■ 大きさ・ポリゴン数の目安(1 台) ◯ テーブル 約 1.52m × 1.14m(毛氈の高さ 約 0.74m)、得点ボードと役の一覧ボードを含めた幅 約 2.9m・高さ 約 1.74m ◯ いちばん多い時で △約 6,500(テーブル・手札立て・操作盤・ボード 約 5,800、札 1 枚 12)+ 文字 ◯ マテリアル 6 + 文字、テクスチャは札(4096×4096)・毛氈・役の一覧・光る枠・パレット・文字のアトラス。ライトなし ◯ 物理演算(Rigidbody)は使っていません ◯ Quest 向け:すべてのマテリアルが VRChat/Mobile シェーダー。テクスチャは Android 用に ASTC 圧縮(札は 2048×2048)に設定済みで、Android 向けにビルドしたサンプルワールドは 約 6MB です。 ■ 調整できること(Inspector) 空いた席に CPU を入れるか、選べる月数、最初の持ち点、月の結果を見せる秒数、スリープした人の代わりに CPU が打つまでの秒数、CPU が考えるいちばん短い/長い時間、CPU が 1 フレームに計算する時間、つよい・さいきょう が 1 つの手を試す回数。 ■ 動作確認済みの環境 Unity 2022.3.22f1 / VRChat SDK 3.10.5(UdonSharp 同梱)/ Blender 5.2 LTS(.blend は 5.2 で保存。旧版の Blender では同梱の FBX をお使いください) 新規プロジェクトへインポートしたサンプルシーンで、ルール(役・文・こいこい・流れ・配り直し)が元のプログラムと一致すること(記録された 200 局・1,579 月・21,435 手と、ランダムな 2,000 月のすべての局面)・CPU の手が設計どおりであること(728 局面)・4 段階すべての CPU の応答時間・クリックでの札の出し方と取り方・こいこいと勝負・投了・持ち点がなくなった時の終局・設定の切りかえ・途中参加・見ている人の画面・持ち主が替わった時の配り直し・プレイヤーが抜けた時の CPU の代わり を自動テストで確認しています。 ■ 利用規約 ◯ VRChat のワールドに組み込んで公開できます(有料・企業・イベント用ワールドも可)。報告・クレジット表記は不要です。 ◯ 改変は自由です。 ◯ データ本体・スクリプト・改変データの再配布や販売は禁止です(例: このギミックを同梱したワールドデータを BOOTH で販売する等)。 ◯ ワールドの外(ほかのゲームや映像作品など)で使う場合は事前にご相談ください。 ■ お問い合わせ 不具合やご不明な点は、BOOTH のメッセージからお気軽にご連絡ください。 ■ 制作について 3D モデル・テクスチャ・スクリプト・効果音は、制作者の指示のもとで AI アシスタントがコードとして生成し、制作者が調整・確認しています。 こいこいのルールは Sanghai Guan「KoiKoi-AI」(Copyright (c) 2023 Sanghai Guan、MIT License)を移植したものです(ライセンス文を同梱しています)。CPU の考え方は本作品のための新規制作です。 札の絵は、Wikimedia Commons の「白美人印の八八花札(昭和前期)」の写真(パブリックドメイン)から切り出して整えたものです。 フォントは Zen Maru Gothic(SIL Open Font License 1.1)を同梱しています。 ■ 更新履歴 v1.0 初版 ―――――――――――――――――――― [English] A hanafuda table with a red felt mat for VRChat worlds (UdonSharp): two-player koi-koi, with a CPU opponent. Take a seat on a console and press START; the cards are dealt. An empty seat is played by the CPU, so you can play alone. The cards are cut from a photo of an early-Showa hachihachi deck, and the rules are a port of the koi-koi game in "KoiKoi-AI". When you make a hand, the big buttons light up: koi-koi or stop. - A full set: a table, the felt mat and 48 cards, a card rack for each player, two consoles, a score stand and a board of hands (table about 1.52 x 1.14 m; about 2.9 m wide and 1.74 m tall with the boards) - Click a card in your rack to play it; matching cards are taken and the stock card is turned over automatically; the cards that can take light up in gold - When two field cards match, they open apart and light up: click the one you want - Your hand is face up only on your own screen; others see the backs, and the deal is never sent over the network - A CPU opponent with four levels; the two strongest play the rest of the round out dozens of times with the unseen cards dealt at random (Monte Carlo); it sees only what a player sees, thinks up to 6 s a move, a little each frame so the world never stutters - Koi-koi, stop, exhausted rounds and the score are handled automatically; games of 1, 3, 6 or 12 months from 30 points each - A score stand with each month's record, and a board of every hand with its cards - Synced for everyone; late joiners see the table as it is; a player who leaves (or sleeps on their turn) is replaced by the CPU - 12 sound effects; a sample scene and the Blender source files (.blend + FBX) - Quest-ready settings: every material uses VRChat Mobile shaders and the textures are ASTC-compressed for Android; the sample world built for Android is about 6 MB - Tested in a fresh project: Unity 2022.3.22f1 / VRChat SDK 3.10.5. Please import TextMesh Pro Essential Resources first. Questions or problems: please contact us via BOOTH messages. License: free to use in any VRChat world (commercial use OK, no credit needed). Redistribution or resale of the data, modified or not, is prohibited. Made with the help of an AI assistant (models, textures, scripts and sound effects generated as code, then checked and adjusted by the author). The koi-koi rules are a port of Sanghai Guan's "KoiKoi-AI" (Copyright (c) 2023 Sanghai Guan, MIT License; license included). Card art: cut from the public-domain photo "白美人印の八八花札(昭和前期)" on Wikimedia Commons. Font: Zen Maru Gothic (SIL OFL 1.1).
利用規約
◯ VRChat のワールドに組み込んで公開できます(有料・企業・イベント用ワールドも可)。報告・クレジット表記は不要です。 ◯ 改変は自由です。 ◯ データ本体・スクリプト・改変データの再配布や販売は禁止です(例: このギミックを同梱したワールドデータを BOOTH で販売する等)。 ◯ ワールドの外(ほかのゲームや映像作品など)で使う場合は事前にご相談ください。 [English] Free to use in any VRChat world (commercial use OK, no credit needed). Redistribution or resale of the data, modified or not, is prohibited.
更新履歴
v1.0(2026/10/06) 初版










