@io-game-framework/gamegrid
v0.0.10
Published
A gamegrid for an IO-style browser game.
Downloads
11
Maintainers
Readme
gamegrid
A gamegrid for an IO-style browser game.
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();
}