项目作者: photown

项目描述 :
TypeScript minimalist 2D physics library.
高级语言: JavaScript
项目地址: git://github.com/photown/Newtn.git
创建时间: 2018-03-09T23:29:27Z
项目社区:https://github.com/photown/Newtn

开源协议:GNU General Public License v3.0

下载


Newtn

TypeScript minimalist 2D physics library.

Usage

Just include either newtn.js or newtn.min.js in you html file.

Development

Install the npm dependencies:
npm install --save-dev gulp gulp-concat gulp-uglify gulp-sequence gulp-strip-comments

To compile, either:
Run gulp compileAndGenerateLibFiles for transcompiling to JavaScript

Or:
Run gulp watch to compile every time you save a TypeScript file.

TODOs

  • debug drawing
  • custom body skins
  • gravitational pulling
  • more accurate render loop
  • complex bodies