2.0.1 • Published 6 years ago

three-clashlike-controls v2.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

three-clashlike-controls

"Pixel perfect" touch controls for THREE.js apps, similar to that of Clash of Clans.

Usage

npm install --save three-clashlike-controls
import createClashlikeControls from 'three-clashlike-controls';
import * as THREE from 'three';

// Set up your Scene, OrthographicCamera, and WebGLRenderer...

createClashlikeControls(camera, scene, render.domElement);

Note: this requires THREE.js 0.97.0 or higher as a peer dependency.

2.0.1

6 years ago

2.0.0

6 years ago

1.0.0

6 years ago