collision-typescript

A collision detection library for 2D games in TypeScript

Usage no npm install needed!

<script type="module">
  import collisionTypescript from 'https://cdn.skypack.dev/collision-typescript';
</script>

README

collision-typescript

GitHub Stars GitHub Stars GitHub Forks GitHub Issues Current Version

A collision detection library for 2D games in TypeScript

Collision-TypeScript is a 2D collision detection library for your HTML5 games or other browser-based projects.

This library was influenced and inspired by:

Buy me a coffee

Whether you use this project, have learned something from it, or just like it, please consider supporting it by buying me a coffee.

Installation

yarn add collision-typescript
npm install collision-typescript --save
bower install collision-typescript --save

Import

TypeScript

import { Collision2D } from "collision-typescript";

Javascript

let collision2D = require("collision-typescript");

AMD

define((require,exports,module) => {
  let collision2D = require('collision-typescript');
});

License

MIT License

Copyright (c) 2020 digitsensitive digit.sensitivee@gmail.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.