0.1.0 • Published 6 years ago
bs-ball v0.1.0
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.