@codyjdalton/game-time
TypeScript icon, indicating that this package has built-in type declarations

0.0.0-2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @codyjdalton/game-time

Weekly Downloads

1

Version

0.0.0-2

License

ISC

Unpacked Size

127 kB

Total Files

34

Last publish

Collaborators

  • codyjdalton