An open API service indexing awesome lists of open source software.

https://github.com/digitsensitive/collision-typescript

A collision detection library for 2D games in TypeScript
https://github.com/digitsensitive/collision-typescript

Last synced: 2 months ago
JSON representation

A collision detection library for 2D games in TypeScript

Awesome Lists containing this project

README

        

collision-typescript
====================
[![GitHub Stars](https://img.shields.io/david/digitsensitive/collision-typescript?style=flat-square)](https://david-dm.org/digitsensitive/collision-typescript)
[![GitHub Stars](https://img.shields.io/github/stars/digitsensitive/collision-typescript?style=flat-square)](https://github.com/digitsensitive/collision-typescript/stargazers) [![GitHub Forks](https://img.shields.io/github/forks/digitsensitive/collision-typescript?style=flat-square)](https://github.com/digitsensitive/collision-typescript/network/members) [![GitHub Issues](https://img.shields.io/github/issues/digitsensitive/collision-typescript?style=flat-square)](https://github.com/digitsensitive/collision-typescript/issues) [![Current Version](https://img.shields.io/npm/v/collision-typescript?style=flat-square)](https://www.npmjs.com/package/collision-typescript)

#### 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:

- [to be filled]()

## 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.



Buy Me A Coffee

## Installation

```sh
yarn add collision-typescript
npm install collision-typescript --save
bower install collision-typescript --save
```
## Import

### TypeScript

```typescript
import { Collision2D } from "collision-typescript";
```

### Javascript

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

### AMD

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

## License

[MIT License](https://opensource.org/licenses/mit-license.php)

Copyright (c) 2020 digitsensitive

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.