UNIT9 presents VIVID. A WebVR experiment, where users make fireworks explode by matching three rockets of the same colour.
With Vivid, UNIT9 Digital has pushed the boundaries of WebVR. Using real time graphics built in WebGL, the team have created a stunning WebVR experiment. You simply need a smartphone and cardboard and you can begin a fireworks display in WebVR. Give it a try here on your smartphone.
# Clone the project.
git clone https:/unit9/vivid.git
# Enter the project directory.
cd vivid
# Install npm dependencies.
npm install
# Initialize development server at localhost:8080.
npm run dev
npm run dev
Spins up a Webpack development server at localhost:8080 and keeps track of all JavaScript and SASS changes to files. Only reloads automatically upon save of JavaScript files.
npm run build
Cleans existing build folder while linting JavaScript folder and then copies over the public
folder from src
. Then sets environment to production and compiles JavaScript and CSS into build.
You can run any of these individually if you'd like with the npm run command:
prebuild
- Cleans build folder and lintssrc/js
folder usingsemi-standard
.clean
- Cleans the build folder.lint
- Runs lint onsrc/js
folder and uses.eslintrc
file in root as linting rules.webpack-server
- Createwebpack-dev-server
withhot-module-replacement
.webpack-watch
- Run Webpack in development environment with watch.dev:sass
- Runnode-sass
onsrc/css
folder and output tosrc/public
and watch for changes.dev:js
- Run Webpack in development environment without watch.build:dir
- Copy files and folders fromsrc/public
tobuild
.build:sass
- Runnode-sass
onsrc/css
and output compressed CSS tobuild
folder.build:js
- Run Webpack in production environment.