Skip to content

eguneys/loopz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();

About

Game loop with fps limit option using request animation frame

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published