WhitestormJS / whitestorm-app-boilerplate

[WIP] WhitestormJS 2 App boilerplate
http://whs-boilerplate-app.surge.sh/
MIT License
45 stars 17 forks source link

More examples? #1

Closed pepf closed 7 years ago

pepf commented 7 years ago

I like the idea of having a boilerplate, but I can't really figure out how to use it. For example, how to add physics in this sample scenario?

Syntax that I find on other websites about whitestorm doesn't match the syntax used in the boilerplate, so thus far I wasn't able to customise this example to fit my needs.

sasha240100 commented 7 years ago

@perf Yep, we use v2.x.x beta in this repo. To add physics, simply include physics-ammonext-module dependency to your app file and get some modules from it.

import {WorldModule, SphereModule} from 'physics-ammonext-module';

Then use them as written in whitestorm.js readme

sasha240100 commented 7 years ago

http://codepen.io/sasha240100/pen/wgEXwN