@justinhardin/p5js-diceroller

1.0.6 • Public • Published

Dice Roller

Diceroller is a simple p5.js sketch that rolls a 3d die and keeps track of the rolled value

Drag Racing

To install

  1. npm install (installs dependencies)
  2. npm run build (builds the dist folder)

To run

  1. npm run start (starts up a local webpack dev server)

To use

  1. This component will render inside of an element with the id 'diceroller-container'
  2. One running, click anywhere in the sketch to roll. The dice will slow down and 'snap' to a face, and the fallow should appear in the lower right corner.
  3. With the sketch 'in focus' hit the space bar, this will pause the roll

That's it!

Readme

Keywords

Package Sidebar

Install

npm i @justinhardin/p5js-diceroller

Weekly Downloads

1

Version

1.0.6

License

ISC

Unpacked Size

2.66 MB

Total Files

14

Last publish

Collaborators

  • justinhardin