1.0.0 • Published 2 years ago
pixi-losing-connection-effect v1.0.0
Pixi Losing Connection Effect
AKA Zoom Escaper
Simulate Losing Connection Effect from pixijs
Install
# npm
npm install pixi-losing-connection-effect
# yarn
yarn add pixi-losing-connection-effect
Usage
import { LosingConnection } from "pixi-losing-connection-effect";
const app = new Application({
// **
});
const LC = new LosingConnection(app, 75);
LC.start();
// change the dealy level 1-100
LC.delay = 90;
// stop the effect
LC.stop();
// start the effect
LC.start();
// destroy
LC.destroy();
Demo
# clone this repository
$ git clone https://github.com/carl-jin/pixi-losing-connection-effect.git
$ cd pixi-losing-connection-effect
$ yarn install
$ yarn serve
License
This project is licensed under the MIT License.
1.0.0
2 years ago