@merci-michel/mm-movieclip

3.0.0 • Public • Published

MM Movieclip

Flash based Movieclip class – acts like a virtual timeline

Usage

Basic

Basic example.

import Movieclip from '@merci-michel/mm-movieclip'
import Render from '@merci-michel/mm-render'

const mc = new Movieclip()
mc.totalFrames = 2;
mc.addFrameScript(1, () => {
	mc.stop();
});
mc.play();

function render() {
	mc.tick();
}

Render.init();
Render.add(render, mc.fps);

Check docs for more advanced usage

Build

To build the sources with babel in ./lib directory :

npm run build

Documentation

To generate the JSDoc :

npm run docs

To generate the documentation and deploy on gh-pages branch :

npm run docs:deploy

Testing

To run the tests, first clone the repository and install its dependencies :

git clone https://github.com/MM56/mm-movieclip.git
cd mm-movieclip
npm install

Then, run the tests :

npm test

To watch (test-driven development) :

npm run test:watch

For coverage :

npm run test:coverage

Readme

Keywords

none

Package Sidebar

Install

npm i @merci-michel/mm-movieclip

Weekly Downloads

1

Version

3.0.0

License

MIT

Unpacked Size

26.7 kB

Total Files

9

Last publish

Collaborators

  • pqml
  • nikitaskar
  • jordandelcros
  • pfer
  • gpolguere