phaser3-swipe-plugin

1.0.6 • Public • Published

Installation

npm i --save phaser3-swipe-plugin
 
# Or  
 
yarn add phaser3-swipe-plugin

Usage

  1. Import
import SwipePlugin from 'phaser3-swipe-plugin'
  1. 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.

Package Sidebar

Install

npm i phaser3-swipe-plugin

Weekly Downloads

13

Version

1.0.6

License

MIT

Unpacked Size

15.3 kB

Total Files

5

Last publish

Collaborators

  • ilyazelenko