Git Product home page Git Product logo

kinexusengine's Introduction

KineXusEngine

Lightweight 2D Interactive Engine KineXusEngine is a library for building interactive experiences with motion and physics.

Installation

npm install kinexus-engine

Usage

To use KineXusEngine, import it and create a World: import { World } from 'kinexus-engine';

const world = new World(); You can then add bodies, joints, constraints, and forces to the world and simulate physics: // Add a circle body const body = world.addBody(new Circle(1));

// Add a revolute joint world.addJoint(new RevoluteJoint(body, { x: 0, y: 0 }));

// Simulate physics world.step(1 / 60);

Examples

See the examples folder for various examples of using KineXusEngine.

Documentation

See the documentation for full API details and documentation.

Contributing

We welcome contributions! Please see CONTRIBUTING.md for details.

License

KineXusEngine is MIT licensed. See LICENSE for details.

Publishing to npm

To publish a new version of KineXusEngine to npm:

Bump The Version Number

  1. Build the library: yarn build
  2. Publish: npm publish
  3. Create a git tag for the new version: git tag v1.0.0
  4. Push the tag: git push --tags

Semantic versioning uses a three-part format: MAJOR.MINOR.PATCH, where:

  • MAJOR version is incremented for incompatible API changes,
  • MINOR version is incremented for adding functionality in a backward-compatible manner, and
  • PATCH version is incremented for backward-compatible bug fixes.

Here's how you can bump up the version:

Manual Update

  1. Open your package.json file.
  2. Update the version field to the new version number.
  3. Save the changes.

For example, if the current version is 1.0.0 and you've made backward-compatible bug fixes, you would update it to 1.0.1.

Using npm version Command

Alternatively, npm provides a command that automatically updates the version number for you:

  1. To increment the PATCH version:

    npm version patch
  2. To increment the MINOR version:

    npm version minor
  3. To increment the MAJOR version:

    npm version major

This command updates the version field in package.json and also commits this change to your Git repository if your project is a Git repository.

After Bumping the Version

  • After updating the version, you should commit the changes to your version control system (if you're using one).
  • Once the new version is committed, you can publish the updated package to npm using:
    npm publish

Good Practices

  • Ensure that your package is thoroughly tested with the new changes before bumping the version and publishing.
  • Follow semantic versioning rules strictly to maintain consistency and predictability.
  • Keep track of your changes in a changelog or release notes for transparency with the package users.

This will publish the new version to npm and create a git release with the changelog.

kinexusengine's People

Contributors

edspurrier avatar

Stargazers

 avatar

Watchers

 avatar

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.