Hiyve Components - v1.0.0
    Preparing search index...

    What every game built in the shell takes, besides the frame props.

    interface GameWorldProps {
        game?: string;
        instructions?: false | GameInstructions | readonly GameInstructions[];
        levels?: number;
        mascot?: false | MascotName;
        onContinue?: () => void;
        onLevelChange?: (level: number) => void;
        onResult?: (result: GameResult) => void;
        player?: { id: string; name?: string };
        resultStore?: ResultStore;
        samples?: SampleSource;
        shellLabels?: Partial<GameShellLabels>;
        showInstructionsFirst?: boolean;
        showScore?: boolean;
        speak?: (text: string) => void | Promise<void>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    game?: string

    The game's name, stamped on its results (default: the kinds of its cards)

    instructions?: false | GameInstructions | readonly GameInstructions[]

    How to play, shown from the help button and on first play (default: made from the kinds of cards; false hides the help button)

    levels?: number

    How many levels the pills offer (default: 5)

    mascot?: false | MascotName

    The mascot who reacts to answers (default: 'owl'; false for none)

    onContinue?: () => void

    Onward from the End screen (back to a map, say): a button with a forward arrow, the main one

    onLevelChange?: (level: number) => void

    Level pills on the Ready screen: a pill was chosen (the host deals the game again at that level). The pills show only when this is given

    onResult?: (result: GameResult) => void

    A result was made, whether or not a store kept it

    player?: { id: string; name?: string }

    Who is playing, stamped on results

    resultStore?: ResultStore

    Where results go; nothing is kept without it

    samples?: SampleSource

    Recorded piano samples for the notes the cards play (see UseGameSoundsOptions); without them a small built-in voice plays

    shellLabels?: Partial<GameShellLabels>

    The shell's words: the HUD, the Ready and End screens, How to play

    showInstructionsFirst?: boolean

    Show how to play before the first card (default: false)

    showScore?: boolean

    Show points, stars and streak as the game goes (default: true)

    speak?: (text: string) => void | Promise<void>

    Your own recordings for How to play's words (see useReadAloud)