fatina-plugin-animator
v2.0.1
Published
Fatina plugin to manage animations for 2d library like Pixi.js, Phaser, ...
Downloads
6
Maintainers
Readme
Fatina Helpers
Small & Light tweening library for Games / Web
Description
This plugin provide tools to manage and use animations in html5 games any library (pixi, phaser, ...)
This is split in two parts:
- AnimationManager: use to store/instantiate animations and manage tickers
- Animator: Component added to an object to animate.
This plugin requires Fatina : Here
Getting Started
Install
If you use directly the minified version
<script src="fatina-plugin-animator.min.js"></script>
Or if you use NPM
> npm install fatina-plugin-animator
Init
// standard node.js require
var FatinaPluginAnimator = require('fatina-plugin-animator');
// OR
// standard import with typescript (typed version)
import * as FatinaPluginAnimator from 'fatina-plugin-animator';
and initialize (add this plugin to Fatina)
Fatina.init();
Fatina.loadPlugin(FatinaPluginAnimator.get());