# phaser3-swipe-plugin

> Mobile swipe plugin for Phaser 3.

Latest version **1.0.6** (published 2019-01-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install phaser3-swipe-plugin
pnpm add phaser3-swipe-plugin
yarn add phaser3-swipe-plugin
bun add phaser3-swipe-plugin
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2019-01-04 |
| First published | 2018-12-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 15 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | ilyazelenko |
| Keywords | Phaser, Phaser 3, Phaser3, Swipe, Mobile, Plugin |

## Links

- npm: https://www.npmjs.com/package/phaser3-swipe-plugin
- npm.io page: https://npm.io/package/phaser3-swipe-plugin

## Alternatives

- [adhdev](https://npm.io/package/adhdev.md) — 11.1K weekly downloads
- [react-slide-button](https://npm.io/package/react-slide-button.md) — 310 weekly downloads
- [better](https://npm.io/package/better.md) — 42 weekly downloads
- [react-native-swipe-image](https://npm.io/package/react-native-swipe-image.md) — 22 weekly downloads
- [nl.fokkezb.pulltorefresh](https://npm.io/package/nl.fokkezb.pulltorefresh.md) — 11 weekly downloads

## Recent versions

- 1.0.6 (latest) — 2019-01-04
- 1.0.5 — 2019-01-04
- 1.0.4 — 2019-01-04
- 1.0.3 — 2019-01-04
- 1.0.2 — 2019-01-04
- 1.0.1 — 2019-01-04
- 1.0.0 — 2018-12-30

## README

### Installation

```bash
npm i --save phaser3-swipe-plugin

# Or 

yarn add phaser3-swipe-plugin
```

### Usage

1. Import
```js
import SwipePlugin from 'phaser3-swipe-plugin'
```

2. Add to config (GameConfig) `plugins` property.

```js
  ...
  plugins: {
    global: [
      {
        key: 'RandomNamePlugin',
        plugin: SwipePlugin,
        start: true,
        data: {
          // you can give your value for min offset
          offset: 123
        }
      }
    ]
  }
  ...
```

Tested on Phaser `3.15.1`.

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