本文へ移動

Tenka天下

2〜6人で、シードから始まる世界征服ゲームを遊べます。さいころでの戦い、カード、コンピューターの相手、ゲームの保存に対応します。

「天下」は、天の下に広がる世界を表す言葉です。 名前について(英語)

目次

リファレンス · さいころとカードの表示

TenkaDressingOptions型

リファレンスの説明と例は英語です。見出しと目次は日本語です。

What tenkaDressing may be given. Everything is optional.

インポート

import type { TenkaDressingOptions } from "@johnmorrisdotca/tenka/dressing";

定義

type TenkaDressingOptions = {
    sound?: boolean;
    tumbleMs?: number;
    back?: CardBackOptions;
};

メンバー

名前型説明
sound (省略可)boolean | undefined

Whether a throw makes the sound of dice: off unless asked, because a page that has not asked for noise gets none.

tumbleMs (省略可)number | undefined

How long the dice tumble before they land, in milliseconds: 600 unless said. 0 lands them at once. A device that asks for reduced motion lands them at once whatever this says.

back (省略可)CardBackOptions | undefined

Tenka's own back for the deck is drawn in the table's green, with the character 天 in the middle; say any of its colours or its mark here to change it. art, image and logo are Toranpu's, for a back of your own.

例

import type { TenkaDressingOptions } from "@johnmorrisdotca/tenka/dressing";

const value: TenkaDressingOptions = {sound:false,tumbleMs:200};
console.log(value);
{ sound: false, tumbleMs: 200 }

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/tenka 2.2.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。