Giter Site home page Giter Site logo

creativetechguy / planck.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from piqnt/planck.js

0.0 0.0 0.0 14.74 MB

[Fork of] 2D JavaScript Physics Engine

Home Page: http://piqnt.com/planck.js/

License: MIT License

JavaScript 27.40% TypeScript 72.60%

planck.js's Introduction

Planck.js

This is a fork of planck.js from v1.0.0-alpha.4.

This is published as a reference of the changes made. It is not intended to be used by anyone else so use at your own risk.

See CHANGES.md to see the changes that have been made to the fork.

Main Goals (Fork motivation)

Planck.js was not tree-shakable. This fork bundles the library as ESM without any dependencies and removes coupling between different classes so they can be more easily removed. This can result in up to a 50% reduction of bundle size compared to the UMD version (based on which classes you use).

How to use

  • Pull repo
  • npm ci to install dependencies
  • npm run build to create dist folder
  • npm pack to create a tarball to be installed
  • Copy the tarball into the destination repo
  • Install the local tarball with npm install --save <relative-tar-path>
    • Be sure that the path you use is relative (or absolute). Eg: ./folder/planck not folder/planck.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.