three-clashlike-controls

2.0.1 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i three-clashlike-controls

Weekly Downloads

2

Version

2.0.1

License

MIT

Unpacked Size

6.25 kB

Total Files

4

Last publish

Collaborators

  • kylejlin