1.0.3 • Published 4 years ago

loopz v1.0.3

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

loopz

Game loop with fps limit option using request animation frame

yarn install loopz --save

Usage

import Loop from 'loopz;

// How many times update function shall be called per second
const fps = 60;

new Loop(dt => {
  // dt is passed time in milliseconds eg: ~16
  console.log(dt);
}, fps).start();
1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago