How to use baragouin - 1 common examples

To help you get started, we’ve selected a few baragouin examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github clubgamedev / lost-chapters / src / game / utils / dialog.js View on Github external
export function sayLine(line) {
    if (game.dialog.voice.skipSpeech) {
        game.dialog.textSprite.text = line;
        return;
    }

    game.dialog.speech = baragouin(line, Object.assign({
        onNote(text) {
            game.dialog.textSprite.text = text;
        },
        onEnd(text) {
            game.dialog.textSprite.text = text;
            delete game.dialog.speech
        }
    }, game.dialog.voice));
}

baragouin

Good old gibberish for your virtual characters

ISC
Latest version published 3 years ago

Package Health Score

42 / 100
Full package analysis

Popular baragouin functions