@codyjdalton/game-time

Simple utility to track time in JavaScript games.

Usage no npm install needed!

<script type="module">
  import codyjdaltonGameTime from 'https://cdn.skypack.dev/@codyjdalton/game-time';
</script>

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