# phaser-slopes

> A Phaser 3 Plugin that smooths out MatterJS Tilemap Layer collisions

Latest version **0.2.0-beta** (published 2022-03-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install phaser-slopes
pnpm add phaser-slopes
yarn add phaser-slopes
bun add phaser-slopes
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0-beta |
| Published | 2022-03-11 |
| First published | 2018-08-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 74.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 35 |
| Author | Chris Andrew |
| Maintainers | hexus |

## Links

- npm: https://www.npmjs.com/package/phaser-slopes
- Repository: https://github.com/hexus/phaser-slopes
- Homepage: https://github.com/hexus/phaser-slopes#readme
- Issues: https://github.com/hexus/phaser-slopes/issues
- npm.io page: https://npm.io/package/phaser-slopes

## Dependencies (1)

- [phaser](https://npm.io/package/phaser.md) ^3.60.0-beta.4

## Recent versions

- 0.2.0-beta (latest) — 2022-03-11
- 0.1.1 — 2019-12-02
- 0.1.0 — 2018-08-27

## README

# Phaser 3 Slopes Plugin

A [Phaser 3](https://github.com/photonstorm/phaser) Plugin that smooths out MatterJS Tilemap Layer collisions.

<img width="49%" src="screenshots/before.gif"/> <img width="49%" src="screenshots/after.gif"/>

:hammer_and_wrench: This plugin is under development. Feel free to
[report any issues](https://github.com/hexus/phaser-slopes/issues/new) that you find.

---

Looking for a [Phaser CE](https://github.com/photonstorm/phaser-ce) plugin?
Check out [Phaser Arcade Slopes](https://github.com/hexus/phaser-arcade-slopes).

## Compatibility

| Phaser               | Phaser Slopes |
|----------------------|---------------|
| 3.12.0-beta - 3.55.x | ^0.1.0        |
| 3.60.0-beta.4+       | ^0.2.0-beta   |

## Usage

Install the plugin as a dependency of your project using [npm](https://www.npmjs.com/).

```bash
npm install phaser-slopes
```

Load the plugin into your Scene.

```js
import Slopes from 'phaser-slopes';

class GameScene extends Phaser.Scene
{
    preload() {
        this.load.scenePlugin('Slopes', Slopes);
    }
}
```

You can use Phaser to load the plugin as a script if you're not using [npm](https://www.npmjs.com/) for dependency
management.

```js
class GameScene extends Phaser.Scene
{
    preload() {
        this.load.scenePlugin('Slopes', 'phaser-slopes.min.js');
    }
}
```

Any MatterJS Tilemap Layers you create within the Scene will automatically collide smoothly with other physics bodies.

---
_Source: https://npm.io/package/phaser-slopes · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
