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

    Interface BalloonRideGameProps

    Props for BalloonRideGame.

    interface BalloonRideGameProps {
        collectionStore?: CollectionStore;
        game?: string;
        instructions?: false | GameInstructions | readonly GameInstructions[];
        labels?: Partial<BalloonRideLabels>;
        levels?: number;
        mascot?: false | MascotName;
        onAnother?: () => void;
        onContinue?: () => void;
        onError?: (error: Error) => void;
        onFlightCompleted?: (summary: BalloonSummary) => void;
        onLevelChange?: (level: number) => void;
        onResult?: (result: GameResult) => void;
        onSkyChange?: (sky: BalloonSky) => void;
        onSkyCollected?: (sky: BalloonSky, isNew: boolean) => void;
        player?: { id: string; name?: string };
        resultStore?: ResultStore;
        samples?: SampleSource;
        seed: number;
        settings?: Partial<BalloonSettings>;
        shellLabels?: Partial<GameShellLabels>;
        showInstructionsFirst?: boolean;
        showScore?: boolean;
        sky?: BalloonSky;
        sounds?: boolean;
        speak?: (text: string) => void | Promise<void>;
        subtitle?: string;
        sx?: SxProps<Theme>;
        title?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    collectionStore?: CollectionStore

    Where the skies won are kept, one collection per player; without one they last as long as the page

    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)

    labels?: Partial<BalloonRideLabels>
    levels?: number

    How many levels the pills offer (default: 5)

    mascot?: false | MascotName

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

    onAnother?: () => void

    A new flight from the End screen: deal another seed

    onContinue?: () => void

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

    onError?: (error: Error) => void
    onFlightCompleted?: (summary: BalloonSummary) => void

    The balloon landed at the fair

    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

    onSkyChange?: (sky: BalloonSky) => void

    The player chose a sky on the Ready screen

    onSkyCollected?: (sky: BalloonSky, isNew: boolean) => void

    A landing won a sky: isNew the first time

    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

    seed: number
    settings?: Partial<BalloonSettings>

    The flight: its level (1–5) sets the questions, how close their sounds are and how many gates; gates, questions and listen change them (mergeBalloonSettings)

    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)

    The sky to fly in (default: the day sky); the Ready screen offers the skies the player has won

    sounds?: boolean

    Sound effects: the burner, a star, a bump (default: true). The gates' sounds always play: they are the questions

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

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

    subtitle?: string

    A line under the title

    sx?: SxProps<Theme>
    title?: string

    The game's name over the sky