Skip to content

mymess/whitestorm.js

 
 

Repository files navigation

WhitestormJS

Build Status npm bower Gitter

Issues Author Slack Status


#####Code style check: Codacy Badge bitHound Overall Score


WhitestormJS is a library which combines Three.js and Cannon.js. It makes WebGL development easy.

WhitestormJS is hosted by jsDelivr. You can link to the latest minified version, full version, or download both.

WhitestormJS

Installation

forthebadge

* It is advised to download your own copies of the following libraries, as large changes can break backwards compatibility.

Include Three.js, Wagner, and Cannon.js libraries. Include a script tag linking the WhitestormJS library in your head or after your body:

<script src="three.js"></script>
<script src="cannon.js"></script>
<script src="wagner.js"></script>
<!-- WhitestormJS library -->
<script src="{path_to_lib}/whitestorm.js"></script>

After adding these libraries, you can configure your game:

var GAME = new WHS.init({
    anaglyph: false, // Anaglyph effect.
    helper: false, // Cannon.js shape helper
    stats: "fps", // fps, ms, mb or false if not need.
    wagner: WAGNER, // wagner library variable
    gravity: { // Physic gravity.
        x: 0,
        y: -200,
        z: 0
    }
});

Join the chat at https://gitter.im/WhitestormJS/whitestorm.js

Structure

Whitestorm.js structure

Examples:

Author:

@sasha240100 forthebadge

Changelog: Look here

forthebadge

License

Лицензия Creative Commons
Произведение «WhitestormJS 3D-Library» созданное автором по имени Alexander Buzin, публикуется на условиях лицензии Creative Commons «Attribution-NonCommercial-NoDerivatives» («Атрибуция — Некоммерческое использование — Без производных произведений») 4.0 Всемирная.
Основано на произведении с https://github.com/WhitestormJS/whitestorm.js.
Разрешения, выходящие за рамки данной лицензии, могут быть доступны на странице https://github.com/WhitestormJS/whitestorm.js.

About

WhitestormJS physics + rendering of 3D

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%