UNPKG

typed-loop

Version:

A loop class to enable flexible intervals for visual experiments and games. It provides delta time in various formats and uses `requestAnimationFrame` for the timeouts. It's possible to use `setTimeout` with given `targetDeltaTime`.

40 lines 998 B
{ "name": "typed-loop", "version": "1.0.4", "description": "", "main": "lib/Loop.js", "repository": { "type": "git", "url": "git+https://github.com/Luftare/typed-loop" }, "scripts": { "format": "prettier --write \"src/**/*.ts\"", "lint": "tslint -p tsconfig.json", "test": "jest --config jestconfig.json", "test:watch": "jest --config jestconfig.json --watchAll", "prepare": "npm run build", "prepublishOnly": "npm test && npm run lint", "build": "tsc", "version": "npm run format && git add -A src", "postversion": "git push && git push --tags" }, "keywords": [ "timeout", "loop", "gameloop", "interval", "delta-time" ], "author": "", "license": "ISC", "devDependencies": { "@types/jest": "^25.2.1", "@types/node": "^13.11.0", "jest": "^25.2.1", "prettier": "^2.0.4", "ts-jest": "^25.2.1", "typescript": "^3.8.3", "tslint": "^6.1.1", "tslint-config-prettier": "^1.18.0" } }