phaser3-swipe-plugin
v1.0.6
Published
Mobile swipe plugin for Phaser 3.
Downloads
106
Maintainers
Readme
Installation
npm i --save phaser3-swipe-plugin
# Or
yarn add phaser3-swipe-plugin
Usage
- Import
import SwipePlugin from 'phaser3-swipe-plugin'
- Add to config (GameConfig)
plugins
property.
...
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
.