Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

There is no delta-time by default. Here is how you can implement it:

var previousTime = Date.now();
module.exports = function () {
    var now = Date.now();
    var deltaTime = now - previousTime;
    previousTime = now;
    // ...
}