@codyjdalton/game-time
v0.0.0-2
Published
Simple utility to track time in JavaScript games.
Downloads
10
Readme
Game Time
Simple utility to track time in JavaScript games.
Installing
npm install game-time
Usage
After installing, use it to track the passage of time.
const GameTime = require('game-time');
const ticker = new GameTime();
ticker.setStart({
startDate: '01/01/1983',
timeFactor: 1,
});
ticker.start();
License
This project is licensed under the MIT License - see the LICENSE.md file for details