Skip to content
This repository has been archived by the owner on Nov 10, 2019. It is now read-only.
/ coalesce Public archive

🐙 A minimalist 2D physics engine written and maintained with TypeScript and RxJS for games, graphs or any canvas interface

Notifications You must be signed in to change notification settings

code0wl/coalesce

Repository files navigation

WIP A modern lightweight physics engine for the browser (Currently undergoing a major rewrite)

A minimalist 2D physics engine written and maintained with TypeScript and RxJS for games, graphs or any canvas interface

Work in Progress (Do not use for Production yet) Build Status

This project is maintained using TypeScript and RxJS. Nice to know is the project you are including this library in does not need to include these dependencies, of course :). The package will only contain TypeScript and RxJS as dependencies. To keep the code as light-weight as possible, I have decided to only make it work for modern browsers. A full list of supported browsers will be up as soon as the project is complete.

Module Support

Engine will support the following modules which could be seen as features

  • Accelerometer
  • RigidShape
  • Gravity
  • Collision
  • Canvas Drawing interface
  • Different input peripheral support (mouse, keyboard, leap-motion, VR)

How to use

A full documentation will follow, but for now checking the project's package.json file will reveal how to run the demo application.

"scripts": {
    "prestart": "npm i",
    "start": "npm run prep.engine",
    "prep.demo": "npm i && webpack --config webpack/demo.config.js &&  webpack-dev-server --config webpack/demo.config.js",
    "prep.engine": "webpack --config webpack/base.config.js && webpack-dev-server --config webpack/base.config.js"
}

About

🐙 A minimalist 2D physics engine written and maintained with TypeScript and RxJS for games, graphs or any canvas interface

Resources

Stars

Watchers

Forks

Packages

No packages published