Pixel art style matter.js renderer plugin
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

lark-matter

Pixel art style matter.js renderer plugin.

screenshot

Demos

wrecking

newton

Usage

See the sample code of the car demo.

    Matter.use('lark-matter');
    // Pixel size of a dot
    LarkMatter.options.dotSize = 5;
    // Number of pixel art rotation patterns
    LarkMatter.options.rotationNum = 16;
    // Enable sound effects
    LarkMatter.options.enableSes = false;
    // Enable a bgm
    LarkMatter.options.enableBgm = false;
    // Set a random seed for generating pixels, particles and audios
    // (null: Set a seed randomly each time)
    LarkMatter.options.seed = null;
    // OnRender callback function
    LarkMatter.options.onRender = null;

Libraries

pixel-art-gen / particle-pattern-emitter / sounds-some-sounds / gif-capture-canvas