@io-game-framework/gamegrid
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.10 • Public • Published

    gamegrid

    A gamegrid for an IO-style browser game.

    output

    Usage

    import { GameGrid, GameGridConfig } from "@io-game-framework/gamegrid";
     
    ...
     
    if (this.canvas.current) {
        const gameGridConfig: GameGridConfig = {
            canvasElement: this.canvas.current,
            lineCount: 50,
            lineSpacing: 30,
            mouseMovementBorder: 0.4,
            mouseMovementSpeedMultiplier: 3.5,
        };
     
        const grid = new GameGrid(gameGridConfig);
        grid.draw();
    }

    Install

    npm i @io-game-framework/gamegrid

    DownloadsWeekly Downloads

    11

    Version

    0.0.10

    License

    Apache-2.0

    Unpacked Size

    21.9 kB

    Total Files

    9

    Last publish

    Collaborators

    • payton-quinn