Package Exports
- phaser3-swipe-plugin
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (phaser3-swipe-plugin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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
.