Skip to the content

Jarajaraジャラジャラ

Draw mahjong tiles, arrange racks and stacked boards, and play seeded Awase alone or at a shared table.

Jarajara is the Japanese sound of mahjong tiles rattling together. About the name

Contents

Reference · Recorded sounds

TILE_SOUND_DATAconstant

The tile sounds, recorded: a tile picked up, set down, turned over, a pair knocked, the tiles shuffled and a clatter for a win, as base64 AAC (.m4a). From Kenney's Casino Audio pack, CC0; see CREDITS.md. Written by scripts/sounds.mjs from the files in ./sounds, never by hand. createTileSounds loads this module only when a sound is first played, so a page that stays silent never downloads it.

Import it

import { TILE_SOUND_DATA } from "@johnmorrisdotca/jarajara/sounds";

Definition

const TILE_SOUND_DATA: Readonly<Record<TileSoundFile, string>>

Members

NameTypeDescription
flip-1string
flip-2string
pair-1string
pair-2string
pair-3string
pair-4string
pick-1string
pick-2string
place-1string
place-2string
place-3string
shuffle-1string
shuffle-2string
shuffle-3string
win-1string
win-2string

Examples

import { TILE_SOUND_DATA } from "@johnmorrisdotca/jarajara/sounds";
console.log(Object.keys(TILE_SOUND_DATA));
[
  'flip-1',    'flip-2',
  'pair-1',    'pair-2',
  'pair-3',    'pair-4',
  'pick-1',    'pick-2',
  'place-1',   'place-2',
  'place-3',   'shuffle-1',
  'shuffle-2', 'shuffle-3',
  'win-1',     'win-2'
]

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/jarajara 1.7.0.