bs-ball
v0.1.0
Published
Allow you to define the ball holder inside a game to place the ball on the svg
Readme
bs-ball
Installation
npm i bs-ball
Usage
const { addBallToGame, generateBallPosition } = require('bs-ball');
// Add the class 'ball' to the ball holder
addBallToGame(player, listOfPlayers);
// Display the ball inside the svg
generateBallPosition(svgZoom, ballPosition, svgElement);All functions are curried.

